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.
| Dimension | Native parameter | UTM equivalent | Required |
|---|---|---|---|
| Campaign name | mtm_campaign | utm_campaign | Yes — without it, no campaign is recorded |
| Keyword | mtm_kwd | utm_term | No |
| Source | mtm_source | utm_source | No |
| Medium | mtm_medium | utm_medium | No |
| Content | mtm_content | utm_content | No |
| Campaign ID | mtm_cid | utm_id | No |
| Group | mtm_group | — | No |
| Placement | mtm_placement | — | No |
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=MEDIUMExample: Email Newsletter
https://yoursite.com/blog/heart-health-tips?mtm_campaign=february_2026&mtm_source=newsletter&mtm_medium=email&mtm_content=featured_articleExample: Google Ads
https://yoursite.com/services/cardiology?mtm_campaign=cardiology_services&mtm_source=google&mtm_medium=cpc&mtm_kwd=heart_doctor_near_meExample: Facebook Ad
https://yoursite.com/schedule-appointment?mtm_campaign=new_patient_acquisition&mtm_source=facebook&mtm_medium=paid_social&mtm_content=video_ad_v2Example: Print, Billboard, or QR Code
https://yoursite.com/welcome?mtm_campaign=highway_101_jan2026&mtm_source=billboard&mtm_medium=printURL 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
googlefor Google Ads - ❌ Sometimes
google, sometimesadwords, sometimesgoogle_ads
Note that the parameter keys themselves must be lowercase: mtm_campaign works, MTM_CAMPAIGN doesn’t.
Suggested Source/Medium Combinations
| Channel | Source | Medium |
|---|---|---|
| Google Ads | cpc | |
| Facebook Ads | paid_social | |
| Instagram Ads | paid_social | |
| LinkedIn Ads | paid_social | |
| Email Newsletter | newsletter | |
| Organic Social | facebook, instagram, etc. | social |
| Partner Referral | partner_name | referral |
| Print Ad | publication_name | |
| Billboard | billboard | |
| QR Code | qr_code |
Campaign Tracking Tips
Don’t Use Campaign Parameters on Internal Links
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
- View acquisition reports — Analyze traffic sources and campaign performance
- Set up goals — Measure campaign conversions
- Multi Channel Attribution — Credit campaigns across the whole journey