How to Use UTM Parameters for Affiliate Links: the Four Field Setup That Survives Scale
How to use UTM parameters for affiliate links? Put the partner in utm_source, the fixed word "affiliate" in utm_medium, the promotion in utm_campaign, and the specific link placement in utm_content, all lowercase, all hyphenated. That four field setup is the difference between a report that answers "which partner drove sales" and a spreadsheet of 400 near identical source names that answers nothing.
The failure mode here is not subtle, and I have watched it happen to programs with real money on the line. A program starts with ten partners and a shared doc. Six months later it has eighty partners, and the report shows utm_source values of "Sarah," "sarah," "SarahJ," "sarah-jones," "instagram," and "IG," all referring to overlapping things. Nobody can roll it up. Nobody can clean it retroactively without breaking historical comparisons. The naming convention you pick on day one is the report you live with, so pick it before the first link goes out.
The four fields, and what each one answers
utm_source answers "who sent this click." For an affiliate program, that is the individual partner, by handle or by ID: utm_source=janedoe, or utm_source=aff_10428 if you tag by ID. Handles are readable, IDs are collision proof. Pick one and never mix them, because GA4 treats them as different sources forever.
utm_medium answers "what kind of traffic is this," and for affiliates it should be one fixed value on every partner link: utm_medium=affiliate. That single consistent value is what lets you pull all partner traffic into one bucket and compare the whole channel against email, paid search, and organic. The moment someone writes utm_medium=instagram-post or utm_medium=partner, that traffic leaves the bucket and your affiliate total understates itself.
utm_campaign answers "which promotion." Use it for launches and seasonal pushes, utm_campaign=fall-launch or utm_campaign=bfcm-2026, and set it to "evergreen" for always on links so no row shows up blank. utm_content answers "which link," the placement that distinguishes a banner from a text link from the same partner in the same campaign: utm_content=email-banner versus utm_content=blog-sidebar. Skip utm_term unless you run paid search keywords. It was built for that job and earns nothing in an affiliate setup.
A fully tagged partner link looks like this: https://www.yoursite.com/offer?utm_source=janedoe&utm_medium=affiliate&utm_campaign=fall-launch&utm_content=email-banner. Source tells you the partner. Medium groups the channel. Campaign ties it to the promo. Content tells you it came from her email banner and not her blog sidebar. Four fields, one link, four ways to slice the data.
The rules that keep it clean at fifty partners
All lowercase, always, because GA4 is case sensitive and "Affiliate" and "affiliate" are two channels. Hyphens as word separators, not underscores or spaces, because spaces get encoded into ugly percent signs and underscores are easy to misread. No special characters, no emoji. A master list of allowed values per parameter, shared with every partner before launch, with the rule that if a value is not on the list, it cannot be used. And never change a value mid campaign: renaming utm_source=sarah to utm_source=sarah-jones halfway through splits the history into two rows that will never merge.
One more trap, specific to affiliate links: tag the destination URL, not the affiliate redirect itself, and confirm your network passes UTMs through. Most major networks do, but if yours strips query parameters on redirect, your beautiful tagging dies at the hop and everything lands as unattributed referral traffic. Test one link end to end before you hand the template to eighty partners. Build the tagged link here with presets, so every partner starts from the same values instead of typing them from a doc.
Frequently asked questions
What utm_source should I use for an affiliate partner?
The partner's handle or assigned ID, used consistently: utm_source=janedoe or utm_source=aff_10428. Pick handles or IDs, never both, and never vary the spelling, because GA4 treats each variation as a separate source.
What utm_medium do affiliate links use?
One fixed value on every partner link: utm_medium=affiliate. That is what groups all partner traffic into a single channel you can compare against email, paid, and organic.
Do I need utm_term for affiliate links?
No. utm_term was built for paid search keywords and rarely earns its place in an affiliate setup. Skip it unless you have a specific keyword tracking reason.
Should I tag the affiliate link or the destination URL?
Tag the destination URL and confirm your affiliate network passes UTM parameters through the redirect. If the network strips query parameters, your traffic arrives unattributed no matter how clean the tagging is.
Can I change UTM values mid campaign?
You can, but you should not. Changing a value splits the data: GA4 treats the old and new values as separate rows. If a rename is unavoidable, start a new campaign rather than editing the old one.
Related reading: UTM Naming Conventions That Won't Fall Apart in Six Months · UTM Source vs UTM Medium: Which Answers Which Question · How to Track Influencer Links With UTM Parameters · UTM Parameters Not Showing in GA4? The Checklist
One practical tracking guide a week. Get it by email.