Skip to main content
ClickLoom

Some links here are partner links — we may earn a commission if you buy, at no extra cost to you. Details.

Disclosure: Some links on this site are affiliate links: if you buy through them we may earn a commission at no extra cost to you. This never affects what we recommend. See our affiliate disclosure for details.

How to Track Affiliate Links: 6 Methods Compared

When considering how to track affiliate links, tracking is divided into six practical methods: raw affiliate network reporting, UTM parameters in Google Analytics 4, a dedicated click tracker or cloaker tool, server-side tagging, postback URLs (S2S), and self-hosted analytics. Each answers a different question: network reports show commissions, GA4 shows on-site behavior, and a click tracker shows the click itself before the visitor ever arrives. Most solo marketers and small media buying teams end up managing two or three in parallel.

Key Takeaways

  • Affiliate networks track conversions; they are blind to everything that happens before the click and after the landing page. You need a second layer for click-level and on-site data when learning how to track affiliate links.
  • UTM parameters are free and universal, but they break when a redirect removes the query string – which is exactly what most affiliate links do.
  • A click tracker or link cloaker sits between your traffic source and the offer, giving you sub-ID control, bot filtering, and geo/device routing that GA4 cannot replicate.
  • Server-side tagging and postback URLs are the two upgrades that fix iOS/Safari attribution loss and ad blocker blind spots.
  • Adapt the method to the decision you need to make: creative-level optimization requires click data, budget-level optimization requires conversion data, and payout reconciliation requires network data.
  • Never let the tracking infrastructure become the product. If you can’t explain what you would change based on a metric, stop tracking it.

Affiliate link tracking fails for structural reasons, not because marketers are careless. When considering how to track affiliate links, it is important to realize a standard affiliate link is a redirect: your visitor clicks on yourdomain.com/go/offer, the server issues a 301 or 302 to the merchant’s tracking URL, and the merchant’s own redirect chain fires before the offer page loads. Every hop is a chance to lose data.

Three specific failure points cause most of the pain:

Lost query string. Many affiliate networks and merchants add their own parameters and remove yours. If you rely on UTMs passed through the affiliate link, the merchant redirect may remove them before GA4 ever sees a page view. This is the most common reason why “GA4 is not showing any conversions from my affiliate links”.

Cross-domain and cross-device breaks. A visitor clicks on mobile, converts on desktop an hour later. Client-side analytics cannot stitch that. Affiliate networks can because they match on their own click ID – which is why the network reports and your analytics will never exactly agree.

Privacy and Blocking. Apple’s App Tracking Transparency and Intelligent Tracking Prevention features, as well as browser-level ad blocking, degrade cookies on the client side. Google’s own documentation on consent mode and modeled conversions exists precisely because a significant portion of client-side signals are now unavailable.

The practical consequence: treat each tracking method as a partial view. The goal is reconciliation, not perfection.

MethodWhat it measuresSetup effortSurvives redirects?Best for
Affiliate network reportsClicks, conversions, commissionsNoneYes (network-side)Payout truth, offer selection
UTM parameters + GA4Sessions, engagement, on-site eventsLowOften noContent funnels, landing page testing
Click tracker / cloakerRaw clicks, sub-IDs, geo, device, referrerMediumYes (you own the hop)Paid traffic, creative optimisation
Server-side taggingServer-relayed events, first-party cookiesHighYesiOS/Safari attribution recovery
Postback URL (S2S)Conversion events pushed to your trackerMediumYesFeeding conversions back to ad platforms
Self-hosted analyticsFull-funnel, first-party data ownershipHighYesTeams with dev resource and privacy needs

1. Affiliate Network Reports

When considering how to track affiliate links, the dashboards of the affiliate networks – Impact, CJ Affiliate, Rakuten Advertising, Awin, ShareASale, PartnerStack and the various CPA networks – are the only source that reflects what you will actually be paid. Their click count comes from the network’s own redirection, so they are immune to your site’s tracking issues.

The trade-off is granularity. Most networks expose sub-ID parameters (often called “subid”, “s1”, “clickref”, “sub_id”, or “aff_sub”, depending on the network) that allow you to pass in your own identifier. Populating this parameter with a campaign or creative code is the single highest-leverage tracking change most affiliates ever make. Without it, you know about an offer that converted, but you don’t know which ad, keyword, or placement drove it.

Network reporting is also lagging. Conversion statuses change from pending to approved over days or weeks, and reversals occur. Don’t optimize paid traffic against an hourly refreshed network dashboard.

2. UTM Parameters in Google Analytics 4

UTM parameters remain the cheapest way to view affiliate traffic in GA4. All five parameters — utm_source, utm_medium, utm_campaign, utm_content, utm_term — are documented by Google and universally supported.

The problem is the redirection. If your affiliate link points directly to the merchant, the merchant redirect will usually remove your UTMs. The solution is to first send traffic to your own landing page (where UTMs are captured and stored) and then forward it to the affiliate link. You can also use a click tracker that accepts UTMs on the inbound click and maps them to a sub-ID.

GA4’s attribution models add another layer of complexity. Data-driven attribution distributes credit across touchpoints, so a single affiliate click may not receive full credit for a conversion. For affiliate work, many practitioners move to last-click or a custom model to keep reports readable.

A click tracker (often associated with link cloaking) inserts your own domain into the click path. Instead of “network.com/aff?id=123”, the visitor sees “yourdomain.com/go/offer”. Your server logs the click (timestamp, country derived from IP address, device, referrer, sub-ID) and then redirects it.

This is where most of the practical value of paid traffic lies. A click tracking tool gives you:

  • Sub-ID Control. You assign a unique code per ad, keyword or placement and pass it to the network so that network conversions can be joined back to your click log.
  • Bots and click fraud filtering. Data center IP ranges, known crawler user agents, and suspicious click velocity can be filtered before they pollute your data.
  • Routing Rules. Send US mobile traffic to one offer and UK desktop traffic to another, without touching the advertising platform.
  • Redirect type control. 301 (permanent, cacheable) vs. 302 (temporary, not cached) is important: a cached 301 can send stale traffic to a dead offer.

In this context, cloaking means hiding the affiliate URL from general view and from link-scraping tools. This is not the same as hiding content to fool a search engine, which violates Google’s spam policies and can result in a site being deindexed. Keep the distinction clear.

4. Server-Side Tagging

Server-side tagging moves metrics from the browser to a server you control – typically a Google Tag Manager server container running on a cloud host. Events are sent from your server to analytics and advertising platforms, using a first-party domain.

For affiliate marketers, the benefit is durability. First-party cookies set by your own subdomain survive Safari’s cross-site restrictions much better than third-party cookies. The server side also allows you to enrich events with data that the browser never had, for example by adding a click ID captured during the redirect step to the conversion event.

The cost is real: hosting, custom subdomain, DNS configuration and ongoing maintenance. Server-side tagging is worth it when you spend enough on traffic that a few percentage points of attribution accuracy changes your decisions. Below that threshold, a click tracker and sub-IDs get you most of the way.

5. Postback URLs (Server-to-Server)

A postback URL is an endpoint that your affiliate network calls when a conversion triggers. The network sends the click ID and conversion value to your tracking tool or ad platform, which then attributes the conversion server-side.

Postbacks solve two problems at once. First, they bypass the browser completely, so ad blockers and cookie restrictions are irrelevant. Second, they allow you to feed conversion data back into platforms like Google Ads or Meta, which improves automated bidding – assuming the platform accepts the conversion and you have consent handling in place.

Most major networks support postbacks; the exact parameter names differ, so check the network integration documentation rather than guessing. A common mistake is to trigger a postback every time conversion status changes, which double-counts when a sale is later reversed.

6. Self-Hosted Analytics

Self-hosted analytics (Matomo, Plausible, Umami and similar tools) place the data pipeline on your own infrastructure. For affiliate marketers managing sensitive traffic sources or operating in regulated verticals, this removes third-party data sharing and keeps full-funnel data in one place.

The compromise is operational. You own uptime, upgrades, and GDPR/CCPA compliance obligations. Self-hosted analytics won’t magically solve redirection-based data loss either; you still need a click tracker or server-side layer to capture the click before affiliate redirection.

How to Decide Which Combination to Use

When deciding how to track affiliate links, tracking decisions should follow the money, not tooling fashion. Work backwards from the decision you need to make.

If you’re optimizing creatives and placements for paid traffic: you need click-level data with sub-IDs. A click tracking tool is non-negotiable. GA4 alone won’t tell you which of the five ad variations generated the click that converted.

If you’re optimizing a content funnel: UTMs and GA4 engagement metrics (scroll, outbound click events, time on page) tell you which article is generating affiliate clicks. Configure outbound click tracking as a GA4 event so that the affiliate click is recorded before redirection.

If you are reconciling payments: the network report is the only source of truth. Everything else is directional.

If you have a large paid spend: Add postbacks so the ad platform’s bidding algorithm detects conversions and consider server-side tagging to recover signal lost to browser restrictions.

If you work in a privacy-sensitive niche: Self-hosted analytics plus first-party server-side tagging, with a documented consent flow.

A realistic stack for a solo affiliate generating paid traffic: click tracker with sub-IDs → affiliate network with sub-ID passthrough → postback to the ad platform → GA4 for landing page behavior. That’s four systems, and they will never fit together perfectly. Create a reconciliation habit: Choose one source as your billing source (the network) and use the others for optimization purposes only.

Common Tracking Mistakes and How to Avoid Them

Relying on a single source. Each method has a known blind spot. Cross-checking two sources detects broken redirects, expired offers, and tracking parameters that have silently stopped passing through. This is a key part of how to track affiliate links accurately.

Ignoring redirect type. A 301 on an affiliate link is cached by browsers and intermediaries. When you change the offers, some visitors continue to reach the old destination. Use 302 for anything you might change.

Forgetting mobile app browsers. In-app browsers (Instagram, TikTok, Facebook) handle cookies and redirects differently than Safari and Chrome. Test your click path in each app you buy traffic from.

Not testing the full chain. Click your own link from a real device, follow each redirect, and confirm that the sub-ID appears in the network click report. Do this after each offer change.

Over-tracking. Each additional script costs load time and page speed affects conversion rate. A slow tracking stack can cost more in lost conversions than it gains in insights.

Ignoring consent. If you’re serving traffic in the EU or UK, consent mode and a compliant banner are part of the tracking stack, not an afterthought. Google’s consent mode documentation covers implementation.

Sources & Further Reading

  • Affiliate marketing — Wikipedia: Affiliate marketing is a marketing arrangement in which affiliates receive a commission for each visit, signup or sale they generate for a merchant. This arrangement…

Frequently Asked Questions

If you are wondering how to track affiliate links, place a click tracker or cloaked redirect on your own domain between the traffic source and the affiliate link. The tracker records each click with timestamp, referrer, device and a sub-ID you assign, then redirects the visitor to the offer. Pass the same sub-ID to the affiliate network so that conversions can be linked back to the original click.

GA4 generally cannot see affiliate conversions because the conversion takes place on the merchant’s domain, outside of your property. Even with cross-domain measurement configured, the merchant redirect often removes your UTM parameters. Use the affiliate network’s report for conversion data and GA4 for pre-click behavior, then join them with sub-IDs.

Click tracking records data about each click: source, device, geography, and sub-ID. Link cloaking hides the affiliate URL behind your own branded domain. Most tools do both in a single redirect, but they are separate functions: you can track without cloaking, and cloak without tracking.

UTM parameters only work if they survive the redirect chain. Direct affiliate links frequently lose them because the merchant or network rewrites the query string. The reliable model is to first capture UTMs on your own landing page or click tracker, then pass a single sub-ID to the network.

What is a postback URL and do I need one?

A postback URL is a server-to-server endpoint that your affiliate network calls when a conversion occurs, sending the click ID and value to your tracking tool or ad platform. You need this if you want conversion data fed back into the ad platform’s bidding or if browser-based tracking is unreliable for your audience.

No single method is completely precise. Network reports are authoritative for commissions, but lag and lack pre-click detail. Client-side analytics undercounts due to ad blockers and privacy restrictions. Server-side tracking and postbacks recover much of the loss. Expect a persistent gap between sources and reconcile rather than seeking a perfect match.

Frequently asked questions

How do I track clicks on affiliate links?

If you are wondering how to track affiliate links, place a click tracker or cloaked redirect on your own domain between the traffic source and the affiliate link. The tracker records each click with timestamp, referrer, device and a sub-ID you assign, then redirects the visitor to the offer. Pass the same sub-ID to the affiliate network so that conversions can be linked back to the original click.

Why does GA4 show no conversions from my affiliate links?

GA4 generally cannot see affiliate conversions because the conversion takes place on the merchant's domain, outside of your property. Even with cross-domain measurement configured, the merchant redirect often removes your UTM parameters. Use the affiliate network's report for conversion data and GA4 for pre-click behavior, then join them with sub-IDs.

What is the difference between link cloaking and click tracking?

Click tracking records data about each click: source, device, geography, and sub-ID. Link cloaking hides the affiliate URL behind your own branded domain. Most tools do both in a single redirect, but they are separate functions: you can track without cloaking, and cloak without tracking.

Do UTM parameters work with affiliate links?

UTM parameters only work if they survive the redirect chain. Direct affiliate links frequently lose them because the merchant or network rewrites the query string. The reliable model is to first capture UTMs on your own landing page or click tracker, then pass a single sub-ID to the network.

What is a postback URL and do I need one?

A postback URL is a server-to-server endpoint that your affiliate network calls when a conversion occurs, sending the click ID and value to your tracking tool or ad platform. You need this if you want conversion data fed back into the ad platform's bidding or if browser-based tracking is unreliable for your audience.

How accurate is affiliate link tracking?

No single method is completely precise. Network reports are authoritative for commissions, but lag and lack pre-click detail. Client-side analytics undercounts due to ad blockers and privacy restrictions. Server-side tracking and postbacks recover much of the loss. Expect a persistent gap between sources and reconcile rather than seeking a perfect match.


Cloak and manage every affiliate link from your WordPress dashboard

The WordPress plugin that turns ugly affiliate URLs into branded links