How to Track Digital Marketing Campaigns With UTM Links

a white board with writing written on it
Photo by Bernd 📷 Dittrich on Unsplash

What You Will Learn

  • UTM parameters prevent campaign traffic from being misclassified as Direct or Unassigned in Google Analytics.
  • A strict, lowercase naming convention is essential because Google Analytics is highly case-sensitive.
  • Never use UTM parameters on internal website links as this overwrites the original traffic source data.

Why Your Campaign Traffic Looks Like a Mess

Have you ever sent a beautiful email newsletter or posted a link on social media, only to open your analytics and see all that traffic lumped under 'Direct' or 'Unassigned'? It is incredibly frustrating. When you do not tag your links, Google Analytics has to guess where your visitors came from. Often, it guesses wrong.

The solution is simple: you need to learn how to use UTM parameters. UTM stands for Urchin Tracking Module. These are simple text codes that you add to the end of your URLs. When a user clicks a tagged link, these codes send specific campaign information back to Google Analytics Collect Campaign Data with Custom URLs. This allows you to see exactly which email, social post, or ad drove every single visit and conversion.

In this guide, we will build a complete campaign tracking system step by step. You will learn how to define your UTM fields, create a strict naming convention, build and test your links, and find your campaign data inside Google Analytics 4 (GA4).

Prerequisites: What You Need Before We Start

Before you begin building UTM links, make sure you have the following ready:

  • A live website with Google Analytics 4 (GA4) installed and actively tracking traffic.
  • A spreadsheet tool (like Google Sheets or Microsoft Excel) to keep track of your tagged links.
  • Access to your marketing channels, such as your email marketing platform, social media accounts, or paid ad managers.

Understand the Five UTM Fields

To use UTM parameters correctly, you must understand the five primary fields that Google Analytics uses to categorize your traffic. Let us break them down one by one.

1. Campaign Source (utm_source)

The source identifies the specific platform, website, or publisher that is sending the traffic . For example, if you are sending an email newsletter, your source might be 'newsletter'. If you are posting on Facebook, your source should be 'facebook'.

2. Campaign Medium (utm_medium)

The medium identifies the broader marketing channel or vehicle . This tells you how the visitor reached your site. Common examples include 'email' for newsletters, 'cpc' for paid search ads, and 'social' for organic social media posts.

3. Campaign Name (utm_campaign)

The campaign parameter identifies the specific marketing effort, product launch, or promotion . For example, if you are running a monsoon discount campaign, you might name it 'monsoon-sale'. This groups all traffic from different sources (like email and social) under one unified campaign name.

4. Campaign Term (utm_term)

This is an optional field used primarily for paid search campaigns to track the specific keyword that triggered your ad. For organic campaigns, you can leave this field blank.

5. Campaign Content (utm_content)

This is another optional field used to differentiate different creatives or links within the same campaign . For example, if you have two different buttons in the same email newsletter, you can use 'header-button' for the first one and 'footer-link' for the second one to see which one performs better.

UTM ParameterRequired?PurposeExample Value
utm_sourceYesIdentifies the specific platform or publisherfacebook, newsletter, google
utm_mediumYesIdentifies the marketing channel or mediumsocial, email, cpc
utm_campaignYesIdentifies the specific campaign or promotionmonsoon-sale, product-launch
utm_termNoTracks paid search keywordsrunning-shoes
utm_contentNoDifferentiates creatives or link locationsheader-button, footer-link
white and red analog weighing scale
Photo by Andy Makely on Unsplash

Create a Strict Naming Convention

The biggest mistake marketers make with UTM tracking is lack of consistency. Google Analytics is case-sensitive . This means that 'Email', 'email', and 'EMAIL' are treated as three completely different mediums. If your team uses different terms, your reports will be fragmented and messy.

To prevent this, you must establish a strict naming convention before you build a single link. Here are the golden rules of UTM naming:

  • Always use lowercase: Make it a rule to write every parameter in lowercase letters. This completely eliminates casing errors.
  • Use hyphens instead of spaces: Spaces in URLs turn into ugly '%20' characters, which can break links. Use hyphens ('-') or underscores ('_') to separate words.
  • Be descriptive but brief: Keep your names short and easy to understand. Avoid using vague codes that your team will not remember later.
  • Use one unique name per platform: Use 'fb' or 'facebook' consistently, but do not mix them .

Let us look at a decision rule for choosing your medium. If you are paying for the traffic (like Facebook Ads or Google Ads), your medium should reflect that payment. For example, use 'cpc' or 'paid_social' . If the traffic is free (like a standard post on your Facebook page), use 'social'. This simple decision rule keeps your paid and organic efforts completely separate in your reports.

Before you start tagging, it helps to align your campaign tracking with your overall marketing strategy. You can read our guide on How to Create a Simple Digital Marketing Plan for Beginners to map out your channels and plan your campaigns first.

How to Build and Test Campaign URLs

Now that you understand the fields and have a naming convention, let us build a tagged URL. You do not have to write these URLs manually. You can use a free tool like the official Google DevTools Campaign URL Builder.

Step-by-Step Link Building Process

  1. Open your preferred UTM link builder tool.
  2. In the Website URL field, enter the full destination URL of your landing page.
  3. In the Campaign Source field, enter your source (e.g., 'newsletter').
  4. In the Campaign Medium field, enter your medium (e.g., 'email').
  5. In the Campaign Name field, enter your campaign name (e.g., 'monsoon-sale').
  6. (Optional) Fill in the Campaign Content field if you want to track specific link placements.
  7. Copy the generated URL from the tool.

An Illustrative Example

Let us look at a concrete example. Suppose you want to link to your homepage (https://www.example.com) in your weekly email newsletter to promote a monsoon discount. Your naming convention dictates:

  • Source: newsletter
  • Medium: email
  • Campaign: monsoon-sale
  • Content: blue-button

When you input these into the builder, your final campaign URL will look like this:

https://www.example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=monsoon-sale&utm_content=blue-button

This is the exact URL you will paste into your email marketing platform as the destination link for your button.

Common Mistakes in UTM Tracking

Even experienced marketers make mistakes with UTM links. I want you to avoid these common pitfalls to keep your data clean and reliable.

1. Using UTMs on Internal Links

This is the most critical mistake. Never use UTM links to track clicks from one page of your website to another page of your website. For example, do not put a UTM link on your homepage banner pointing to your contact page. When a user clicks an internal UTM link, Google Analytics ends their current session and starts a brand new session. This completely destroys your original traffic source attribution. If you want to track how users interact with your internal links, you should use event tracking instead. You can read our tutorial on How to Track Outbound Link Clicks in Google Analytics 4 to track these clicks safely without ruining your campaign data.

2. Forgetting to Account for Redirects

If your website redirects visitors (for example, from http://example.com to https://www.example.com), the redirect process can strip away your UTM parameters before the Google Analytics tag loads. This causes the traffic to be recorded as 'Direct'. Always use the final, secure, and correct URL of your page as the base URL in your UTM builder.

3. Writing Sensitive Information in UTMs

Never include personally identifiable information (PII) like email addresses, phone numbers, or real names in your UTM parameters. Google Analytics has a strict policy against collecting PII. If Google detects this data in your URLs, they may delete your data or suspend your analytics property entirely.

a close up of the controls on a radio
Photo by Bonnie Kittle on Unsplash

How to Verify Your Result

Before you launch any campaign, you must verify that your UTM links are working and that Google Analytics is capturing the data correctly. Let us do this verification step by step.

The Verification Steps

  1. Copy your newly generated UTM URL.
  2. Open a new Incognito or Private browsing window. This ensures your active login sessions do not interfere with the test.
  3. Paste the UTM URL into the address bar and press Enter to load your website.
  4. Keep that website tab open and open a new tab or window.
  5. Log into your Google Analytics 4 property.
  6. On the left-hand menu, navigate to Reports and click on Realtime Google Analytics 4 Reports.
  7. Scroll down to the card labeled Users by User source / medium / campaign.

The Decision Rule

If your UTM link is working correctly, you will see your exact source, medium, and campaign name appear in the Realtime report within 60 seconds. If you do not see your parameters, check if your browser has an ad blocker active, or check if your website redirect stripped the parameters from the address bar after the page loaded.

Read Campaign Performance in GA4

Once your campaign is live and users are clicking your links, you can analyze the performance inside Google Analytics 4. Let us find your campaign reports.

Navigating to Campaign Reports

  1. Log into Google Analytics 4.
  2. Go to Reports > Acquisition > Traffic acquisition .
  3. By default, this report groups traffic by the 'Session default channel group'. To see your UTM data, click the dropdown arrow next to this column header.
  4. Select Session source/medium from the dropdown list. You will now see a detailed breakdown of your traffic sources, such as 'newsletter / email' or 'facebook / social'.
  5. To see your specific campaign names, click the blue '+' icon next to the column header, search for 'Session campaign', and select it. This adds a secondary dimension to your report, showing you exactly which campaigns drove the traffic.

Understanding Limitations

While UTM tracking is highly effective, you must keep a few limitations in mind. Standard GA4 reports can take 24 to 48 hours to fully process and display data, so do not worry if your campaign numbers do not match your email platform's click numbers immediately. Additionally, some privacy-focused browsers and browser extensions block Google Analytics tracking scripts entirely. This means a small percentage of your campaign clicks will never show up in your reports.

Your Next Steps

Do not let messy data hold your business back. Your immediate next step is to create a simple UTM tracking spreadsheet today. List your core channels, define your standard sources and mediums, and share this sheet with anyone who creates links for your website. Once you have mastered tracking your traffic sources, you can start mapping how these visitors move through your sales process. Read our guide on How to Build a Marketing Funnel for a Small Business to learn how to build a complete funnel that turns campaign clicks into loyal customers.

Frequently Asked Questions

What happens if I make a spelling mistake in my UTM link?

If you make a spelling mistake or use inconsistent casing, Google Analytics will treat it as a completely separate campaign or source. This fragments your data and makes it difficult to see the total performance of your marketing campaign. Always double-check your links using a tracking spreadsheet before launching.

Can I use UTM parameters on my internal website banners?

No, you should never use UTM parameters on internal links. Doing so will end the user's current session and start a new one, which overwrites the original source of traffic (like organic search or paid ads). To track internal clicks, use event tracking or custom click parameters instead.

Why is my campaign traffic showing up as Unassigned in GA4?

Traffic appears as Unassigned when Google Analytics 4 cannot match your UTM source or medium to its predefined Default Channel Group rules. This usually happens if you use non-standard mediums or make spelling errors. Stick to standard mediums like 'email', 'cpc', and 'organic' to prevent this.

Post a Comment