UTM Campaign Tracking

Track marketing campaigns with UTM parameters. Narrowbeam automatically captures and reports on UTM tags, making it easy to measure campaign effectiveness.

What are UTM Parameters?

UTM (Urchin Tracking Module) parameters are tags added to URLs to track marketing campaigns. They help you identify where your traffic comes from and measure the success of specific campaigns.

Example Campaign URL

https://yoursite.com/products?utm_source=newsletter&utm_medium=email&utm_campaign=spring-sale

Supported UTM Parameters

Narrowbeam automatically captures all five standard UTM parameters:

ParameterRequiredDescriptionExample
utm_sourceYesIdentifies the source of trafficgoogle, newsletter, facebook
utm_mediumYesIdentifies the marketing mediumemail, cpc, social, banner
utm_campaignYesIdentifies the specific campaignspring-sale, product-launch
utm_termOptionalIdentifies paid search keywordsrunning-shoes, analytics-tool
utm_contentOptionalDifferentiates similar content/linksheader-cta, sidebar-link

How It Works

When a user visits your site with UTM parameters in the URL, Narrowbeam:

  1. Extracts all UTM parameters from the URL query string
  2. Includes them in the page view event and all subsequent actions
  3. Makes them available for filtering and analysis in your dashboard
  4. Preserves them throughout the user's session on your site
No configuration needed! UTM tracking works automatically as soon as you install the Narrowbeam script.

Building Campaign URLs

Create URLs with UTM parameters by adding them to your links:

// Base URL
https://yoursite.com/landing-page

// Add UTM parameters with ?
https://yoursite.com/landing-page?utm_source=twitter&utm_medium=social&utm_campaign=product-launch

// Add more parameters with &
https://yoursite.com/landing-page?utm_source=twitter&utm_medium=social&utm_campaign=product-launch&utm_content=video-ad

Common Use Cases

Email Campaigns

utm_source=newsletter
utm_medium=email
utm_campaign=weekly-digest

Social Media Posts

utm_source=facebook
utm_medium=social
utm_campaign=summer-promo
utm_content=carousel-ad

Google Ads

utm_source=google
utm_medium=cpc
utm_campaign=brand-keywords
utm_term=analytics-software

Partner Links

utm_source=partner-blog
utm_medium=referral
utm_campaign=guest-post

Analyzing Campaign Data

Once you have UTM-tagged traffic, you can analyze it in your Narrowbeam dashboard:

Create Campaign Widgets

Use the widget builder to create reports grouped by UTM parameters:

  • Group by utm_source: See which platforms drive the most traffic
  • Group by utm_campaign: Compare campaign performance
  • Group by utm_medium: Understand which channels work best
  • Multi-dimensional: Combine multiple UTM parameters (e.g., source + medium)

Filter by Campaign

Apply filters to focus on specific campaigns:

// Dashboard filter example:
utm_campaign equals "spring-sale"
AND utm_medium equals "email"

See Using Filters for more details on filtering.

Best Practices

Campaign Naming Conventions

  • Be consistent: Use lowercase and hyphens (e.g., spring-sale, not Spring_Sale)
  • Be descriptive: Use names that clearly identify the campaign
  • Document your structure: Keep a list of standard source/medium/campaign values
  • Use utm_content wisely: Perfect for A/B testing different ad creatives
  • Keep it simple: Don't overcomplicate your naming scheme

Avoid These Common Mistakes

  • Mixing capitalization (Facebook vs facebook vs FACEBOOK)
  • Using spaces instead of hyphens or underscores
  • Creating too many one-off campaign names that are hard to compare
  • Not using the required parameters (source, medium, campaign)

Standard Medium Values

While you can use any values, these standard medium values are widely recognized:

MediumUse For
organicOrganic search traffic
cpcCost-per-click paid ads (Google Ads, etc.)
emailEmail campaigns
socialSocial media posts (organic)
paid-socialPaid social media ads
referralReferral links from other sites
displayDisplay advertising
affiliateAffiliate links

Testing Your UTM Tags

Before launching a campaign, test your UTM-tagged URLs:

  1. Click your UTM-tagged link
  2. Visit your Narrowbeam dashboard
  3. Check that the UTM parameters appear in your data
  4. Create a filter to verify the values are correct
UTM parameters are case-sensitive. utm_source=Facebook and utm_source=facebook will be tracked as different sources!

Related Documentation