1. Home
  2. AccessAlly
  3. Affiliate Program
  4. Testing Affiliate Program (Including Cookie Tracking For Referral Links)

Testing Affiliate Program (Including Cookie Tracking For Referral Links)

Before making your affiliate program live, please take time to test the setup and make sure that links are tracking properly.

Affiliate Links = Cookies
It’s always a good idea to test that your cookies (i.e. affiliate links) are tracking properly on your server and/or that your server isn’t blocking things.We recommend testing BEFORE a launch, to avoid unnecessary frustration with blocked affiliate links (and angry affiliates who aren’t properly compensated for the marketing efforts they put towards your products.Whitelisting A Cookie?Some hosting providers block the AccessAlly affiliate tracking cookie by default. In this case, it will need to be whitelisted by contacting the host support, or you will find that none of your affiliate links are tracking properly.The cookie that needs to be whitelisted is “accessally-aff”

Known WPEngine Issue

There is a known issue with WordPress hosting solution WPEngine, where WPEngine’s cache interferes with cookie tracking. In this case, it needs a cache exclusion.

The exclude path is: ^/~access/.*

WPEngine cache exclusion for AA Affiliate

What the Testing Process Looks Like

We recommend using an AccessAlly form created inside your Affiliate Offering as tags and access are granted immediately. Forms created in your CRM system may not apply tags immediately if they are set to require opt-in confirmation.

  1. Use the sign up/registration form to sign up as an affiliate.
  2. Once you’ve opted-in as an affiliate, you can log in to the members’ area and visit your affiliate page to grab an affiliate link.
  3. Test your new affiliate link to make sure it goes to the right page that you set up, and you’re done. AccessAlly will handle the sales tracking for you!
NOTE: In rare cases, some server hosts can’t process the default affiliate links (/~access/) properly. Switching to the alternate structure will avoid the issue.

For this testing procedure, you’ll need:

  • A live affiliate link for your site (associated with an active affiliate account, preferably your test account)
  • The Chrome browser

Step 1: Open the Base URL in an Incognito Window in Chrome

In your Chrome browser, open an incognito window.

Type in the base URL of your affiliate link.

How to open a link in an incognito window

What’s the base URL?If your affiliate link is: https://yoursite.com/~access/12345 then you should type in everything BEFORE the tilde ( https://yoursite.com/ ).

Open the developer view by clicking on the menu icon in the top right and navigating to: More Tools > Developer Tools. Go to the Console tab.

In the console tab, type: document.cookie and hit ENTER.

This will reveal the current list of cookies that are being tracked on the browser.

Step 2: Open A Second Incognito Browser

Now, open another incognito browser tab. Before typing anything in the URL bar, open the same developer view as you did in Step 3, but this time use the Network section (instead of “Console”).

With the network view open, paste the entire affiliate URL (including the tilde) in the browser bar and hit ENTER.

When the page is done loading, scroll up (inside the network view) until you get to the top where you can see the affiliate number.

Click on the affiliate number. This will reveal additional information. Under Headers > Response Headers, check to make sure the status code is listed as 302.

This indicates whether the redirect is working properly.

If you’d like, you can also switch to the Console tab to see that the affiliate cookie now appears when you type in document.cookie as you did in Step 1.

Note: The AccessAlly affiliate cookie name is “accessally-aff”.

If you discover an error in any of these testing steps and are unable to resolve it yourself, please reach out to the AccessAlly support team for assistance.
Updated on July 21, 2022

Was this article helpful?

Related Articles

NO QUESTION GOES UNANSWERED

If you have any questions, we're just an email away.

We take your success seriously, and you'll always get a speedy reply from a real person during business hours.

Opt-In-Laptop.png

AccessAlly is the #1 WordPress Course and Membership Solution for Industry Leaders

WATCH THE DEMO

You'll get follow-up emails about AccessAlly and new features. Opt out anytime. Full privacy policy here.