In this guide: How to track affiliate links and clicks: why tracking matters, link management and cloaking, UTM parameters, analytics setup, and reading the data to earn more.
If you publish affiliate links across dozens of articles, emails, and social posts, how do you know which ones actually make money? Without tracking, you’re guessing. With tracking, you can double down on content that converts and fix what doesn’t.
Tracking tells you:
Affiliate dashboards show sales, but usually not which of your pages or placements drove them. Combining your own tracking with affiliate reports gives the full picture.
Link management plugins create clean, branded links that redirect to affiliate URLs:
yoursite.com/go/hosting-name/ → long affiliate URL.Popular WordPress options: Pretty Links, ThirstyAffiliates, Lasso, and similar tools.
Benefits:
rel="sponsored" and nofollow, and open in a new tab.About “cloaking”: redirecting through your domain is common and generally allowed, but some programs (notably certain marketplaces) have specific rules about link redirects and cloaking — check each program’s terms. Never use cloaking to mislead readers about where a link goes, and always disclose affiliate relationships.
Sub-IDs (tracking IDs)
Most affiliate programs let you add a sub-ID to your link to track sources:
affiliate-link?subid=hostinger-vs-bluehost-tableaffiliate-link?subid=newsletter-octThen your affiliate dashboard shows commissions by sub-ID — telling you exactly which page or placement made the sale. Check each program’s parameter name (subid, sid, tag, etc.).
UTM parameters
UTMs track traffic you send to your own site (from email, social, or ads) in Google Analytics — see UTM Parameters: Track Every Campaign Link. They help you see which campaigns bring visitors who click affiliate links.
Track outbound affiliate clicks in Google Analytics 4:
click events (with link_url).event_name equals click AND link_url contains /go/ (or your affiliate domains).affiliate_click.affiliate_click as a key event if it’s a main goal.Many link management plugins also show click counts in the WordPress dashboard.
Build a simple monthly report:
| Page | Sessions | Affiliate clicks | Click rate | Commissions (by sub-ID) |
|---|---|---|---|---|
| Hostinger vs Bluehost | … | … | … | … |
| Best Email Platforms | … | … | … | … |
Then ask:
Update top-earning articles regularly — prices, features, and offers change, and outdated info reduces trust.
Further reading: OWASP Top 10 web security risks
We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.