Skip to Content
TrackingCampaigns (UTM)

Campaign Tracking

Track the effectiveness of your marketing campaigns using campaign URL parameters.

How Campaign Tracking Works

Campaign parameters are tags added to the URLs you share in ads, emails, and posts. When someone clicks a tagged link, Ghost Metrics captures those tags and attributes the visit — and any later conversions — to your campaign.

This allows you to answer questions like:

  • Which email drove the most traffic?
  • Are Facebook ads generating leads?
  • Which version of our Google ad performs better?

Supported Parameters

Ghost Metrics’ native campaign parameters use the mtm_ prefix. Standard utm_ parameters are also recognized automatically, so links tagged for other tools keep working.

DimensionNative parameterUTM equivalentRequired
Campaign namemtm_campaignutm_campaignYes — without it, no campaign is recorded
Keywordmtm_kwdutm_termNo
Sourcemtm_sourceutm_sourceNo
Mediummtm_mediumutm_mediumNo
Contentmtm_contentutm_contentNo
Campaign IDmtm_cidutm_idNo
Groupmtm_groupNo
Placementmtm_placementNo

Only the campaign name is required — a URL with just mtm_campaign (or utm_campaign) already registers the visit as campaign traffic. Add the other dimensions for richer breakdowns.

Building Campaign URLs

Basic Structure

Start with your destination URL and add campaign parameters:

https://yoursite.com/landing-page?mtm_campaign=CAMPAIGN&mtm_source=SOURCE&mtm_medium=MEDIUM

Example: Email Newsletter

https://yoursite.com/blog/heart-health-tips?mtm_campaign=february_2026&mtm_source=newsletter&mtm_medium=email&mtm_content=featured_article

Example: Google Ads

https://yoursite.com/services/cardiology?mtm_campaign=cardiology_services&mtm_source=google&mtm_medium=cpc&mtm_kwd=heart_doctor_near_me

Example: Facebook Ad

https://yoursite.com/schedule-appointment?mtm_campaign=new_patient_acquisition&mtm_source=facebook&mtm_medium=paid_social&mtm_content=video_ad_v2

Example: Print, Billboard, or QR Code

https://yoursite.com/welcome?mtm_campaign=highway_101_jan2026&mtm_source=billboard&mtm_medium=print

URL Builder Tools

Manually building URLs is error-prone. Create a spreadsheet template your team fills in (destination, campaign, source, medium → generated URL) to keep naming consistent. Generic UTM builder tools also work, since utm_ parameters are fully supported.

Viewing Campaign Data

Find your campaign data in Acquisition → Campaigns.

The Campaigns page shows a table for each dimension you tag: campaign names, sources, mediums, keywords, content, and a combined source ⋅ medium view. Campaign names can be expanded to see their keywords, and every table shows visits and attributed goal conversions.

Attribution

Conversions are credited to the last non-direct referrer or campaign, remembered for up to 6 months — so a visitor who clicks your ad today and converts on a direct visit next week still counts for the campaign. Note that arriving with new campaign parameters starts a new visit, which keeps campaign comparisons clean.

Naming Conventions

Consistent naming is critical. Campaign values are stored lowercase by default (Facebook and facebook are the same campaign), but consistent conventions still keep reports readable:

Use lowercase for everything:

  • mtm_source=facebook
  • mtm_source=Facebook

Use underscores instead of spaces:

  • mtm_campaign=spring_promo_2026
  • mtm_campaign=spring promo 2026

Be specific but concise:

  • mtm_campaign=cardiology_awareness_q1
  • mtm_campaign=campaign1

Use consistent source names:

  • ✅ Always use google for Google Ads
  • ❌ Sometimes google, sometimes adwords, sometimes google_ads

Note that the parameter keys themselves must be lowercase: mtm_campaign works, MTM_CAMPAIGN doesn’t.

Suggested Source/Medium Combinations

ChannelSourceMedium
Google Adsgooglecpc
Facebook Adsfacebookpaid_social
Instagram Adsinstagrampaid_social
LinkedIn Adslinkedinpaid_social
Email Newsletternewsletteremail
Organic Socialfacebook, instagram, etc.social
Partner Referralpartner_namereferral
Print Adpublication_nameprint
Billboardbillboardprint
QR Codeqr_codeprint

Campaign Tracking Tips

Only tag external links pointing to your site. Tagging internal links overwrites the visitor’s original traffic source, corrupts your data, and splits one visit into two.

<!-- DON'T do this on internal navigation --> <a href="/services?mtm_campaign=homepage_banner">Our Services</a>

Shorten URLs When Needed

Campaign parameters make URLs long. For print, social, and other public-facing links, use a URL shortener or a QR code that encodes the full tagged URL.

Track All Paid Campaigns

Every paid click should carry campaign parameters. This includes:

  • Search ads (Google, Bing)
  • Social ads (Facebook, Instagram, LinkedIn)
  • Display ads
  • Sponsored content

Document Your Campaigns

Maintain a campaign tracking spreadsheet with:

  • Campaign name
  • Full URL with parameters
  • Launch date
  • Owner
  • Notes

This prevents duplicate or inconsistent naming across your team.

A Note on Ad Platform Auto-Tagging

Google Ads auto-tagging (gclid) identifies the click for conversion export, but it does not populate your campaign reports — an auto-tagged-only click shows up as a Google search visit, not a campaign. Keep auto-tagging on for Advertising Conversion Export, and add mtm_ parameters (Google Ads: use tracking templates or final URL suffixes) so campaign reports get the campaign name, source, and medium too.

Next Steps

Last updated on