← Back to Tools

Campaign URL Builder

Create and manage UTM parameters for campaign tracking in Google Analytics. Generate accurate UTM links easily and track your marketing success.

google facebook twitter linkedin instagram newsletter email bing pinterest tiktok
cpc organic social email referral display banner affiliate video paid_social

Generated UTM URL

Parameter Breakdown

Generate a UTM Link to see the parameter breakdown

Recent UTM URLs

Your generated UTM URLs will appear here

The Ultimate Guide to UTM Codes

Unlock the power of campaign tracking. This guide covers everything you need to know about UTM codes, from creation to analysis in Google Analytics. Expand the sections below to learn more.

Introduction: Why UTM Codes Matter

In the vast ocean of digital marketing, understanding where your website traffic comes from and which campaigns are driving results is paramount. Simply seeing an increase in visitors isn't enough; you need granular insights to optimize your strategy and maximize your return on investment (ROI). This is where UTM codes and URL builders become indispensable tools.

But what exactly are they? How do you create them? How do you track them in Google Analytics? And are they really free?

This comprehensive guide will answer all your questions, transforming you from a UTM novice to a campaign tracking pro. We'll cover everything from the basic definitions to advanced implementation, ensuring you have the knowledge to accurately measure the effectiveness of every link you share.

What Does UTM Mean? Unpacking the Acronym

UTM stands for Urchin Tracking Module. The name comes from Urchin Software Corporation, a web analytics company Google acquired in 2005. Their technology formed the foundation of what we now know as Google Analytics.

Essentially, UTM codes are simple snippets of text added to the end of a URL (Uniform Resource Locator). These snippets don't change the destination of the link, but they act like labels, providing crucial information to analytics platforms like Google Analytics about how users arrived at your site.

What is an UTM Code? The Building Blocks of Tracking

An UTM code isn't a single monolithic code; it's composed of several UTM parameters. These parameters are key-value pairs added to your URL after a question mark (?), separated by ampersands (&).

Think of them as descriptive tags attached to your link. When someone clicks that tagged link, Google Analytics (or another compatible analytics tool) reads these tags and categorizes the visit accordingly. This allows you to see precisely which marketing efforts are sending traffic your way.

Example structure: https://yourwebsite.com/page?utm_parameter1=value1&utm_parameter2=value2

The 5 Core UTM Parameters Explained

There are five standard UTM parameters you can use to tag your links. While utm_source, utm_medium, and utm_campaign are generally considered essential for meaningful tracking, using all five provides the most granular data:

  1. utm_source (Required): Identifies the specific source of your traffic – where the user came from. Think of it as the referrer.
    • Examples: google, facebook, newsletter, linkedin, bing, twitter, partner_site
  2. utm_medium (Required): Identifies the marketing medium or channel used.
    • Examples: cpc (cost-per-click), organic, social, email, referral, display, affiliate
  3. utm_campaign (Required): Identifies the specific marketing campaign, promotion, or strategic initiative.
    • Examples: summer_sale_2024, new_product_launch, q4_promo, webinar_signup, brand_awareness_drive
  4. utm_term (Optional): Used primarily for paid search campaigns to identify the specific keywords targeted. Can also be used in other contexts to differentiate ads or links within the same campaign.
    • Examples: digital_marketing_tools, utm_builder_free, running_shoes_discount
  5. utm_content (Optional): Used to differentiate similar content or links within the same campaign and medium. Useful for A/B testing different ad creatives, call-to-action buttons, or link placements.
    • Examples: blue_button, sidebar_link, header_banner, text_link, image_ad_version_a

Key Distinction: Often people ask "How many types of UTM are there?" or "What are the 5 types of UTM?". They are usually referring to these five parameters, which are the building blocks of any UTM-tagged link.

What is a URL Builder (or UTM Tracking Builder)?

Manually adding UTM parameters to URLs can be tedious and prone to errors (like typos or forgetting the ? and &). A URL builder (also commonly called a UTM builder or Campaign URL builder) is a tool designed to simplify this process.

You input your base URL and the values for your desired UTM parameters, and the tool (like the one on this page!) automatically generates the fully tagged URL, correctly formatted and ready to use. This ensures consistency and saves significant time.

Google's Campaign URL Builder:

The most popular and widely used free tool is Google's own Campaign URL Builder. It's intuitive and directly aligned with Google Analytics terminology. Tools like WebSurfTools provide a similar, user-friendly interface integrated with additional features.

How to Create UTM Links: Step-by-Step & Best Practices

Using a URL builder makes creating UTM-tagged links straightforward. Let's use the builder on this page as an example:

  1. Enter Website URL: Paste the original URL of the landing page you want users to arrive at (e.g., https://www.yourwebsite.com/your-landing-page) into the "Website URL" field.
  2. Fill in UTM Parameters:
    • Campaign Source (utm_source): Enter the source (e.g., facebook).
    • Campaign Medium (utm_medium): Enter the medium (e.g., social).
    • Campaign Name (utm_campaign): Enter the campaign name (e.g., summer_promo_july).
    • Campaign Term (utm_term): (Optional) Enter paid keywords if applicable (e.g., beach_gear_sale).
    • Campaign Content (utm_content): (Optional) Enter specifics to differentiate links (e.g., video_ad_1).
  3. Generate URL: Click the "Generate UTM URL" button. The builder will automatically create the complete UTM link in the "Generated UTM URL" section.
  4. Copy and Use: Copy the generated URL. This is the link you should use in your Facebook ad, social post, email, QR code, etc.

Utm Link Example:

Using the inputs above, the generated URL might look like this:

https://www.yourwebsite.com/your-landing-page?utm_source=facebook&utm_medium=social&utm_campaign=summer_promo_july&utm_term=beach_gear_sale&utm_content=video_ad_1

This single link now carries all the necessary tracking information.

Best Practices for Creating UTM Links:

  • Consistency is Key: Decide on a clear naming convention for your sources, mediums, and campaigns *and stick to it*. Use lowercase letters, avoid spaces (use underscores _ or hyphens - instead), and be descriptive but concise. Inconsistent naming (facebook vs. Facebook vs. facebook.com) will fragment your data in Google Analytics.
  • Use a Template: Create a shared spreadsheet or document (a UTM link template) for your team to ensure everyone follows the same conventions. Document common sources, mediums, and campaign structures.
  • Be Specific: Make campaign names meaningful so you can easily understand them later. promo_1 is less helpful than easter_sale_bogo_2024.
  • Use Shorteners Wisely: You can use link shorteners like Bitly *after* you've generated the full UTM link if you need a shorter version for social media. The shortener redirects to the full UTM link, preserving the tracking.
  • Test Your Links: Always test a generated UTM link (using the method described below) before launching a campaign.
How to Track UTM URLs in Google Analytics (GA4)

Once users start clicking your UTM-tagged links, Google Analytics 4 (GA4) automatically captures this data. Here's how to find it:

  1. Log in to GA4: Access your Google Analytics 4 property.
  2. Navigate to Reports: Go to the "Reports" section in the left-hand navigation.
  3. Acquisition Reports: Under the "Life cycle" group, expand the "Acquisition" reports.
    • Traffic Acquisition: This is the primary report. It shows data grouped by session dimensions. Look for dimensions like "Session default channel group," "Session source / medium," "Session medium," "Session source," and especially "Session campaign".
    • User Acquisition: Shows data based on the first way a user was acquired. Similar dimensions are available here ("First user default channel group," "First user source / medium," "First user campaign" etc.).
  4. Customize Reports: You can often customize these reports by clicking the pencil icon (Edit comparisons/Customize report) or by adding secondary dimensions using the '+' icon next to the primary dimension dropdown. For example, in the Traffic Acquisition report, set the primary dimension to "Session campaign" and then add "Session source / medium" as a secondary dimension for detailed insights. You can also filter reports specifically for campaigns containing utm_term or utm_content data if needed.

What is the UTM code in Google Analytics? It's not a single "code" you look for, but rather the data collected from the utm_source, utm_medium, utm_campaign, utm_term, and utm_content parameters you added to your links. GA4 uses this data to populate the dimensions mentioned above.

UTMs and Specific Scenarios: FAQs Addressed

Is Google Analytics UTM free? / Are UTM codes free? / Is UTM software free?

Yes, using UTM parameters themselves is completely free. Google Analytics has a robust free tier suitable for most businesses. Google's Campaign URL Builder tool is free. Free UTM builders like the one on WebSurfTools are also available. While some advanced marketing suites might bundle UTM management features into paid plans, the core functionality of creating and tracking standard UTM links is free.

What is the UTM app? / Utm link app:

There isn't one official "UTM app." This might refer to mobile versions of URL builders, analytics apps (like the GA app) where you view UTM data, or third-party tools.

What is the difference between UTM and tracking?

UTM parameters are a specific *method* for tracking the source/medium/campaign of incoming traffic via URLs. "Tracking" is the broader concept of monitoring user behavior and website interactions, which can involve various methods (pixels, cookies, UTMs, server logs, etc.).

Can UTM run iOS? / Can I install UTM on Windows?

UTM codes are part of a URL, not software you install. They work on any device (iOS, Android, Windows, Mac, Linux) with a web browser that clicks the link.

What is my UTM code?

You don't *have* a single static UTM code. You *create* specific UTM-tagged URLs for each marketing link using parameters *you define*. Each link's "code" is the combination of parameters you add.

What is a UTM for QR code? / How do I add an UTM to a QR code? / How to track traffic from a QR code?

To track QR code scans:

  1. Generate the full UTM-tagged URL using a builder (e.g., https://yoursite.com?utm_source=flyer&utm_medium=offline&utm_campaign=event_promo).
  2. Use any standard QR code generator and input this *entire* UTM-tagged URL.
  3. The QR code now links to your site with tracking. Scans will appear in GA4 under the source/medium/campaign you defined (e.g., flyer / offline / event_promo).

How do I convert a QR code to a location link?

This usually means encoding a map URL (like a Google Maps link) into the QR code, not a UTM-tagged website link. You could use a UTM link in the QR code to point to a landing page *about* a location, but the QR itself only holds the URL you encode.

Is UTM and URL the same?

No. A URL is the base web address. A UTM link/UTM-tagged URL is that base URL with UTM parameters appended (e.g., base_url?utm_source=...).

When not to use UTM codes?

Crucially, DO NOT use UTM codes for internal links on your own website. Linking from one page of your site to another using UTMs will overwrite the original visitor source data in GA4, making it look like the traffic came from your own 'internal campaign' instead of the actual external source (e.g., Google search, Facebook). This breaks your acquisition tracking. Use standard relative or absolute links for internal navigation.

How accurate is UTM tracking?

It's generally very accurate for session attribution based on the click. Potential minor discrepancies can arise from user actions (copying clean URLs), privacy settings, long delays between click and conversion, or implementation errors (typos, inconsistency). However, it remains a highly reliable standard for campaign traffic source tracking.

Is UTM only for Google?

No. While closely associated with Google Analytics, UTM parameters are widely recognized. Many other analytics platforms (Adobe, Matomo) and marketing tools (CRMs, email platforms) can capture and interpret data from UTM parameters.

What is the UTM source of an email?

You define it! Common choices include newsletter, email_promo, the name of your email service provider (mailchimp, klaviyo), or transactional_email. Choose a consistent convention. The medium would typically be email.

What is an UTM link?

A URL with UTM parameters added for tracking. Synonymous with "UTM-tagged URL".

Is bitly an UTM link? / Is bitly a UTM?

No. Bitly is a link shortening service. You can shorten a *full* UTM-tagged URL using Bitly. When clicked, Bitly redirects to the long URL, preserving the UTM parameters for tracking. Bitly itself isn't a UTM parameter.

How to test an UTM link?

  1. Copy the full UTM-tagged link you generated.
  2. Open an incognito/private browser window (to avoid session conflicts).
  3. Paste and visit the link.
  4. Go to your Google Analytics > Reports > Realtime report.
  5. Within a minute or two, you should see your visit appear, often on the "Traffic source" card or by viewing event data filtered by campaign/source/medium. Check if the parameters match what you set.

How do I add an UTM?

You add UTM *parameters* to a base URL, typically using a URL builder tool.

Can you add a UTM code to a PDF?

Yes. Any hyperlink *within* a PDF that points to a web page can be a UTM-tagged URL. Clicks on these links from the PDF will be tracked in GA4.

How do I edit UTM?

You can't edit a UTM link once it's "out there." If you find an error, you must:

  1. Generate a *new*, corrected UTM link.
  2. Replace the old link with the new one wherever it was published (ads, posts, emails).

Data from clicks on the old, incorrect link will remain in your analytics under the incorrect parameters.

How to create tracking links?

Creating UTM-tagged URLs using a URL builder *is* the standard way to create tracking links for campaign source/medium/campaign attribution.

Why is UTM called UTM?

It stands for Urchin Tracking Module, after Urchin Software Corp., whose technology formed the basis of Google Analytics.

Can you create your own UTM parameters?

While GA4 allows custom dimensions and parameters via event tagging, standard campaign attribution relies on the five recognized parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content). Creating custom `utm_yourparameter` won't automatically populate standard GA4 campaign reports. Stick to the five standards for campaign tracking.

Are UTMs still used?

Yes, absolutely. They are a fundamental tool for digital marketing campaign tracking and ROI analysis.

UTMs and Google Ads

Google Ads has specific ways to handle tracking, integrating closely with Google Analytics:

  • Auto-tagging (Recommended): Found in Google Ads account settings (Account Settings > Auto-tagging > Check "Tag the URL that people click through from my ad"). When enabled, Google Ads automatically appends a gclid (Google Click Identifier) parameter to your ad URLs. When your Google Ads and Google Analytics accounts are linked, GA4 uses the gclid to automatically import detailed campaign data (campaign, ad group, keyword, etc.) without manual UTM tagging. This is the easiest and most comprehensive method for Google Ads traffic.
  • Manual Tagging: You *can* manually add UTM parameters to the Final URL field in your Google Ads. This might be used if not linking to GA4 or for specific tracking needs outside GA. However, it's more labor-intensive and prone to error than auto-tagging. Important: Do not use both auto-tagging and manual UTM tagging for Google Ads simultaneously. This will cause data conflicts and inaccuracies. Choose one method (auto-tagging is preferred).
  • ValueTrack Parameters: Google Ads offers dynamic parameters like {keyword}, {campaignid}, {adgroupid} that you can add to your tracking templates or final URL suffixes. These dynamically insert specific ad details into the URL when clicked. They can be used alongside auto-tagging (for passing data to third-party tools/CRMs) or manual tagging, but represent a more advanced setup.

How to make a URL for Google Ads? / How do I add URL parameters to Google Ads?

If using auto-tagging, you generally don't need to add UTMs manually. If you choose manual tagging or need ValueTrack parameters, you add them in the 'Final URL', 'Tracking template', or 'Final URL suffix' fields within your Google Ads ad/keyword/ad group settings. Use a URL builder to create the base UTM parameters if needed.

Conclusion: Harnessing the Power of UTM Tracking

UTM codes are not just technical jargon; they are the key to unlocking clear, actionable insights into your marketing performance. By consistently using a URL builder (like this one!) to tag your links across email, social media, ads, QR codes, and even offline materials like PDFs, you gain visibility into what works and what doesn't.

Remember the core principles:

  1. Understand the 5 Parameters: Know what utm_source, utm_medium, utm_campaign, utm_term, and utm_content represent.
  2. Use a URL Builder: Tools like Google's or WebSurfTools' ensure accuracy and consistency.
  3. Be Consistent: Establish and follow strict naming conventions (lowercase, underscores/hyphens, documented).
  4. Track in Analytics: Regularly review acquisition reports in Google Analytics (GA4) to analyze performance by source, medium, and campaign.
  5. Avoid Internal Linking: Never use UTMs for links within your own website.
  6. Leverage Auto-tagging for Google Ads: It's generally the best practice for tracking Google Ads traffic in GA4.

By mastering UTM tracking, you move beyond guesswork and start making data-driven decisions that optimize your marketing spend, improve campaign effectiveness, and ultimately drive better results for your business. Start implementing them today and gain control over your marketing analytics.