Black FridayUp to 60% off every plan – All 48 Pro add-ons included in Full Package

Affiliate referral links

6 min read

6 minBeginnerUltimate Affiliate Pro 9.7+

An affiliate referral link is any page URL from your site with the affiliate’s tracking code added to it, for example yourstore.com/?ref=emma.collins. Ultimate Affiliate Pro creates a default link for every affiliate and lets affiliates build links to any page from the Affiliate Portal. You choose how the links look in the settings.

When a visitor opens a referral link, Ultimate Affiliate Pro records the click and saves the affiliate in a cookie, so the affiliate is credited for the sale even if the visitor browses other pages first. To see how this works across your site, read how affiliate tracking works, or the overview of the affiliate tracking features.

Before you start

  • Ultimate Affiliate Pro installed, with your license active.
  • An Affiliate Portal page where affiliates log in. See Affiliate Portal settings.
  • At least one approved affiliate, so you can test a link.

How an affiliate referral link is built #

Every referral link has the same three parts: a page from your website, the URL parameter and the affiliate’s tracking code. The example below uses the default settings.

Example: Emma’s link to the Shop pageDefault settings: parameter ref, format Username
Page from your website
yourstore.com/shop/
URL parameter
ref
Tracking code (username)
emma.collins
Referral link
yourstore.com/shop/?ref=emma.collins
Same link, Affiliate ID format
yourstore.com/shop/?ref=1

Choose the link format #

Go to Ultimate Affiliate Pro›Settings›General Settings and scroll to the Affiliate Links section.

Affiliate Links settings in Ultimate Affiliate Pro: URL Parameter Name, Base Affiliate Link, Affiliate Link Format and Search URL for Both Formats
The Affiliate Links section of General Settings, with the default values.
1URL Parameter Name

The name that comes before the tracking code in every link, as in ?ref=. Use a short word with letters only, such as ref, aff or partner.

Default: ref

2Base Affiliate Link

The page each affiliate’s Default Affiliate Link opens. Use your homepage, or a page that converts better, such as your pricing or shop page. It must be a URL from your own domain.

Default: your homepage

3Affiliate Link Format

What the tracking code shows in the link.

  • Username: the affiliate’s WordPress username, for example ?ref=emma.collins. Easy to read and remember.
  • Affiliate ID: the affiliate’s numeric ID, for example ?ref=1. Keeps usernames out of public links.

Default: Username

4Search URL for Both Formats

When this is on, Ultimate Affiliate Pro recognizes a link whether it carries the username or the affiliate ID. Turn it on before you switch from Username to Affiliate ID, so links your affiliates already shared keep tracking.

Default: Off

Affiliate Link URL Blacklist

Referring websites that should not generate referrals, one URL per line, written as the full address, for example https://example.com/. When a visitor arrives from one of these URLs, the visit is not tracked.

Click Save Changes at the bottom of the page.

Tip

Pick the URL parameter and the format before affiliates start sharing links. On the same screen, Redirect Same Page Without URL Parameters (in Redirect Settings, on by default) removes ?ref=… from the address bar after the visit is tracked, so visitors see a clean URL.

Share links from the Affiliate Portal #

Affiliates get their affiliate referral links in the Affiliate Portal, under Marketing›Affiliate Links.

Affiliate Links tab in the Affiliate Portal of Ultimate Affiliate Pro with the default affiliate referral link and the affiliate link generator
What an affiliate sees in Marketing › Affiliate Links.
  1. Default Affiliate Link is ready to share. It opens the Base Affiliate Link you set in step 1.
  2. To link to another page, the affiliate pastes the page URL in Specific Website page, in the Affiliate Link Generator box, for example a product or a blog post from your site.
  3. They click Generate Link.
  4. The referral link for that page appears above the button, ready to copy.

If the affiliate has created campaigns in Marketing›Campaigns, they can pick one in the Campaign dropdown to add it to the link and compare results by channel. See Campaigns. Affiliates can also add the tracking code to any URL from your site themselves: ?ref=emma.collins at the end, or &ref=emma.collins when the URL already has a ?.

Share links in other formats #

Each option below is a module you turn on in Ultimate Affiliate Pro›Modules.

Friendly links

Path-style links such as yourstore.com/ref/emma.collins, with the Pretty Affiliate Links module. See Friendly affiliate links.

Custom slugs

With the Custom Affiliate Slug module, affiliates pick a word of their own, such as ?ref=emmasdeals, instead of their username. See Custom affiliate slug.

QR codes and social sharing

Show each link as a downloadable QR code, or add social share buttons to the Affiliate Portal.

For more ways to build branded affiliate links in WordPress, see custom affiliate links for WordPress.

Test it #

  1. Copy a referral link from the Affiliate Portal of a test affiliate.
  2. Open it in a private browser window, where you are not logged in.
  3. Go to Ultimate Affiliate Pro›Clicks and check that the visit appears for that affiliate.
  4. Place a test order in the same window, for example in WooCommerce. Check that it appears in Referrals, credited to the affiliate.

Prefer a link with a # instead of a parameter, such as yourstore.com#emma.collins? See Anchor Link.

To let affiliates pick a product and copy its link in one click, turn on Product Links. With the Affiliate Bar, affiliates get a link to any page of your site while they browse it.

Frequently asked questions #

Can affiliates link to any page of my site?

Yes. Any page from your domain works, including products, posts and landing pages. The tracking code is read on whichever page the visitor lands on.

Should I use the username or the affiliate ID?

Usernames make links easier to read and remember. Affiliate IDs keep WordPress usernames out of public links. If you want readable links without usernames, turn on the Custom Affiliate Slug module. With the Affiliate ID format, also turn on Search URL for Both Formats so slug links are recognized.

How long does a referral link keep crediting the affiliate?

As long as the tracking cookie lasts: 360 days by default. Change it in Cookie Expiration (Days), in the Cookie Settings section of General Settings.

I changed the URL parameter. What happens to links already shared?

New links use the new parameter right away. Ask affiliates to replace the links they already shared, or keep the original parameter name.

The referral link opens a 404 page. What do I do?

This usually happens with friendly links. Resave your WordPress permalinks in Settings›Permalinks, then see Affiliate link opens a 404 page.

What’s next #

What are your feelings

  • Happy
  • Normal
  • Sad
Black Friday · up to 60% off

Your Black Friday price ends in

Full Package is $99.60/year instead of $249, with all 48 Pro add-ons and 3 sites. 14-day money-back guarantee.

Get Full Package Keep comparing plans
Black Friday · up to 60% off

Your Black Friday price ends in

Every plan is discounted until November 28, 23:59 (GMT+2). After that, prices go back to normal.

14-day money-back guarantee on every plan. Not sure yet? Try it on a free demo site.

Best deal Full Package normally $249 $99.60/ year You save 60%
  • Use on 3 sites
  • 48 Pro add-ons included
  • 36+ languages included
  • Priority support