India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

How to Set Up UTM Parameters in Social Media Campaigns

UTM parameters (Urchin Tracking Module) are simple codes you add to URLs to track the performance of your social media campaigns. 

They help you identify which platforms, posts, or ads are driving the most traffic and conversions. 

Here’s a step-by-step guide to setting them up effectively.

1) Understand the UTM Parameters

There are five UTM parameters, but the first three are essential:

  • utm_source: Identifies where the traffic is coming from (e.g., Facebook, Twitter, Instagram).
  • utm_medium: Defines the marketing medium (e.g., social, cpc, email).
  • utm_campaign: Tracks the specific campaign (e.g., spring_sale, product_launch).
  • utm_term (optional): Tracks the keyword term that a website visitor came from, typically used for paid search ads. 
  • utm_content (optional): Differentiates similar content or links within the same ad or post.

These parameters provide granular insights into your campaign’s performance, helping you fine-tune your marketing strategy.

2) Build your UTM link

How to Set Up UTM Parameters in Social Media Campaigns

You can create UTM parameters manually or use a tool like Google’s Campaign URL Builder.

Example: Manual UTM Structure

**https://yourwebsite.com/landing-page?utm_source=facebook&utm_medium=social&utm_campaign=spring_sale

  • Base URL: https://yourwebsite.com/landing-page
  • UTM Source: facebook
  • UTM Medium: social
  • UTM Campaign: spring_sale

This structure helps you understand which specific links are driving the most engagement.

3) Use Google’s Campaign URL Builder

Follow these simple steps:

  1. Go to Google Campaign URL Builder.
  2. Enter your website URL.
  3. Fill in Campaign Source, Medium, and Name.
  4. (Optional) Add Term and Content if needed.
  5. The tool generates a UTM link. Copy it for your campaign.

This method reduces errors and ensures consistent UTM tagging across campaigns.

4) Apply UTM links in your social media posts

When creating social media posts or ads:

  • Replace the regular link with your UTM-tagged link.
  • Shorten the URL using tools like Bitly for cleaner, more shareable links.
  • If you run WordPress, then you can leverage a link shortening plugin such as Better Links so that your urls use your own domain.

Properly tagged URLs make it easier to track campaign effectiveness without cluttering your posts.

How to View UTM Parameters in Google Analytics 4 (GA4)

To analyze traffic from your UTM-tagged links in Google Analytics 4 (GA4), you’ll use the Traffic Acquisition report. 

This report helps you identify traffic sources, mediums, and assess the performance of your campaigns.

Steps to View UTM Parameters in GA4:

  • Go to:
    ReportsAcquisitionTraffic Acquisition.
  • Default view:
    The primary dimension is set to default channel grouping by default.
  • Change primary dimension:
    Click on Session default channel group, then select Session source/medium to see both the traffic source and medium combined.
  • Add secondary dimension:
    Click the “+” sign to add another dimension. For example, search for “campaign” and select Session campaign to view campaign-specific data.

    Remove unnecessary dimensions/metrics for clarity.

    How to view UTM Campaigns in Google Analytics
  • Add relevant metrics to your report table to analyze campaign performance effectively.
  • Adjust date range:
    In the top-right corner, adjust the date range to view data for specific time periods.

This data helps you determine which social platforms and content types deliver the best ROI.

Pro Tips for UTM Best Practices

  • Stay consistent: Use standardized naming conventions (e.g., always use facebook instead of FB or Fb).
  • Avoid spaces: Use hyphens or underscores, not spaces (spring_sale instead of spring sale).
  • Keep it simple: Focus on tracking what matters most to avoid overcomplicating your data.
  • Document your UTMs: Maintain a spreadsheet to track naming conventions for campaigns.

Consistency ensures your data remains clean and actionable over time.

Example UTM for a Paid Instagram Ad

**https://yourwebsite.com/product?utm_source=instagram&utm_medium=paid_social&utm_campaign=launch&utm_content=carousel_ad1

This tells you:

  • The traffic came from Instagram.
  • It was through paid social.
  • It was part of the launch campaign.
  • It was specifically from carousel ad 1.

By tracking this in Google Analytics, you’ll know which posts or ads are driving results, making it easier to optimize your social media strategy.

Final Thoughts

Mastering UTM parameters is key to understanding the true impact of your social media campaigns. It empowers you to make data-driven decisions, refine your marketing efforts, and maximize ROI.

× Let's Talk