Will AffiliateWP work on a Multisite Installation?

Absolutely! AffiliateWP can be set up so that all sites on the network share the same affiliate data.

  1. Set up a WordPress Multisite.
  2. Add the constant below to your wp-config.php file. A good place would be where you were instructed earlier in the multisite installation, just above the /* That’s all, stop editing! Happy blogging. */ line:

    define( 'AFFILIATE_WP_NETWORK_WIDE', true );
  3. Navigate to My Sites » Network Admin » Plugins and click Network Activate under the AffiliateWP plugin name. AffiliateWP will now be network activated, and will appear in each sub-site’s WP admin interface.

Since AffiliateWP shares its database tables across all sites on the network there’s a few things to note:

  • Whenever a visit is created on any sub-site, it will show on the AffiliateWP » Visits page of all sites on the network. 
  • Whenever a referral is created on any sub-site, it will be shown on the AffiliateWP » Referrals page of all sites on the network.
  • An affiliate has an affiliate area on all sub-sites.
  • Creatives are shared across all sub-sites.
  • Whenever an affiliate registers on any sub-site, they are an affiliate on all sites. They can then append their referral ID or username to any other sub-site URL and earn a commission if the customer purchases. 

    Note regarding new affiliate registrations on multisite when network-enabled:
    When someone registers as an affiliate on a multisite network, a WordPress user and affiliate account are created, but only on the specific sub-site where the affiliate registers. AffiliateWP, in contrast, automatically shares the affiliate account information with all the other sites on the network. The part that is not automatic is sending the WordPress new user information to all the other sites on the network – this is not something WordPress Multisite does out-of-the-box unfortunately. That said, there is an easy workaround using a free plugin like one of these will make sure all user accounts are synced across all of the multisite network:
  • Settings are individual to each sub-site and not shared between them, since these are saved in the wp_options table. This means that each sub-site can have different settings. Don’t forget to enable your chosen integration on each sub-site to generate referrals for that site.


If a customer clicks on an affiliate’s referral link and then visits a different subdomain on the network and then purchases, does the original affiliate earn commission?

Yes, however, if your multisite network is set up to use subdomains (instead of sub-directories), you’ll need to enable the Cookie Sharing setting on the AffiliateWP » Settings » Advanced page.

AffiliateWP Settings Advanced - Cookie Sharing setting

Will it track the custom domain sites on my multisite network?

No. The network-wide tracking feature tracks affiliates to all sites that share the same origin domain. Example: site1.mydomain.com, site2.mydomain.com, and so on.

What license do I need to use WordPress Multisite? 

You’ll need to allow for an activation of the core AffiliateWP plugin on each subsite or subdomain that you wish to use AffiliateWP on, even if it is Network Activated.  You can see the activation options on our pricing page: https://affiliatewp.com/pricing/

Can I set a different currency on each sub-site?

Technically yes, however, it is not recommended. This is because all of the referrals from the sub-sites will be in the same list, and it will display in the currency setting based on that sub-site, not the original sub-site that the referral was created on.

Is there a way to configure the license key with wp-config.php for multisite?

Yes! Simply add the AFFILIATEWP_LICENSE_KEY constant to your wp-config.php file and it will be pre-populated on each sub-site, ready to be activated:


What if I’m moving an existing, standalone AffiliateWP site into a multisite sub-site?  Can I retain all of my affiliates and activity to share across all sub-sites on the network?

Yes, you can with a few extra steps if you are comfortable removing and renaming tables in your site’s MySQL database. 

When AffiliateWP is on a single, standalone site it creates a site-specific database.  When you move it to a network installation, new network-wide tables are created to be shared across all sub-sites when AFFILIATE_WP_NETWORK_WIDE is set to true (as seen above in Step 2).  The tables it creates are prefixed with affiliate_wp* and are empty. 

To correct this:

1. Delete the empty tables.

2. Re-name the old tables belonging to the previously standalone site to begin with the same prefix of affiliate_wp*.  Refresh, and now you can see all affiliate data from any sub-site on the network.