Guides /

How to build UTM tracking links

How To

How to build UTM tracking links

UTM parameters are tags you add to a URL so that analytics platforms like GA4 can identify exactly where your traffic came from. Without them, paid campaign traffic often shows as organic or direct.

The five UTM parameters

Parameter Required Description Example
utm_sourceYesWhere the traffic originatesgoogle, newsletter
utm_mediumYesThe marketing channelcpc, display, email
utm_campaignRecommendedThe campaign namespring_sale_2026
utm_termOptionalPaid search keywordrunning+shoes
utm_contentOptionalCreative variant or placementbanner_top, cta_blue

Example URL

Tagged URL

https://example.com/sale?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale_2026&utm_content=banner_300x600

Naming convention best practices

  • Use lowercase consistently. UTM values are case-sensitive — Google and google appear as separate sources in GA4.
  • Replace spaces with underscores or hyphens. Spaces get encoded as %20 or +, making values harder to read in reports.
  • Be consistent across campaigns. Decide on conventions upfront (e.g. always cpc not paid_search) and document them in a shared tracker.
  • Don't tag internal links. Adding UTM tags to links within your own site will overwrite the original session source, inflating paid traffic metrics.
  • Use utm_content for A/B testing creatives. Tag each creative variant with a unique content value to compare performance in GA4.

Common utm_medium values

Channel Recommended utm_medium
Paid searchcpc
Display advertisingdisplay
Paid socialpaid_social
Email marketingemail
Affiliateaffiliate
Video pre-rollvideo

Try the UTM Builder

Build a properly encoded UTM URL in seconds — just fill in the fields.

Open tool