Quick answer
Use the parameter that matches the report you need: utm_source, utm_medium and utm_campaign label traffic in the destination site’s Google Analytics 4 property; a network sub-ID or click reference identifies a placement in the affiliate platform; a GA4 click event measures a visitor leaving your own site. Set a consistent value for each placement, test the full redirect, and compare approved commissions with the platform report. UTMs alone do not reveal a merchant’s sales to a publisher.
Before adding UTMs to an affiliate link, ask whose report you are trying to improve. A publisher, a merchant and an affiliate network see different parts of the same journey. One URL can carry labels for more than one system, but those labels do not become interchangeable.
Pick the right parameter before editing a link
| Question | Use | Where the answer appears |
|---|---|---|
| Which campaign brought a visitor to my site? | UTM parameters on the link to your site | Your GA4 traffic-acquisition report |
| Which article, button or newsletter placement earned a commission? | The affiliate program’s supported sub-ID, click reference or equivalent | The affiliate network or program report, if that field is reported |
| Which links did readers click on my WordPress site? | GA4 outbound-click events or a tested link-click tool | Your GA4 or link-tool report |
If you are an affiliate publisher, adding utm_campaign=review to a merchant URL may help the merchant’s analytics team. It does not give your GA4 property access to the merchant’s checkout. Use the network’s approved placement field when you need sales by article or creative. If you run the merchant site, UTMs help describe referred visits, but your affiliate platform still decides attribution and commission eligibility.
Set up UTM parameters for traffic you receive
Google’s campaign URL guidance describes the main fields. Use utm_source for the referring source, utm_medium for the channel and utm_campaign for the promotion. utm_content can distinguish two creatives within the same campaign; utm_term is commonly used for paid-search terms. Values are case-sensitive, so PartnerA and partnera can split reporting.
For example, a merchant sending partners to a landing page might issue:
https://merchant.example/offer?utm_source=partner_a&utm_medium=affiliate&utm_campaign=summer_offer&utm_content=sidebar
That URL labels the landing visit in the merchant’s GA4 property. The merchant must also keep the program’s required tracking link, partner ID or other attribution mechanism intact. Do not replace an affiliate network link with a bare tagged landing-page URL unless the program explicitly supports that arrangement; the referral might no longer be credited.
Build a short naming sheet before creating dozens of URLs. Define what counts as a source, medium, campaign and placement; use lowercase consistently; and assign one stable value to each concept. Do not attach UTMs to links between pages on your own site. Campaign tags are for incoming traffic, and internal tagging can make acquisition reports misleading.
Use sub-IDs for the placement that should receive credit
For a publisher, a supported sub-ID is usually more useful than another UTM field. impact.com explains that its Sub ID and Shared ID values are stored with a tracking-link click and can be correlated with an action. Awin calls its custom publisher reference clickRef. The field name and allowed format depend on the program; do not copy one network’s syntax into another network’s link.
Choose values you can recognize later, such as review_top, review_table or newsletter_nov. A sub-ID should identify a meaningful placement, not a vague label such as link1 reused across the whole site. Keep a record of the full generated tracking URL, destination, placement, date and program. Use the network’s link builder when it offers one, then verify the resulting URL and report field.
Do not put names, email addresses or other personal data into a public query parameter. These values can be copied, logged and shared with the destination. A short, non-personal placement code is enough for the usual article-versus-newsletter comparison.
Measure outbound clicks on your WordPress site
GA4’s outbound-click measurement can record a click event when a visitor follows a link to another domain, provided Enhanced measurement is enabled. The Link URL, Link domain and Outbound dimensions let you inspect where readers went. Filter the report to the affiliate domains you care about; otherwise it will include unrelated external links. A link to a domain configured for cross-domain measurement is an exception, so check the actual event.
A same-domain short URL such as your-site.example/go/product can complicate the first-hop count: it is an internal link before the redirect. You can track the redirect in a link-management plugin or configure a specific click event. Test one real link before trusting a dashboard. A click count is a measure of interest, not proof of a sale or commission.
Where MonsterInsights and Pretty Links fit
You do not need two plugins merely to append parameters to a URL. Use the network’s tracking-link builder and GA4 first. A plugin becomes useful when you manage many redirects, need a stable short URL or want a WordPress report of link clicks.
| Setup | Useful when | What it does not establish |
|---|---|---|
| GA4 Enhanced measurement | You need outbound clicks by destination from your own site. | Merchant sales and approved commissions. |
| Pretty Links | You need managed short redirects and their click history. Its documentation says to test the saved redirect. | Whether the merchant credits a sale. Check each program’s redirect rules before using it. |
| MonsterInsights affiliate-link tracking | You use its supported plan and want matching link paths reported in WordPress. Its current instructions describe Insights → Settings → Publisher → Affiliate Links and the Top Affiliate Links report. | Conversion and earnings figures from a separate merchant, without a separate data connection. |
MonsterInsights’ current guide specifies a Plus plan or higher for this affiliate-link feature. It recommends short URLs sharing a path such as /affiliate/, then adding that path and a label in its settings. Its Top Affiliate Links report is a click report; it does not document conversions and earnings for each merchant link. If you use a plugin, confirm the current plan and screens before building a workflow around them.
Be careful with link “cloaking.” A redirect and a cloaked destination are not the same thing. Some programs restrict how their links can be shortened or presented; Amazon’s Associates policies, for example, restrict links that obscure the referring site or make the Amazon destination unclear. Check the rules of the program whose link you intend to manage. Do not change a working affiliate URL just to make it prettier.
Test the entire path, then use the numbers
- Create one test link. Record its original network URL, any permitted sub-ID and its final destination. If you use a short redirect, open that short link and confirm the target is correct.
- Check the publisher-side event. Click from the actual page and inspect the event in GA4 DebugView or the plugin’s click history. Confirm that the destination and placement are the ones you intended.
- Check the affiliate-platform report. Allow for its processing time. Verify that the click appears with the intended sub-ID or click reference. A platform may filter your own test clicks, so use its documented test method where available.
- Check a conversion through an approved test flow. A click reaching the network is only the first half. Confirm that an eligible test lead or order receives the correct placement value and status. Never place an unapproved purchase merely to create a test record.
- Compare like with like. GA4 events, redirect clicks, network clicks and approved sales have different definitions. Use sub-ID revenue and approved commissions to judge a placement’s commercial value; use GA4 clicks to diagnose where readers leave.
One practical decision follows from this separation: a high-click placement with few approved sales may need a better product match, a clearer qualification statement or a broken-link check. Moving it higher on the page because it has many clicks could make the problem worse. Judge the placement with both click and commission data, and investigate the gap before changing the recommendation.
Frequently asked questions
Should I put UTM parameters on an affiliate link?
Use UTMs when the destination site needs campaign labels and the program permits that URL structure. If you are a publisher, UTMs on a merchant URL appear in the merchant’s analytics, not automatically in yours. Use the program’s supported sub-ID or click reference to compare your own placements with credited actions.
What is the difference between a UTM parameter and an affiliate sub-ID?
A UTM parameter describes incoming traffic to the destination site’s analytics property. A sub-ID or click reference is recorded by a supporting affiliate platform and can connect a particular link placement to its clicks and credited actions. Neither field replaces the other.
Can MonsterInsights show affiliate sales and commissions?
Its affiliate-link setup and Top Affiliate Links report document link-click tracking. Do not assume that report knows what happened on another merchant’s checkout. Check the merchant or network’s approved conversions and commissions in its own report, or use a separately documented integration.
Do I need Pretty Links to track affiliate clicks in GA4?
No. GA4 Enhanced measurement can record outbound clicks on direct links. A short-link plugin can help manage redirects and click history, but a same-domain redirect may need separate measurement. Check each affiliate program’s link rules before using a redirect.
Why do GA4 clicks and affiliate-network clicks differ?
They are collected at different points and may use different filters and consent rules. A same-domain redirect, blocked analytics tag, repeated click or filtered test visit can change the counts. Test the full link path and compare the same date range and placement before treating a difference as lost attribution.
Which parameter should I use to compare two buttons in one article?
If the affiliate platform supports sub-IDs, give the two buttons distinct non-personal placement values and compare credited actions there. On your own site, GA4 can separately count link clicks. A merchant can use utm_content for creative-level campaign reporting if its link structure supports it.

