Can You Track Affiliate Sales in Google Analytics (GA4)?

by | Nov 30, 2026 | Affiliate Management, Articles

You can track affiliate sales in Google Analytics 4, but only halfway. GA4 shows you how much revenue came from an affiliate channel using UTM tags and conversion events. It cannot attribute a sale to a specific affiliate, calculate what you owe, reverse a refunded commission, or catch fraud. For that you need dedicated affiliate software.

Affiliate manager reviewing channel performance on a tablet

I’ve had this exact conversation with a dozen business owners who set up an affiliate program, opened GA4, and assumed the reporting they already use for ads would handle affiliates too. It gets them part of the way. Then payout day arrives and they realize GA4 never once told them that Sarah drove 14 sales and is owed $420. Let me show you what GA4 does well, where it stops cold, and what you need once real money starts changing hands.

Can you track affiliate sales in Google Analytics?

Yes, GA4 can track affiliate sales at the channel level. It records the traffic an affiliate sends, ties a purchase event to that traffic through UTM parameters, and reports the revenue in the Traffic acquisition and Conversions reports. So you’ll see that your “affiliate” channel generated, say, $8,400 last month.

The problem shows up one layer down. GA4 groups all affiliate traffic together unless you tag every single partner with a unique campaign value. And even when you do that, GA4 still won’t tell you the commission owed, apply your cookie window, or hold back a payout when the order gets refunded. It reports revenue. It doesn’t run a program.

What can GA4 track for affiliate sales?

GA4 tracks four things well for affiliates: traffic by source, conversion events, revenue by channel, and the path a buyer took across sessions. All four come from data GA4 already collects when you tag your links correctly.

Source and medium reporting shows where clicks come from. Tag an affiliate link with utm_source=janedoe&utm_medium=affiliate and GA4 files that traffic under a channel you can isolate. Conversion events (GA4 calls them key events) let you mark a purchase, a lead form, or a trial signup as the thing you care about. Revenue reporting attaches a dollar value to each purchase event, so you can total what a channel produced. And the exploration reports let you slice all of it by source, medium, campaign, landing page, or device.

That’s a real set of numbers. If you want a fuller picture of which numbers matter for a program, I break the full list down in the metrics every affiliate manager should track. GA4 can surface some of them. It can’t surface the ones tied to individual partners and payouts.

How do you set up affiliate tracking in GA4 step by step?

You set up affiliate tracking in GA4 by tagging every affiliate link with UTM parameters and marking your purchase event as a key event. Those two moves give you source-level revenue reporting. A third move, cross-domain tracking, keeps attribution intact when your checkout lives on a different domain than your affiliate.

Start with the UTM tags. Give each affiliate a consistent utm_source (their name or ID), a fixed utm_medium=affiliate, and a utm_campaign for the specific promo if you run launches. Consistency is the whole game. If one link says utm_medium=affiliate and another says utm_medium=Affiliate, GA4 treats them as two channels and your report splits in half.

Next, confirm your ecommerce or funnel platform sends a purchase event to GA4 with a transaction value. Then mark that event as a key event in Admin so it shows up in conversion reports. If your affiliate sends traffic to a landing page and the buyer checks out on a separate cart domain, turn on cross-domain measurement so GA4 stitches both sessions into one journey instead of crediting the sale to “direct.”

For server-side accuracy, you can send purchase data through the GA4 Measurement Protocol from your backend after the order clears. That handles the same job affiliate pixels do, and understanding how those pixels fire helps here. I explain the mechanics in this breakdown of how affiliate tracking works.

GA4 tracks the click and the sale, but it never explains what happened between them. If you want the click-to-commission mechanics that sit underneath any tracking setup, read How Affiliate Tracking Works. It covers cookies, pixels, and postbacks so the GA4 gaps below make sense.

Where does GA4 hit its ceiling for affiliate programs?

GA4 hits its ceiling the moment you owe someone money. It can tell you the affiliate channel produced $8,400. It cannot tell you that $3,200 belongs to Jane, $1,900 belongs to Marcus, and the rest is split across nine smaller partners. Per-affiliate commission attribution is the first hard wall.

The second wall is payout math. GA4 has no concept of a commission rate, a tiered structure, a bonus, or a minimum payout threshold. It won’t calculate 30% of a sale, it won’t apply a different rate to a top partner, and it won’t generate the report you hand to your bookkeeper. You’d rebuild all of that by hand in a spreadsheet, which defeats the point of having analytics at all.

The third wall is time. Refunds, chargebacks, and clawbacks change what you owe. A sale GA4 counted as revenue in March might get refunded in April, and GA4 keeps counting it as a completed conversion. Your affiliate software reverses that commission. GA4 doesn’t know the commission ever existed. For the full picture of what breaks, see how to track affiliate performance and the metrics that matter, plus the reports your affiliate software should give you.

How is GA4 attribution different from affiliate software attribution?

GA4 and affiliate software answer two different questions. GA4 asks “which marketing channel deserves credit for this conversion?” Affiliate software asks “which specific partner earned this commission, and for how long?” Those questions produce different answers on the same sale.

GA4 defaults to a data-driven or last-click channel model and reports credit across your whole marketing mix, so an affiliate might share credit with an email or a paid ad in the same journey. Affiliate software almost always uses last-click within a fixed cookie window and pays one partner per sale. If your affiliate cookie lasts 30 days but GA4’s lookback and session logic disagree, the two systems report different totals for the same period. Neither is broken. They’re built for different jobs.

Cookie duration is where this gets expensive. GA4 won’t enforce your program’s attribution window, so a purchase that lands outside your affiliate’s cookie window still shows up as affiliate revenue in GA4 even though you owe nobody a commission. I explain how to pick that window in this guide to affiliate cookie duration, and the model choices in affiliate attribution models explained.

Can GA4 detect affiliate fraud?

No, GA4 cannot detect affiliate fraud. It records that a conversion happened and attributes it to a source. It never asks whether that conversion is legitimate, self-referred, coupon-jacked, or faked with cookie stuffing. Every fraudulent sale looks identical to a real one in a GA4 report.

An affiliate could buy their own product through their own link to farm a commission, and GA4 shows a clean purchase event. Someone could stuff hundreds of cookies so they get last-click credit on sales they never influenced, and GA4 credits the affiliate channel anyway. Catching that takes tooling built to flag suspicious patterns, hold commissions for review, and reverse the bad ones. GA4 does none of it. That’s the job of affiliate fraud prevention tools that watch for the patterns a revenue report will never show you.

Fraud is one of the mistakes that quietly drains a program before you notice. I nearly killed my own program with a handful of them and wrote up how to avoid each one. Grab Top 20 Affiliate Program Mistakes, a free report on the errors that cost me the most and how to fix them.

When is GA4 enough, and when do you need affiliate software?

GA4 is enough when you have one or two informal partners and you’re paying them by hand. If your “program” is a friend with a coupon code and a handshake deal, a UTM tag and a monthly glance at your revenue report will hold you over. You can eyeball the number and cut a check.

You need dedicated software the moment you’re paying commissions to more than a couple of people, running any kind of tiered structure, or handling refunds. Once payout accuracy affects your relationships and your books, manual math from a GA4 export becomes a liability. One wrong number and a top affiliate stops trusting you. The switch usually pays for itself in the first payout cycle it saves you from botching. If you’re weighing options, start with how to choose the right affiliate program software and run the numbers against what your program is worth.

Everything I know about running a program that scales past the spreadsheet stage sits in one place. The Book on Affiliate Management covers the system I used to build a program to $1 million a month in under two years, including how tracking and payouts fit together.

How does AffiliateHQ handle what GA4 can’t?

AffiliateHQ handles the four jobs GA4 refuses: per-affiliate attribution, commission math, payout reporting, and reversals. Full disclosure, I built AffiliateHQ and I own it, so read this knowing that. I built it because every platform I tried had been designed by someone who’d never run a program for a living, and it showed at payout time.

The difference is where the tracking lives. GA4 keeps affiliate revenue mixed into your general analytics. AffiliateHQ ties every click, sale, and commission to a named partner, applies the exact rate and cookie window you set, holds commissions through your refund period, and reverses the ones that get returned. It generates the payout report you pay from, and it gives each affiliate their own dashboard so they can see their numbers without emailing you. You can read the full rundown of what AffiliateHQ does if you want the feature-by-feature version.

Use GA4 for the marketing question: which channels drive revenue. Use affiliate software for the money question: who earned what, and what do I pay them. Trying to force one tool to do the other tool’s job is how programs end up with angry partners and reconciliation nightmares.

Before you shop for software, it helps to know what recruiting and paying real affiliates looks like at scale. Your First 100 Affiliates is a free report on how I recruited 604 affiliates and built a $1.1M/month program, including where to find partners worth tracking in the first place.

Common questions about tracking affiliate sales in GA4

Does GA4 replace affiliate software? No. GA4 reports channel-level revenue and traffic. Affiliate software attributes sales to individual partners, calculates commissions, handles reversals, and generates payouts. GA4 does none of those four, so it complements affiliate software rather than replacing it.

Can I see which affiliate drove a specific sale in GA4? Only if you tag each affiliate with a unique utm_source and inspect the reports manually, and even then GA4 won’t calculate the commission or handle refunds. For anything past a handful of partners, that manual approach breaks down fast.

Will GA4 catch a refunded or fraudulent commission? No. GA4 counts a purchase event as a completed conversion and keeps counting it even after a refund. It also can’t tell a real sale from a self-referral or cookie-stuffed click. Reversals and fraud checks live in affiliate software.

What’s the minimum GA4 setup for affiliate tracking? Tag every affiliate link with a consistent utm_source and utm_medium=affiliate, confirm your purchase event fires with a transaction value, and mark it as a key event. Add cross-domain measurement if your checkout sits on a separate domain.

What to do next

Set up GA4 the right way so you at least know which channels earn their keep: tag every affiliate link with consistent UTMs, mark your purchase event as a key event, and turn on cross-domain tracking if your cart lives elsewhere. That gives you clean channel revenue.

Then be honest about where you are. If you’re paying commissions to more than one or two people, stop trying to run payouts from a GA4 export. Move the money side to software built for it, so per-affiliate attribution, commission math, refunds, and fraud checks happen automatically instead of in a spreadsheet at 11 p.m. the night before payout.

AffiliateHQ tracking platform