New:Thread Pilot—AI follow-ups for Gmail.
Learn more
Free Campaign Tracker

UTM Campaign Builder

Create professional UTM tracking links for your marketing campaigns. Track performance in Google Analytics with proper parameter encoding, campaign templates, and batch generation capabilities.

Generate UTM tracking links with proper parameter encoding and validation.
Campaign templates for email, social media, Google Ads, and display ads.
QR code generation and URL shortening for UTM links.
Batch UTM creation via CSV upload and export to Google Sheets.

Why Use UTM Parameters?

  • • Track exactly where your website traffic comes from
  • • Measure ROI for different marketing channels
  • • Compare campaign performance in Google Analytics
  • • Optimize marketing spend based on data-driven insights

Pro tip: Companies that use UTM tracking see up to 30% improvement in marketing attribution accuracy and campaign optimization.

Website URL

UTM Parameters

Referrer (e.g., google, newsletter, billboard)

Marketing medium (e.g., cpc, email, social)

Product, promo code, or slogan (e.g., spring_sale)

Identify paid search keywords

Differentiate ads or links (e.g., logolink, textlink)

Generated URL

Fill required fields to generate UTM link

Required: URL, Source, Medium, Campaign

What Are UTM Parameters?

UTM (Urchin Tracking Module) parameters are snippets of text added to the end of a URL to track the effectiveness of online marketing campaigns. When someone clicks a UTM-tagged link, the parameters are sent to Google Analytics, providing detailed information about where the traffic came from.

utm_source

Required. Identifies the source of traffic.

Examples: google, facebook, newsletter, linkedin

utm_medium

Required. Identifies the marketing channel.

Examples: cpc, email, social, banner, referral

utm_campaign

Required. Identifies the specific campaign.

Examples: summer_sale, product_launch, webinar_2024

utm_term

Optional. Identifies paid search keywords.

Examples: running_shoes, best_crm_software

utm_content

Optional. Differentiates similar content or links.

Examples: header_cta, sidebar_link, blue_button

Example URL

example.com/?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale

How to Use UTM Codes

1

Enter Your Destination URL

Start with the page where you want to send traffic. This should be a valid URL with http:// or https:// protocol.

2

Fill Required UTM Parameters

Complete the three required fields: source, medium, and campaign. Use auto-suggestions or campaign templates for common scenarios.

3

Add Optional Parameters

Optionally add utm_term for paid keywords or utm_content to differentiate ad variations and link positions.

4

Copy Your Tracking URL

The generated URL appears with proper encoding. Copy it to clipboard or use the URL shortener for a cleaner link.

5

Generate QR Code or Batch Links

Create QR codes for offline materials or upload a CSV to generate multiple UTM links at once for large campaigns.

View results in Google Analytics

After publishing your links, check Reports → Acquisition → Traffic acquisition in Google Analytics 4 to see campaign performance.

UTM Tracking Use Cases

Email Marketing Campaigns

Track newsletter performance by tagging links with utm_source=newsletter, utm_medium=email to measure click-through rates and conversions in Google Analytics.

Social Media Advertising

Differentiate traffic from Facebook, Twitter, LinkedIn with unique UTM parameters to understand which platforms drive the most engagement.

Google Ads & PPC Campaigns

Track paid search campaigns with utm_source=google, utm_medium=cpc, and utm_term for keywords to measure ROI and optimize ad spend.

Display & Banner Ads

Monitor banner ad performance across different websites using utm_content to track which creative variations perform best.

Influencer Marketing

Track traffic from influencer partnerships by creating unique UTM links for each influencer to measure their impact on conversions.

Offline Marketing

Generate QR codes with UTM parameters for print materials, billboards, and event signage to track offline-to-online attribution.

UTM Best Practices

Use Consistent Naming Conventions

Always use lowercase and replace spaces with underscores or hyphens (e.g., 'summer_sale' not 'Summer Sale'). UTM parameters are case-sensitive in Google Analytics.

Source vs Medium: Know the Difference

Source identifies where traffic comes from (google, facebook, newsletter). Medium identifies the marketing channel type (cpc, email, social, referral).

Make Campaign Names Descriptive

Use clear campaign names that describe the initiative (e.g., 'q1_2024_sale' or 'product_launch_webinar') to easily identify campaigns in analytics reports.

Use Content for A/B Testing

The utm_content parameter is perfect for differentiating ad variations, link positions, or creative versions (e.g., 'blue_cta' vs 'red_cta').

Keep URLs Clean and Short

Use URL shorteners for long UTM links in social media posts or printed materials. Shorter links look cleaner and are easier to scan with QR codes.

Document Your UTM Strategy

Maintain a spreadsheet of all UTM parameters and naming conventions your team uses to ensure consistency across campaigns and team members.

UTM Naming Conventions

✓ Good Examples

  • utm_source=facebook
  • utm_medium=social
  • utm_campaign=summer_sale_2024
  • utm_content=header_cta
  • utm_term=running_shoes

✗ Bad Examples

  • utm_source=Facebook Page (spaces, capitals)
  • utm_medium=Social Media (spaces)
  • utm_campaign=SALE! (capitals, symbols)
  • utm_content=Link #1 (special chars)
  • utm_term=Best Running Shoes (spaces)

Naming Convention Rules:

  • • Always use lowercase letters
  • • Replace spaces with underscores (_) or hyphens (-)
  • • Avoid special characters like !, @, #, $, %, etc.
  • • Keep names descriptive but concise
  • • Be consistent across your entire team and organization

Google Analytics Campaign Tracking

Once you've created your UTM links and deployed them in your campaigns, Google Analytics 4 will automatically track and organize your campaign data.

How to View Campaign Data in GA4

  1. 1. Access Reports: In Google Analytics 4, navigate to Reports → Acquisition → Traffic acquisition
  2. 2. Add Dimensions: Click the "+" icon to add dimensions like "Session campaign", "Session source", "Session medium"
  3. 3. Create Custom Reports: Use the "Explore" feature to create detailed reports combining multiple UTM dimensions
  4. 4. Analyze Performance: Compare campaigns by sessions, conversions, revenue, and other key metrics
  5. 5. Set Up Segments: Create user segments based on specific UTM combinations to analyze behavior patterns

Key Metrics to Track

  • • Sessions and users by campaign
  • • Conversion rate by source/medium
  • • Revenue attribution by campaign
  • • Engagement rate per traffic source
  • • Cost per acquisition (when integrated with ad platforms)

Common GA4 Reports

  • • Traffic acquisition overview
  • • Campaign performance comparison
  • • Source/medium breakdown
  • • Landing page by campaign
  • • E-commerce by campaign (for online stores)

Frequently Asked Questions

What are UTM parameters?

UTM parameters are tags added to URLs to track the effectiveness of marketing campaigns. They help Google Analytics identify where your traffic comes from. The five UTM parameters are: utm_source (traffic source), utm_medium (marketing channel), utm_campaign (campaign name), utm_term (paid keywords), and utm_content (ad variation).

What's the difference between source and medium?

Source (utm_source) identifies the specific origin of traffic like 'google', 'facebook', or 'newsletter'. Medium (utm_medium) categorizes the general channel type like 'cpc' (paid search), 'email', 'social', or 'referral'. For example: source=facebook, medium=social or source=google, medium=cpc.

Are UTM codes case-sensitive?

Yes! UTM parameters are case-sensitive in Google Analytics. 'Summer_Sale' and 'summer_sale' will appear as separate campaigns. Best practice is to always use lowercase letters and replace spaces with underscores or hyphens for consistency.

Which UTM parameters are required?

Only three UTM parameters are required: utm_source, utm_medium, and utm_campaign. The utm_term and utm_content parameters are optional. However, using all relevant parameters provides more detailed tracking data for campaign analysis.

Can I edit UTM parameters after creating a link?

No, UTM parameters are part of the URL string and cannot be changed retroactively. Once you've shared a UTM link, the tracking data will be associated with those specific parameters. Always double-check your UTM links before distribution.

How do I view UTM data in Google Analytics?

In Google Analytics 4, go to Reports → Acquisition → Traffic acquisition. You can see your UTM parameters under dimensions like 'Session source', 'Session medium', and 'Session campaign'. Create custom reports to analyze specific UTM combinations.

Should I use UTM parameters for internal links?

No, avoid using UTM parameters on internal links within your own website. UTM codes start a new session and can override the original source attribution, resulting in inaccurate analytics data. Only use UTM parameters for external traffic sources.

Can I track offline campaigns with UTM codes?

Yes! Create a short, memorable URL with UTM parameters or generate a QR code. Use parameters like utm_source=print, utm_medium=billboard, utm_campaign=q1_outdoor to track offline campaigns when users scan or type the URL.

Social Media Campaign UTM Template

Use these standardized templates for consistent tracking across social media platforms:

Facebook Campaign

Source: facebook

Medium: social

Campaign: your_campaign_name

Content: post_type (organic/paid)

LinkedIn Campaign

Source: linkedin

Medium: social

Campaign: your_campaign_name

Content: sponsored/organic

Twitter/X Campaign

Source: twitter

Medium: social

Campaign: your_campaign_name

Content: tweet_id or thread

Email Newsletter

Source: newsletter

Medium: email

Campaign: newsletter_date

Content: cta_location or article_name

Contact

Tell us what you're building and we'll get in touch fast

Ship a proof-of-concept, integrate Metro2, or hand off the workflow entirely—we respond within one business day and loop in the right Switch Labs partner for your stack.

Response Time
< 24 hours
Delivery Options
Product | Services

By submitting you agree to let Switch Labs contact you about relevant products and services.