UTM link builder
Make it clear in GA4 where your email, social media and partner links come from. Fill in the fields; the tagged link is ready below.
Result
The link is ready. Open it once before you share it and check that the page loads.
Formula
- tagged link = page address ? utm_source=source & utm_medium=medium & utm_campaign=campaign
- optional: & utm_term=keyword & utm_content=content
If the address already has a query, the parameters are added with & instead of ?; the part starting with # stays last. Spaces and non-English characters are encoded to suit an address.
Worked example
For a spring sale you link from your email newsletter to https://www.example.com/offer/. The source is newsletter, the medium email, the campaign spring-sale.
The result: https://www.example.com/offer/?utm_source=newsletter&utm_medium=email&utm_campaign=spring-sale. GA4 records the visit as newsletter / email and shows it in the campaign report under the name spring-sale.
How to read the result
- GA4 reads these values as case-sensitive: Email and email become two separate rows. Always use lower case and hyphens instead of spaces, and keep the names in one table shared by the team.
- Use UTM only on links that come to your site from outside. If you add it to links within your own site, the real source of the visit can be lost in the reports.
- With auto-tagging switched on in Google Ads, clicks are measured already; UTM helps most on email, social media posts, QR codes and partner links.
- The parameters are visible to everyone in the address bar; never put personal data or an email address in them.
Questions
The questions that come up most about this calculation. If yours is not here, write to us and we will answer within one working day.
What is a UTM parameter?
UTM parameters are short tags added to the end of a link that tell your analytics tool where the visit came from. The three used most are utm_source, utm_medium and utm_campaign. Google Analytics reads these values and records the visit against that source and campaign.
What is the difference between utm_source and utm_medium?
utm_source names where the visit came from: newsletter, instagram or the name of a partner, for instance. utm_medium says what kind of channel it is: email, social or cpc. Writing medium values consistently matters, because GA4 looks at this value when it sorts traffic into channel groups.
Do UTM parameters harm SEO?
On a site that is set up properly, they do not. When the page’s canonical tag points to the address without parameters, search engines usually fold the tagged version into the main address. Even so, do not use UTM links in your site’s own menus or in the sitemap.
Related guides
- GA4 setup checklist: from property to DebugView testsFrom the property to consent mode, from internal traffic to testing: the items to work through in order to set up GA4 properly from day one.
- GA4 vs Google Ads: why the conversion numbers differWe separate, step by step, why the numbers drift apart, which gaps are normal and which point to a mistake in the setup.
- How to set up email automation: 4 core flowsWelcome, abandoned basket, post-purchase and win-back: what starts each flow, what its messages are for and what stops it.