UTM Parameters for Affiliate Links: Builder and GA4 Setup (2026)

This post contains affiliate links. If you buy through one, I may earn a commission at no extra cost to you. I only recommend tools I believe are useful. Read my disclosure.

UTM parameters for affiliate links work best on links that point to your own site, not on the merchant’s affiliate link itself. UTMs report to whoever owns the landing page, so tag your social, email and video links to your review pages, and use the network’s sub IDs or Amazon tracking IDs to see which content earns commissions.

Short answer: Use UTM parameters (utm_source, utm_medium, utm_campaign) on links that send people to your own pages, so GA4 shows which channel brought them. Do not rely on UTMs inside merchant affiliate links: that data goes to the merchant’s analytics, and networks like impact.com warn that editing tracking links by hand can break reporting. For affiliate links, use sub IDs or Amazon tracking IDs instead.

Key takeaways

  • UTMs report to the page owner. A UTM on a link to your site shows up in your GA4. A UTM on a link to a merchant shows up in theirs, if anywhere.
  • Always set three: Google says to always use utm_source, utm_medium and utm_campaign.
  • Values are case sensitive: utm_source=google and utm_source=Google are separate rows in GA4. Use lowercase.
  • Sub IDs track sales: impact.com’s SubId1 to SubId3 and Amazon’s tracking IDs (up to 100 per account) tell you which post or channel earned a commission.
  • GA4 sees clicks, not sales: its outbound click event shows which pages send affiliate clicks, but purchases happen on the merchant’s site.
  • Free tool: build and check links with my UTM Builder and GA4 Channel Checker.
Laptop showing website analytics, used to track UTM parameters for affiliate links

Want to see which posts send the most affiliate clicks too? Follow my guide to tracking affiliate clicks in GA4.

What are UTM parameters?

UTM parameters are tags you add to the end of a URL so Google Analytics can tell which campaign sent a visitor. Google’s help page lists them as utm_source, utm_medium, utm_campaign, utm_id, utm_term, utm_content and utm_source_platform, and says you should always use utm_source, utm_medium and utm_campaign.

Anatomy of a UTM-tagged link with utm_source, utm_medium, utm_campaign and utm_content
Each UTM parameter answers one question about where a click came from.
ParameterWhat it recordsExample
utm_sourceWho sent the clicknewsletter, youtube, facebook
utm_mediumThe type of trafficemail, social, referral, affiliate
utm_campaignThe promotion or posttool-roundup
utm_contentWhich link in the same placetop-button
utm_termA paid keywordrunning+shoes
utm_idA campaign IDabc.123

Google’s own example tags a summer sale email with utm_source=summer-mailer, utm_medium=email and utm_campaign=summer-sale. The tags go after a question mark at the end of the URL, joined by ampersands, and the visitor still lands on the same page.

Mostly no. A UTM tag reports to the analytics on the page where the visitor lands. When you add UTMs to a merchant’s affiliate link, the data goes to the merchant’s Google Analytics, not yours, and you never see it.

There is also a tracking risk. impact.com’s help center warns partners to “add parameters on the impact.com platform instead of appending them manually,” because altering tracking links by hand “can introduce errors that affect your reporting.”

UTM parameters are the right tool in two affiliate situations:

  1. Links to your own content. Tag the link in your email, YouTube description, Pinterest pin or social bio that points to your review or comparison page. GA4 then shows which channel brought the reader who clicked your affiliate link.
  2. When the brand already added them. impact.com notes that a brand may already have added tags to the tracking link you get, and says they must not be removed. Use exactly the link the program gives you.

When should you use sub IDs instead of UTMs?

Use a sub ID whenever you want to know which post, button or channel earned a commission. Sub IDs are passed to the affiliate network, so they show up next to clicks and sales in your network reports.

When to use UTM parameters, sub IDs, Amazon tracking IDs or a GA4 outbound click event for affiliate links
UTMs, sub IDs, Amazon tracking IDs and GA4 click events each answer a different question.
  • impact.com: add SubId1, SubId2 and SubId3 when you create the link. impact.com says Sub IDs “are only visible to you as the partner” and accept up to 255 alphanumeric characters.
  • Amazon Associates: create extra tracking IDs under Manage Your Tracking IDs in Associates Central. Amazon’s help page says there is a limit of 100 tracking IDs per Associates account, and each one reports separately while earnings stay in one account.
  • Other networks: most networks offer a sub ID or “custom tracking” field. Check your network’s help center for its exact name.

For a step-by-step setup, read my guide to dynamic sub ID affiliate tracking, and see how to track affiliate links for free.

You can build a UTM link by hand, with Google’s free Campaign URL Builder or with my free UTM Builder. Follow these steps:

  1. Copy the page URL you want to send people to, such as your review page.
  2. Set utm_source to the site or sender, such as newsletter or youtube.
  3. Set utm_medium to the type of traffic, such as email, social or referral.
  4. Set utm_campaign to the post or promotion, such as tool-roundup.
  5. Add utm_content if one email or page has more than one link to the same URL, such as top-button and footer-link.
  6. Check the channel GA4 will assign before you publish, then shorten the link if it is going on social media.
Free UTM Builder and GA4 Channel Checker on davidsandyofficial.com
My free UTM Builder fills in source and medium from presets and predicts the GA4 channel.

My UTM Builder and GA4 Channel Checker has presets for an email newsletter, YouTube description, Instagram bio, podcast show notes and an “affiliate or partner link.” It also has a bulk tab for tagging a whole spreadsheet, and it shows which GA4 default channel each link will most likely land in. Nothing you type is sent to a server.

If you prefer Google’s tool, the Campaign URL Builder explains each field.

Google Campaign URL Builder table explaining each UTM parameter
Google’s Campaign URL Builder lists which parameters are required and what each one is for.
MeasureSchool explains UTM parameters and how tracking works in about 100 seconds.

What naming rules keep GA4 reports clean?

Pick one naming rule and use it everywhere. Google’s UTM best practices say parameter values are case sensitive, so Meta and meta become two different rows, and SpringSale and Spring_Sale count as two campaigns.

  • Use lowercase for every value.
  • Pick one separator, either hyphens or underscores, and never mix them.
  • Use one source per platform, such as facebook, instagram and youtube.
  • Use mediums GA4 recognizes. GA4’s default channel rules put email in Email, social in Organic Social, referral in Referral and affiliate in Affiliates.
  • Fill in all three core fields. Google notes that missing UTM parameters show up as (not set) in reports.

Keep a simple spreadsheet of the values you use so a teammate or virtual assistant builds links the same way.

Where do you see UTM data in GA4?

Open Reports > Acquisition > Traffic acquisition. Google says you can view Session source/medium, Session medium, Session source and Session campaign there. Change the primary dimension to Session campaign to compare promotions, or Session source/medium to compare channels.

To see which of those visitors went on to click an affiliate link, turn on GA4’s enhanced measurement. Its Outbound clicks option sends a click event each time someone clicks a link to another domain, with the link URL and domain as parameters. Remember that GA4 sees the click, not the merchant’s sale. For a full walkthrough, see my ClickMagick vs Google Analytics comparison and my list of the best link tracker software.

Analytics Mania shows how GA4 reports campaign traffic from UTM-tagged links.

Common UTM mistakes affiliates make

  1. Tagging internal links. UTMs are meant for links from outside sources. Putting them on links between your own pages makes GA4 credit the visit to your tag instead of the channel that really brought the reader. Only tag links that come from outside your site.
  2. Editing network tracking links by hand. Use the network’s own sub ID fields so you do not break attribution.
  3. Mixing capital letters. YouTube and youtube split your data into two rows.
  4. Leaving out utm_medium. Without it, GA4 cannot place the traffic in the right channel and you may see Unassigned.
  5. Expecting UTMs to show sales. UTMs show visits and actions on your site. Commissions live in your affiliate dashboards.

Want to estimate what that traffic is worth? Plug your clicks and conversion rate into my free Affiliate Earnings and Break-Even Planner.

Can you add UTM parameters to affiliate links?

You can, but the data goes to the merchant’s analytics, not yours, and some networks warn that editing tracking links by hand can break reporting. Use the network’s sub ID fields to track your own results.

Do UTM parameters affect affiliate commissions?

Not when they are on links to your own site. On a merchant’s tracking link, a hand-edited URL can cause errors, so use the network’s link builder to add parameters.

What utm_medium should I use for affiliate traffic?

Use affiliate when a partner sends traffic to your site, because GA4 puts medium = affiliate into its Affiliates channel. For your own email or social links, use email or social.

Are UTM parameters case sensitive?

Yes. Google says utm_source=google is different from utm_source=Google, so use lowercase everywhere.

What is the difference between a UTM and a sub ID?

A UTM reports to the analytics of the page where the visitor lands. A sub ID reports to your affiliate network, so it can show which post or channel earned a sale.

How many tracking IDs can you have on Amazon Associates?

Amazon’s help page says there is a limit of 100 tracking IDs per Associates account, and you can ask Associates support if you need more.

Where do I find UTM data in GA4?

Go to Reports, then Acquisition, then Traffic acquisition, and set the primary dimension to Session campaign or Session source/medium.

Final thoughts

UTM parameters are for your own pages, and sub IDs are for your affiliate links. Tag every outside link that sends readers to your reviews, keep your names lowercase and consistent, and let your network’s sub IDs or Amazon tracking IDs tell you which content earns. Your next step: open the UTM Builder, tag the link in your next newsletter or video description, and check Traffic acquisition in GA4 a week later.

Sources: Google Analytics Help on URL builders and UTM best practices, default channel groups and enhanced measurement events; impact.com’s help pages on Sub IDs and adding reporting parameters; and Amazon’s Associates Central help page on multiple tracking IDs.

David Sandy Ebook Trilogy Books

Get All 3 Of My Ebooks... For Free!

>
0 Shares
Share
Tweet
Pin