How to use UTM tags to track campaign links
Label email and partner links with consistent UTM tags, test the final URL and find the campaign in Google Analytics.
By Pithmark
Add UTM tags to links you share outside your website. Use source for where the link appears, medium for the channel and campaign for the promotion. Open the finished link to check where it lands, then look for the campaign in your analytics report.
Decide what you want to compare
Start with a question you can act on, such as whether your January workshop received visits from your newsletter or a partner’s site. Keep the same campaign name across both links so you can group them. Give each placement its own source and use a medium that describes the channel.
For the newsletter, use utm_source=newsletter and utm_medium=email. For a link on a partner website, you could use utm_source=studio-partner and utm_medium=referral. Give both links utm_campaign=january-workshop. If you need to distinguish the banner from a text link in the same email, give each a distinct utm_content value.
Build and test the finished URL
For a landing page with no existing query parameters, a tagged newsletter link could look like https://example.com/workshop?utm_source=newsletter&utm_medium=email&utm_campaign=january-workshop. A campaign URL builder can add the tags to a link that already has parameters.
Use lowercase names and record the approved source, medium and campaign values in a shared sheet. Analytics treats different capitalisation as different values. Keep email addresses, names and customer identifiers out of tagged URLs. Test the link from a preview of the email or post and check that any redirect keeps the tags until the landing page loads.
Check that the visit reaches the right report
In Google Analytics 4, open Traffic acquisition and look at Session source / medium or Session campaign. Use the date range that includes your test and confirm that the site’s analytics collected the visit. If the row is missing, allow for report processing and check the final link, the property and whether analytics ran during the visit.
When the campaign is live, compare sessions and the actions you care about, such as registrations if you have configured them as a key event. Use the same date range for each source. A click in an email platform and a session in Analytics measure different things, so treat them as separate counts.
- Keep one campaign name across placements you want to group.
- Click the finished link from the channel where readers will find it.
- Check the expected session source and campaign in the report.
Common questions
- Do UTM tags change the page’s content?
- They label a visit. If your website already uses query parameters to select a product or language, preserve them and test that the same page and options still open.
- Should I tag links between pages on my own website?
- Use campaign tags for links that bring people to the site. To see which internal buttons people use, measure the clicks or navigation separately.
Sources
- Google Analytics Help on campaign URLs and UTM naming
- Google Analytics Help on the Traffic acquisition report
- Google Analytics Help on keeping personal information out of URLs
Researched with official sources and written with AI assistance.