← All guides

UTM parameters explained

What Are UTM Parameters?

UTM (Urchin Tracking Module) parameters are tags you add to URLs to track where your traffic comes from. When someone clicks a link with UTM parameters, analytics tools like Google Analytics capture this data and show you exactly which campaigns, sources, and mediums are driving visitors to your site.

The Five UTM Parameters

1. utm_source (Required)

Identifies where the traffic originates. This is the platform or referrer sending traffic to your site.

Common values:

  • google - Google search or ads
  • facebook - Facebook
  • newsletter - Email newsletter
  • twitter - Twitter/X
  • linkedin - LinkedIn

2. utm_medium (Required)

Describes the marketing medium or channel type.

Common values:

  • cpc - Cost-per-click advertising
  • email - Email marketing
  • social - Organic social media
  • organic - Organic search
  • affiliate - Affiliate marketing
  • referral - Referral traffic

3. utm_campaign (Required)

The specific campaign name, promotion, or product you're promoting.

Examples:

  • spring_sale_2024
  • product_launch
  • black_friday
  • retargeting_q4

4. utm_term (Optional)

Used for paid search to identify the keywords that triggered the ad.

Example: utm_term=project+management+software

5. utm_content (Optional)

Differentiates between similar content or links within the same ad or email. Useful for A/B testing.

Examples:

  • utm_content=banner_ad
  • utm_content=text_link
  • utm_content=version_a

Example URL

https://example.com/landing-page
  ?utm_source=facebook
  &utm_medium=social
  &utm_campaign=summer_sale
  &utm_content=video_ad

Best Practices

  • Be consistent: Use lowercase and underscores. Decide on conventions and stick to them.
  • Use meaningful names: Make campaign names descriptive and date-stamped when relevant.
  • Document your parameters: Keep a spreadsheet of all UTM parameters used.
  • Test your URLs: Always click through to ensure parameters work correctly.

Common Mistakes to Avoid

  • Using spaces (use underscores or hyphens instead)
  • Inconsistent naming (mixing "email" and "Email")
  • Creating URLs that are too long (use a URL shortener if needed)
  • Forgetting to add UTM parameters to internal links

Related Tools

FAQ

Q: Do UTM parameters affect SEO?
A: No, search engines ignore UTM parameters for ranking purposes. They only affect analytics tracking.

Q: Can I use UTM parameters on internal links?
A: It's not recommended. UTM parameters are for external traffic sources. For internal tracking, use event tracking or custom dimensions.

Q: What happens if I use the same parameter twice?
A: The last value in the URL typically takes precedence, but behavior can vary by analytics platform.

Related tools