← Back to blog

How to Track Affiliate Link Clicks (Before You Buy More Traffic)

Track affiliate link clicks with GA4, UTM tags, and sub-IDs, then use a simple weekly scorecard to decide if you need more traffic or a better page.

Tim Cochran· 9 min read
How to Track Affiliate Link Clicks (Before You Buy More Traffic)

To track affiliate link clicks, you need three things working together: Google Analytics 4 to see which page people clicked from, UTM tags to see where those visitors came from, and sub-IDs (or tracking IDs) in your affiliate links so your program's dashboard shows which clicks turned into sales. Set those up, check them once a week, and you'll know whether you have a traffic problem or a page problem.

That second part is the whole point. A lot of people spend money on traffic when the real issue is that visitors land, look around, and leave without clicking anything. More traffic doesn't fix that. It just costs more.

"How do you track your affiliate links?" comes up again and again in affiliate marketing groups on Reddit. Here's the setup I'd use, step by step.

Why measure before you buy more traffic

In the Affiliates Economy Community's Mass Traffic Blueprint course, there's a whole module called "Managing Traffic," and its first lesson is titled "Never Waste a Visitor." I'm only going off the lesson title and its short written overview here, but the idea is one I agree with: handle the visitors you already have well before you go looking for more.

If 100 visitors a week aren't clicking your recommendation, 1,000 visitors probably won't either. You need to know where the leak is first. Think of it as fixing the bucket before you pour in more water.

The three questions your tracking should answer

Keep it simple. You're trying to answer three questions:

  1. Where did visitors come from? Search, Pinterest, an email, a YouTube description, a paid ad.
  2. Which pages get clicks on affiliate links? And which pages get views but no clicks.
  3. Which clicks turned into sign-ups or sales? This lives in your affiliate program's dashboard, not in your analytics.

No single tool answers all three. That's why you connect a few.

Step 1: Turn on outbound click tracking in GA4

Google Analytics 4 has a feature called Enhanced Measurement. One of its options records an event named click every time someone clicks a link that leads away from your domain to another website. Since most affiliate links send people to another site, that covers a lot of them.

To check it's on:

  1. In GA4, go to Admin, then Data streams, and click your website's data stream.
  2. Under Enhanced measurement, make sure the switch is on.
  3. Click the settings icon and confirm Outbound clicks is enabled.

GA4 records the link URL and link domain with each outbound click, so you can tell clicks to a merchant apart from clicks to, say, a source you cited.

Watch out for redirect links

If you use "pretty" links on your own domain, like yourdomain.com/go/email-tool, the click goes to your domain first. GA4's outbound click event only fires for links leading away from the current domain, so those clicks may not show up as outbound clicks. Many link-management plugins count clicks on their own, so check that plugin's report, or set up click tracking with Google Tag Manager.

Step 2: Test it with your own click

Don't assume it works. Open one of your posts in a browser, click an affiliate link, and then look at the Realtime report in GA4. You should see a click event show up there shortly.

If nothing shows up, check that the GA4 tag is actually installed on that page and that outbound clicks is enabled. It's much better to find a broken setup now than after a month of "no data."

Step 3: Tag the traffic you send to your own pages with UTMs

UTM parameters are tags you add to the end of a URL so GA4 knows where a visit came from. Google recommends always using these three together:

  • utm_source: the specific place, like pinterest or newsletter
  • utm_medium: the type of channel, like social or email
  • utm_campaign: the promotion or topic, like lead-magnet-nov

So a link in your newsletter pointing to your own post might look like this:

https://yourdomain.com/blog/best-email-tool/?utm_source=newsletter&utm_medium=email&utm_campaign=email-tool-review

You'll see that traffic under Acquisition > Traffic acquisition in GA4.

A few rules that save headaches:

  • Use lowercase every time. GA4 treats Pinterest and pinterest as two different sources.
  • Pick a naming pattern and stick to it. Write it down so you don't invent a new one every week.
  • Tag links to your own pages, not your affiliate links. UTMs on an affiliate link report to the merchant's analytics, not yours. For affiliate links, use sub-IDs (next step).

Google's free Campaign URL Builder can create these links for you if you don't want to type them by hand.

Step 4: Add sub-IDs or tracking IDs to your affiliate links

GA4 can tell you someone clicked. Only the merchant or affiliate network can tell you whether that click turned into a sale. To connect the two, many programs let you label your links.

A couple of examples from the programs' own help pages:

  • Amazon Associates lets you create multiple tracking IDs from "Manage your Tracking IDs" so you can see results for different sites or strategies separately.
  • impact.com lets partners add Sub ID parameters like subId1 to tracking links, and those values show up in your reports.

Other networks have their own version. It's usually called a sub-ID, click reference, or tracking ID. Search your network's help center for one of those terms.

Use the same naming pattern as your UTMs so the two line up. For example:

  • blog-emailtool-review-top for the link at the top of a review post
  • blog-emailtool-review-bottom for the link at the bottom
  • email-welcome-3 for the link in your third welcome email

Now when you see a sale in your dashboard, you'll know which link and which page it came from. Never put personal information like names or email addresses in a sub-ID.

Step 5: Keep a simple weekly scorecard

Once a week, pull a few numbers into a notebook or spreadsheet. For each page that promotes something, write down:

  • Views (from GA4)
  • Affiliate clicks (outbound clicks to that merchant, or your plugin's count)
  • Click rate: clicks divided by views
  • Sign-ups or sales (from your affiliate dashboard, matched by sub-ID)
  • Traffic cost, if you paid for any of it

A quick example

These numbers are made up, just to show the math. Say your review page had 400 views last week and 12 affiliate clicks. That's a 3% click rate (12 ÷ 400). Your comparison page had 300 views and 21 clicks, a 7% click rate.

That doesn't mean the review page is "bad." Different kinds of pages naturally get different click rates. But it tells you where to look first. Maybe the recommendation is buried at the bottom, or the post never says who the product is for.

Compare each page against its own past numbers, not against some "average" you read online.

Step 6: Decide: fix the page or add traffic

Here's how I'd read the scorecard:

  • Lots of views, few clicks: It's a page problem. Make the recommendation clearer, move it higher, explain who it's for and who it's not for.
  • Good clicks, few sales: Check that the offer fits the reader. Also check the link itself: is the sub-ID showing up in your dashboard? Does the link go to the right page?
  • Good clicks and some sales, but low views: Now more traffic makes sense.

If you're going to pay for traffic, start with a small, capped test you can afford to lose. Tag it with its own UTM campaign and sub-ID so you can see exactly what it did. Only spend more once the numbers say the page is ready for it.

Don't skip the email list

Not every visitor is ready to click today. If a page gets views but few clicks, a lead magnet can still turn some of those visitors into subscribers you can follow up with. Here's how to choose a lead magnet that fits your offer. Add a form submission as a key event in GA4 and track sign-ups the same way you track clicks.

Your list is also traffic you don't have to buy again. I explained why that matters in Owned vs. Rented Audience: A Checklist for Affiliate Marketers.

Mistakes to avoid

  • Treating clicks as sales. A click is interest. Only your affiliate dashboard confirms a sale.
  • Counting every outbound click as an affiliate click. Filter by the merchant's domain.
  • Inconsistent names. FB, facebook, and Facebook will show up as three different sources.
  • Changing five things at once. Change one thing on a page, then give it time before judging.
  • Judging too early. A handful of visits isn't enough to decide anything. Wait until you have enough views to see a pattern.
  • Forgetting disclosure. If a page has affiliate links, say so clearly and close to the link.

Get feedback on your numbers

Tracking is easier when someone else can look at your scorecard with fresh eyes. Join the free Affiliates Economy Community, check out the "Managing Traffic" module in the Mass Traffic Blueprint course, and post your weekly numbers to get feedback before you spend more on traffic.

FAQ

Can I track affiliate link clicks for free?

Yes. GA4's outbound click tracking, UTM tags, and the reports inside most affiliate programs don't cost extra. Paid click trackers exist, but most beginners can start with what's built in.

Why don't my GA4 clicks match my affiliate dashboard?

They measure different things in different ways. Ad blockers, privacy settings, and redirect links can all cause gaps. Use GA4 for trends by page and your affiliate dashboard for sales.

Should I put UTM parameters on my affiliate links?

Generally no. UTMs report to the analytics of the site the link points to, which is the merchant's. Use your program's sub-ID or tracking ID instead.

What's a good click rate for affiliate links?

There isn't one number that fits every page. A product comparison and a beginner tutorial will behave differently. Track your own pages over time and work on the ones that fall behind.

How do I track clicks from Instagram or TikTok?

Point your bio link to a page on your own site with UTM tags, then track the affiliate clicks from that page. If you link straight to an offer, use a sub-ID so your dashboard shows which platform the click came from.

TC

Written by

Tim Cochran

Founder of AffiliatesEconomy.com and the free Affiliates Economy Community for affiliate marketers and entrepreneurs building a hub they own.

Keep reading