Campaign Tracking (UTM Parameters)
Track the effectiveness of your marketing campaigns using UTM parameters.
What Are UTM Parameters?
UTM (Urchin Tracking Module) parameters are tags added to URLs that identify where traffic comes from. When someone clicks a link with UTM parameters, Ghost Metrics captures that information and attributes the visit 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
| Parameter | Required | Description | Example Values |
|---|---|---|---|
utm_source | Yes | Traffic source | google, facebook, newsletter, billboard |
utm_medium | Yes | Marketing medium | cpc, email, social, print, referral |
utm_campaign | Yes | Campaign name | spring_promo, brand_awareness, service_line_cardiology |
utm_content | No | Ad content or variant | banner_a, text_link, blue_button |
utm_term | No | Paid search keywords | cardiology_near_me, best_hospital |
Building Campaign URLs
Basic Structure
Start with your destination URL and add UTM parameters:
https://yoursite.com/landing-page?utm_source=SOURCE&utm_medium=MEDIUM&utm_campaign=CAMPAIGNExample: Email Newsletter
https://yoursite.com/blog/heart-health-tips?utm_source=newsletter&utm_medium=email&utm_campaign=february_2025&utm_content=featured_articleExample: Google Ads
https://yoursite.com/services/cardiology?utm_source=google&utm_medium=cpc&utm_campaign=cardiology_services&utm_term=heart_doctor_near_meExample: Facebook Ad
https://yoursite.com/schedule-appointment?utm_source=facebook&utm_medium=paid_social&utm_campaign=new_patient_acquisition&utm_content=video_ad_v2Example: Print or Billboard
https://yoursite.com/welcome?utm_source=billboard&utm_medium=print&utm_campaign=highway_101_jan2025Example: QR Code
https://yoursite.com/scan?utm_source=print&utm_medium=qr_code&utm_campaign=patient_brochure_2025URL Builder Tools
Manually building URLs is error-prone. Use a URL builder tool to ensure consistency:
- Google Campaign URL Builder — ga-dev-tools.google/campaign-url-builder
- UTM.io — utm.io
Or create a spreadsheet template your team can use to maintain consistency.
Viewing Campaign Data
Find your campaign data in Acquisition → Campaigns.
Campaign Reports Show:
- Campaign names — All campaigns with traffic data
- Sources — Which sources drove traffic within each campaign
- Mediums — Traffic breakdown by medium
- Conversions — Goal completions attributed to each campaign
You can drill down from Campaign → Source → Medium to see detailed performance.
Naming Conventions
Consistent naming is critical. UTM parameters are case-sensitive, so Facebook and facebook are tracked separately.
Recommended Conventions
Use lowercase for everything:
- ✅
utm_source=facebook - ❌
utm_source=Facebook
Use underscores instead of spaces:
- ✅
utm_campaign=spring_promo_2025 - ❌
utm_campaign=spring promo 2025
Be specific but concise:
- ✅
utm_campaign=cardiology_awareness_q1 - ❌
utm_campaign=campaign1
Use consistent source names:
- ✅ Always use
googlefor Google Ads - ❌ Sometimes
google, sometimesadwords, sometimesgoogle_ads
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 | |
| Promotional Email | promo_email | |
| Organic Social | facebook, instagram, etc. | social |
| Partner Referral | partner_name | referral |
| Print Ad | publication_name | |
| Billboard | billboard | |
| QR Code | qr_code | |
| Direct Mail | direct_mail |
Campaign Tracking Tips
Don’t Use UTM Parameters for Internal Links
Only use UTM parameters on external links pointing to your site. Using them on internal links will overwrite the original traffic source and corrupt your data.
Example of what NOT to do:
<!-- DON'T do this on internal navigation -->
<a href="/services?utm_source=homepage&utm_medium=internal">Our Services</a>Shorten URLs When Needed
UTM parameters make URLs long and ugly. For print, social, and other public-facing links, use a URL shortener:
- Bitly
- Short URLs through your own domain (recommended)
- QR codes that encode the full URL
Track All Paid Campaigns
Every paid click should have UTM 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.
Auto-Tagging vs Manual UTM
Some ad platforms (like Google Ads) offer auto-tagging features. Ghost Metrics supports both:
- Auto-tagging: Works automatically but may provide less detailed data
- Manual UTM: More control over naming and categorization
For most healthcare organizations, manual UTM parameters provide cleaner, more consistent reporting.
Next Steps
- View acquisition reports — Analyze traffic sources and campaign performance
- Set up goals — Measure campaign conversions
- Build custom reports — Create campaign performance dashboards