The ultimate guide to UTM parameters

Learn how to use UTM parameters to track how many visitors, leads and customers you get from your marketing campaigns.

Start 14 Day Free Trial

Why UTM parameters matter

If you cannot see how many visits, leads and customers you get from each campaign, you can easily overspend on channels that do not work. UTMs make performance measurable so you can double down on winners and pause what does not convert.

What are UTM parameters?

UTM parameters are small key value pairs you append to a URL. Analytics tools and Attry read them to understand where a visitor came from.

https://example.com/pricing?utm_medium=ppc&utm_source=google&utm_campaign=brand-campaign

In the example above, most tools would categorize the session as Paid Search because utm_medium=ppc and utm_source=google.

The 5 UTM parameters

The parameters form a simple hierarchy - medium is the highest level and content is the most granular.

utm_medium

Top level channel. Examples - ppc, cpc, paid, paidsearch, paidsocial, email, display, affiliates.

utm_source

Network or site. Examples - google, facebook, instagram, linkedin, bing.

utm_campaign

Campaign name. Examples - brand-campaign, holiday-campaign, competitor-campaign.

utm_term

Ad group or ad set. Examples - australia-adset, dropbox-competitor-adgroup.

utm_content

Specific ad or creative. Examples - red-ad, discount-offer, demo-cta.

Where to use UTM parameters

  • Search ads - Google Ads and Microsoft Ads
  • Social ads - Facebook, Instagram, LinkedIn, YouTube and more
  • Email campaigns - newsletters and lifecycle sequences
  • Organic social posts - links you share on your profiles
  • Publications and sponsorships - links from third party sites
  • Trade shows - QR codes and short links printed on collateral
  • Offline campaigns - direct mail and out of home via short links or QR codes

Only tag links from other places to your site - never tag internal links between your own pages.

How to create UTM parameters

Use a builder to avoid syntax errors - you need a question mark before parameters, ampersands between them, and you must escape characters like spaces.

Free options

Paid options

  • UTM.io - structure rules and team workflows
  • Terminus - similar capabilities tailored to larger teams

What to include in each parameter

utm_medium

Channel type - paidsearch, paidsocial, email, display, social.

utm_source

Network - google, facebook, instagram, linkedin, bing.

utm_campaign

Campaign name - brand-campaign, holiday-campaign.

utm_term

Ad group or ad set - australia-adset, competitor-adgroup.

utm_content

Ad or creative - red-ad, discount-offer, demo-cta.

Recommended defaults by channel

Google Ads

  • utm_medium=ppc
  • utm_source=google
  • utm_campaign=[campaign name]
  • utm_term=[ad group name]
  • utm_content=[ad name or keyword]

Facebook Ads

  • utm_medium=paid
  • utm_source=facebook
  • utm_campaign=[campaign name]
  • utm_term=[ad set name]
  • utm_content=[ad name]

LinkedIn Ads

  • utm_medium=paid
  • utm_source=linkedin
  • utm_campaign=[campaign group or campaign]
  • utm_term=[campaign or ad set]
  • utm_content=[ad name]

Email campaigns

  • utm_medium=email
  • utm_source=[tool or newsletter name]
  • utm_campaign=[campaign name]
  • utm_term=[offer or segment]
  • utm_content=[link name if multiple links]

Organic social

  • utm_medium=social
  • utm_source=[network name]
  • utm_campaign=[campaign name if applicable]
  • utm_term=[post name or theme]
  • utm_content - not used

How to add UTMs in common platforms

In most ad tools you can paste a tagged URL into the final or destination URL field. If you manage many campaigns, use features like tracking templates or dynamic parameters to apply UTMs at scale.

Using UTMs to track visitors, leads and customers

UTMs feed your analytics. In GA4, sessions and conversions can be attributed by your UTM parameters, for exampleutm_source,utm_medium, andutm_campaign (and where useful,utm_term andutm_content). GA4 also maps utm_medium to its channel dimension, but the underlying attribution comes from the UTM fields. If you also want to track leads and revenue, Attry captures the UTMs on form submissions and pushes them into your CRM, so you can report pipeline and won deals by source, medium and campaign.

Best practices

  • Match the UTMs to the channel rules your analytics tool expects
  • Use dashes instead of spaces
  • Always use lowercase
  • It is fine to omit some parameters - prefer higher level ones if you do
Use only the parameters you need, and prioritize higher-level ones first so analytics categorize sessions correctly. Recommended priority: 1. utm_medium (top-level channel) 2. utm_source (network or site) 3. utm_campaign (campaign name) 4. utm_term (ad group or set) 5. utm_content (ad or creative)

Quick Recap

Place UTM parameters behind any external links to your site. With Attry capturing UTMs into hidden fields and syncing them to your CRM, you can measure which channels and campaigns drive pipeline and revenue.

Get Started Free Today

Try Attry free for 14 days. Paid plans start at just $49/month. Cancel anytime.

Start Free Trial