How to Create UTM Parameters for Campaign Tracking: Everything You Need to Know
If you have ever wondered where your website traffic actually comes from, UTM parameters are the answer. They give you precise control over how your marketing campaigns are tracked, letting you see exactly which emails, social posts, or ads drive results.
In this guide, we walk you through how to create UTM parameters from scratch, show you how to use Google’s Campaign URL Builder, explain practical naming conventions, and highlight the common mistakes that trip up even experienced marketers. We will also cover how to read your UTM data inside Google Analytics 4 so you can make smarter decisions with your budget.
What Are UTM Parameters?
UTM stands for Urchin Tracking Module, a naming convention that dates back to Urchin Software, which Google acquired and turned into Google Analytics. UTM parameters are small snippets of text added to the end of a URL. When someone clicks a link that contains UTM parameters, those tags are sent to Google Analytics (or any other analytics platform) so you can identify exactly which campaign, source, and medium brought that visitor to your site.
Here is a simple example:
https://www.example.com/sale?utm_source=facebook&utm_medium=social&utm_campaign=summer_sale_2026
Everything after the ? is UTM tracking data. The website visitor still lands on the same page, but your analytics tool now knows that this particular click came from Facebook, via a social post, as part of your summer sale campaign.

What Are the 5 UTM Parameters?
Google Analytics recognizes five default UTM parameters. Three are required and two are optional.
| Parameter | Required? | Purpose | Example |
|---|---|---|---|
| utm_source | Yes | Identifies the platform or website sending the traffic | google, newsletter, facebook |
| utm_medium | Yes | Identifies the marketing medium or channel type | cpc, email, social, referral |
| utm_campaign | Yes | Identifies the specific campaign name or promotion | summer_sale_2026, product_launch |
| utm_term | No | Identifies paid search keywords | running+shoes, utm+tracking |
| utm_content | No | Differentiates similar content or links within the same campaign (great for A/B testing) | header_banner, footer_link, blue_button |
Using all five parameters gives you the most granular data, but at minimum you should always include utm_source, utm_medium, and utm_campaign.
How to Create UTM Parameters: Step-by-Step
You can add UTM parameters to a URL manually, but using a dedicated tool is faster and less error-prone. Below is the step-by-step process using Google’s Campaign URL Builder.
Step 1: Open the Campaign URL Builder
Navigate to Google’s Campaign URL Builder at https://ga-dev-tools.google/campaign-url-builder/. This is Google’s own free tool, and it works perfectly with Google Analytics 4.
Step 2: Enter Your Website URL
In the first field, paste the full destination URL of the page you want to track. For example:
https://www.yoursite.com/spring-collection
Make sure to include https:// at the beginning.
Step 3: Fill In the Required Fields
- Campaign Source (utm_source): Enter where the traffic will come from. Examples: facebook, google, newsletter, linkedin.
- Campaign Medium (utm_medium): Enter the type of marketing channel. Examples: social, email, cpc, banner.
- Campaign Name (utm_campaign): Enter a descriptive name for the campaign. Examples: spring_sale_2026, webinar_april, product_launch_v2.
Step 4: Fill In the Optional Fields (When Relevant)
- Campaign Term (utm_term): Use this when running paid search campaigns to track the keyword. Example: best+crm+software.
- Campaign Content (utm_content): Use this when you have multiple links in the same campaign and need to differentiate them. Example: top_nav_link vs. sidebar_banner.
Step 5: Copy Your Generated URL
The tool will instantly generate your full URL with all UTM parameters appended. It will look something like this:
https://www.yoursite.com/spring-collection?utm_source=facebook&utm_medium=social&utm_campaign=spring_sale_2026&utm_content=carousel_ad
Step 6: Shorten the URL (Optional but Recommended)
UTM-tagged URLs can get long and look messy, especially on social media. Use a URL shortener like Bitly or your own branded short domain to keep things tidy. The tracking still works perfectly behind a shortened link.
Step 7: Use the Link in Your Campaign
Place the tagged URL in your email, social media post, ad, QR code, or any other marketing asset. When someone clicks it, the UTM data flows straight into your analytics.

How to Create UTM Parameters Manually
If you prefer not to use a builder tool, you can add UTM parameters to any URL by hand. Here is the format:
- Start with your base URL:
https://www.yoursite.com/page - Add a ? after the URL to begin the query string.
- Add your first parameter:
utm_source=value - Separate each additional parameter with an & symbol.
- Your final URL:
https://www.yoursite.com/page?utm_source=google&utm_medium=cpc&utm_campaign=brand_awareness
Important: If your URL already contains a question mark (for example, a product page with filters), use & instead of ? to append your UTM parameters.
UTM Naming Conventions: Best Practices
Having a consistent naming system is arguably more important than the UTM tags themselves. Without it, your analytics data becomes a mess. Follow these rules:
1. Always Use Lowercase
UTM parameters are case-sensitive. That means Facebook, facebook, and FACEBOOK will appear as three different sources in Google Analytics. Pick lowercase and stick with it.
2. Use Underscores Instead of Spaces
Spaces in URLs get encoded as %20, which makes your data harder to read. Use underscores (_) or hyphens (-) instead.
- Good:
spring_sale_2026 - Bad:
spring sale 2026
3. Be Descriptive but Concise
Your future self (and your team) should be able to understand what a campaign was about just by reading the UTM values. Avoid vague names like test1 or campaign_abc.
4. Keep a Master Spreadsheet
Create a shared spreadsheet or document that lists every UTM combination your team uses. Include columns for:
- Date created
- Full tagged URL
- Source
- Medium
- Campaign name
- Who created it
- Notes or context
This prevents duplicate entries and inconsistent naming across teams.
5. Align utm_medium Values with GA4 Default Channel Groupings
Google Analytics 4 uses default channel groupings to categorize traffic. If your utm_medium values do not match the expected terms, your traffic may be classified as “Unassigned.” Here are the most common recommended values:
| Channel | Recommended utm_medium |
|---|---|
| Paid Search | cpc or ppc |
| Organic Social | social |
| Paid Social | paid_social or paidsocial |
| Display | display or banner |
| Affiliate | affiliate |
| Referral | referral |

Common Mistakes Marketers Make with UTM Parameters
Even seasoned marketers stumble with UTM tracking. Here are the most frequent mistakes and how to avoid them.
Mistake 1: Inconsistent Capitalization
As noted above, Email and email are two different values in GA4. This is the number one cause of messy campaign data. Always use lowercase.
Mistake 2: Using UTM Parameters on Internal Links
This is a big one. Never use UTM parameters on links within your own website. When a visitor clicks an internal UTM-tagged link, Google Analytics starts a new session and attributes it to that UTM source, effectively overwriting the original source data. This inflates your campaign numbers and destroys accurate attribution.
Mistake 3: Forgetting to Track UTMs in a Spreadsheet
Without a central record, team members will create their own naming conventions. You will end up with utm_source=fb, utm_source=facebook, and utm_source=Facebook all pointing to the same platform but showing as separate entries in your reports.
Mistake 4: Using Spaces or Special Characters
Spaces become %20 in URLs, and special characters like # can break the URL entirely. Stick to letters, numbers, underscores, and hyphens.
Mistake 5: Making URLs Too Long or Too Cryptic
A URL stuffed with overly detailed UTM values looks spammy and may discourage clicks, especially on social media. Keep values descriptive but short, and use a URL shortener when sharing publicly.
Mistake 6: Not Testing Links Before Launch
Always click your UTM-tagged URL before sending it to your audience. Check that it leads to the correct page and that the parameters appear correctly. A broken link or a typo in the URL wastes your campaign budget and frustrates users.
How to Analyze UTM Data in Google Analytics 4
Creating UTM parameters is only half the equation. You also need to know where to find and interpret the data in GA4.
Step 1: Open GA4 and Navigate to Traffic Acquisition
Go to Reports > Acquisition > Traffic acquisition. This report shows you how users arrived at your site during each session.
Step 2: Change the Primary Dimension
By default, GA4 shows data grouped by “Session default channel grouping.” Click the dropdown and switch it to:
- Session source (to see utm_source values)
- Session medium (to see utm_medium values)
- Session campaign (to see utm_campaign values)
- Session source / medium (to see both combined)
Step 3: Add a Secondary Dimension
Click the + icon next to the primary dimension to add a secondary dimension. For example, view Session campaign as the primary and Session source / medium as the secondary to see the full picture of each campaign.
Step 4: Use the Search Bar to Filter
If you have many campaigns running, type a specific campaign name in the search bar to filter results quickly.
Step 5: Build Custom Explorations for Deeper Analysis
For advanced analysis, go to Explore in GA4 and create a free-form exploration. Add dimensions like Session source, Session medium, Session campaign, and Session manual ad content (for utm_content). Pair them with metrics like Sessions, Conversions, Engagement rate, and Revenue for a complete performance overview.

Free UTM Builder Tools Worth Trying
While Google’s Campaign URL Builder is the most widely used tool, there are other options that offer additional features:
- Google Campaign URL Builder – The official tool from Google. Simple, reliable, and free.
- UTMbuilder.net – A quick and straightforward free builder with a clean interface.
- UTMbuilder.com – Offers batch URL creation and integrates with popular marketing platforms.
- Bitly – While primarily a URL shortener, Bitly also supports adding UTM parameters and provides click tracking.
- UTM.io – A more advanced tool with team collaboration features, templates, and naming convention enforcement.
UTM Parameter Template You Can Copy
Here is a ready-to-use template structure for your UTM parameters. Adapt it to your own campaigns:
| Parameter | Convention | Example |
|---|---|---|
| utm_source | platform name, lowercase | facebook, linkedin, newsletter |
| utm_medium | channel type, matching GA4 defaults | social, email, cpc, display |
| utm_campaign | descriptive_name_date | spring_promo_apr2026 |
| utm_term | keyword or audience | running+shoes, retargeting_30d |
| utm_content | creative variant or placement | hero_image, cta_button_red |

Quick Checklist Before Launching a UTM-Tagged Campaign
- Are all UTM values in lowercase?
- Have you replaced spaces with underscores or hyphens?
- Does the destination URL load correctly with the UTM parameters attached?
- Have you recorded the UTM details in your master spreadsheet?
- Are you using utm_medium values that align with GA4 channel groupings?
- Did you confirm that no internal links on your website contain UTM tags?
- If sharing on social media, did you shorten the URL?
Frequently Asked Questions
How are UTM codes generated?
UTM codes are generated by appending specific query parameters to the end of a URL. You can create them manually by adding ?utm_source=value&utm_medium=value&utm_campaign=value to your URL, or you can use a free tool like Google’s Campaign URL Builder to generate them automatically.
Is there a free UTM builder?
Yes. Google offers a free Campaign URL Builder at ga-dev-tools.google/campaign-url-builder/. Other free options include UTMbuilder.net and UTMbuilder.com. All of them let you enter your URL and campaign details, then output a fully tagged link.
What are the 5 UTM parameters?
The five UTM parameters are utm_source (traffic origin), utm_medium (marketing channel type), utm_campaign (campaign name), utm_term (paid keyword), and utm_content (content differentiator for A/B tests). The first three are required; the last two are optional.
Can I use UTM parameters with Google Ads?
You can, but in most cases Google Ads auto-tagging (via the gclid parameter) is more accurate and provides richer data in GA4. Use manual UTM tagging for Google Ads only if you need the data in a third-party analytics tool that does not support gclid, or if you have disabled auto-tagging for a specific reason.
Do UTM parameters affect SEO?
No, UTM parameters do not directly affect your search engine rankings. Google ignores UTM query parameters when indexing pages. However, to be safe, make sure your canonical tags are set correctly so that search engines do not index the UTM-tagged version of your URLs as separate pages.
How many UTM parameters can I add to a single URL?
You can add all five standard UTM parameters to a single URL. Each parameter should appear only once. Adding the same parameter twice can cause tracking errors, as analytics tools may only read the first or last instance.
Should I use UTM parameters for email campaigns?
Absolutely. Email is one of the most important channels to tag with UTM parameters. Without them, email traffic often gets lumped into “direct” traffic in Google Analytics, making it impossible to measure email campaign performance accurately.
Final Thoughts
Learning how to create UTM parameters is one of the highest-impact skills a marketer can develop. It costs nothing, takes minutes per campaign, and gives you crystal-clear visibility into what is actually driving traffic and conversions. The key is consistency: pick a naming convention, document it, share it with your team, and stick to it across every campaign you run.
Start with the three required parameters (source, medium, campaign), build a tracking spreadsheet, and review your GA4 reports regularly. Over time, you will build a rich dataset that makes budget decisions easier and proves the ROI of your marketing efforts.
