Healthcare UTM builder.
Pick a channel, choose the service line and objective, and the campaign name follows one convention every time.
Free · runs in your browser · nothing uploaded
Five tags, one link
What UTM tags actually do.
UTM tags are short labels added to the end of a link. When someone clicks, your analytics reads the labels and records exactly where the visit came from.
No extra code is needed for GA4 to read them. The five standard tags answer five questions about every visit, and GA4 uses the source and medium to decide which channel the visit belongs to.
The five tags
| Tag | Answers | Example |
|---|---|---|
utm_source | Where did the click come from? | google, facebook, newsletter |
utm_medium | What type of traffic is it? | cpc, paid_social, email |
utm_campaign | Which campaign was it? | spring-sale_202611 |
utm_content | Which ad or link was clicked? | hero-banner, video-a |
utm_term | Which keyword or audience? | running shoes |
Four reasons to tag every link
Why it matters for reporting.
01
Credit goes to the right campaign.
Without tags, a click from an email or WhatsApp message often shows up as Direct, and the campaign that earned it gets no credit.
02
Channels are compared fairly.
One naming convention across every channel means paid, owned and partner traffic line up in the same report.
03
Leads and revenue connect to marketing.
Stored with each lead, UTM tags show which campaign produced customers, not just clicks.
04
Budget follows results.
Clean data shows which ads and messages to scale and which to stop.
From link to report
Tag the link. Then trust the report.
Use the builder
Step 01
Paste the landing page, such as the service page or the booking page.
Step 02
Choose the channel.
Source and medium fill in with values GA4 recognises, and you can still edit them.
Step 03
Build the campaign name from the service line, objective, audience, language and date, then add the format and CTA as content.
Step 04
Check the GA4 channel and warnings, then copy the link or download a QR code for print.
The naming convention
Pattern{service}_{objective}_{date}
Examplebrand_appointments_202611
Parts are joined with underscores and words inside a part use hyphens, so you can split the name back into columns in a spreadsheet or Looker Studio. Optional parts are skipped when empty. You can switch the separator under Formatting rules.
Source, medium and GA4 channel
Every channel, mapped to GA4.
The source and medium each preset uses, and the GA4 default channel it reports under. Unassigned means GA4 has no default rule for it; add a custom channel group rule.
| Channel | utm_source | utm_medium | GA4 channel |
|---|---|---|---|
| Google Ads: Search | google | cpc | Paid Search |
| Google Ads: Performance Max | google | cpc | Paid Search |
| Microsoft Advertising | bing | cpc | Paid Search |
| Facebook ads | facebook | paid_social | Paid Social |
| Instagram ads | instagram | paid_social | Paid Social |
| Snapchat ads | snapchat | paid_social | Paid Social |
| TikTok ads | tiktok | paid_social | Paid Social |
| LinkedIn ads | linkedin | paid_social | Paid Social |
| Google Ads: Display | google | display | Display |
| YouTube ads | youtube | cpv | Paid Video |
| Patient newsletter | newsletter | email | |
| Physician referral email | physician-newsletter | email | |
| Appointment or recall SMS | sms | sms | SMS |
| WhatsApp message or broadcast | whatsapp | social | Organic Social |
| Patient app push | patient-app | push | Mobile Push Notifications |
| Facebook post | facebook | social | Organic Social |
| Instagram bio or story | instagram | social | Organic Social |
| LinkedIn post | linkedin | social | Organic Social |
| YouTube description | youtube | video | Organic Video |
| Google Business Profile | google | organic | Organic Search |
| Doctor booking platform (e.g. Okadoc) | okadoc | referral | Referral |
| Insurance partner portal | insurer-portal | referral | Referral |
| Corporate wellness partner | corporate-partner | referral | Referral |
| Clinic poster or brochure QR | print | qr | Unassigned |
| Health camp or event QR | health-event | qr | Unassigned |
| Radio spot vanity URL | radio | audio | Audio |
For healthcare marketers
Tips that keep the data clean.
01
Put the service line near the front of the campaign name.
It's the dimension leadership asks about most, and it lets you roll up cardiology spend and leads across every channel.
02
Tag Arabic and English versions separately with the language part.
Bilingual markets almost always show different cost per booking by language.
03
Tag your Google Business Profile website link.
Map and local-pack visits are often a large share of appointment requests and otherwise disappear into Organic Search.
04
For booking platforms such as Okadoc, tag the website link on your profile so referrals are counted as their own source, then compare them with your own booking funnel.
05
Capture UTMs into hidden fields on appointment forms so the source reaches your call centre or CRM, not just GA4.
Store UTMs with every lead
Get UTM data into your CRM.
GA4 counts visits. Your CRM or database records who became a lead or customer. Unless the UTM tags are saved with each record, the two never meet, and you can't tell which campaign produced which sale. Share this brief with your website developer.
What to ask for
Step 01
Read the UTM tags and ad click IDs from the URL on every page load.
Step 02
Save them in a first-party cookie for 90 days.
Keep a first-touch copy that is never overwritten, and a last-touch copy that updates on each new tagged visit.
Step 03
Ignore visits without UTM tags, so an untagged return visit never wipes the saved values.
Step 04
Add hidden fields for every value to every form: contact, booking, sign-up and checkout.
Step 05
Fill the hidden fields from the cookie when the form is sent.
Step 06
Store each value in its own column on the lead or order record, and map the same fields into the CRM.
Step 07
Test it: open a tagged link, send a form, and check the record shows the right values.
Fields to add to each lead or order
| Field | What it holds |
|---|---|
first_utm_source … first_utm_term | First tagged visit. Set once, never overwritten. |
last_utm_source … last_utm_term | Most recent tagged visit before the form was sent. |
gclid, fbclid, msclkid | Ad click IDs, for offline conversion uploads. |
landing_page | Full URL of the first page seen. |
referrer | The site the visitor came from. |
first_touch_at, last_touch_at | Timestamps of both visits. |
A starting point for the developer
const KEYS=['utm_source','utm_medium','utm_campaign','utm_content','utm_term','gclid','fbclid','msclkid'];
const q=new URLSearchParams(location.search);
const hit={};KEYS.forEach(k=>{if(q.get(k))hit[k]=q.get(k);});
if(Object.keys(hit).length){
hit.landing_page=location.href;hit.referrer=document.referrer;hit.at=new Date().toISOString();
const save=(n,v)=>document.cookie=n+'='+encodeURIComponent(JSON.stringify(v))+';path=/;max-age=7776000;SameSite=Lax';
if(!document.cookie.includes('utm_first='))save('utm_first',hit);
save('utm_last',hit);
}Request: store UTM data with every lead and order
Why: GA4 shows visits. Our database shows leads and sales. Saving the UTM tags with each record tells us which campaign produced each lead and how much revenue it brought in.
Steps:
1. Read the UTM tags and ad click IDs from the URL on every page load.
2. Save them in a first-party cookie for 90 days. Keep a first-touch copy that is never overwritten, and a last-touch copy that updates on each new tagged visit.
3. Ignore visits without UTM tags, so an untagged return visit never wipes the saved values.
4. Add hidden fields for every value to every form: contact, booking, sign-up and checkout.
5. Fill the hidden fields from the cookie when the form is sent.
6. Store each value in its own column on the lead or order record, and map the same fields into the CRM.
7. Test it: open a tagged link, send a form, and check the record shows the right values.
Fields to add:
- first_utm_source … first_utm_term: First tagged visit. Set once, never overwritten.
- last_utm_source … last_utm_term: Most recent tagged visit before the form was sent.
- gclid, fbclid, msclkid: Ad click IDs, for offline conversion uploads.
- landing_page: Full URL of the first page seen.
- referrer: The site the visitor came from.
- first_touch_at, last_touch_at: Timestamps of both visits.
Starting point:
const KEYS=['utm_source','utm_medium','utm_campaign','utm_content','utm_term','gclid','fbclid','msclkid'];
const q=new URLSearchParams(location.search);
const hit={};KEYS.forEach(k=>{if(q.get(k))hit[k]=q.get(k);});
if(Object.keys(hit).length){
hit.landing_page=location.href;hit.referrer=document.referrer;hit.at=new Date().toISOString();
const save=(n,v)=>document.cookie=n+'='+encodeURIComponent(JSON.stringify(v))+';path=/;max-age=7776000;SameSite=Lax';
if(!document.cookie.includes('utm_first='))save('utm_first',hit);
save('utm_last',hit);
}Never put names, emails or phone numbers in UTM tags. Store them only in your own database, under your privacy policy.
The ones that come up most
Common questions.
01Can I put a medical condition in a campaign name?
Service-line and campaign-level names such as "cardiology" or "fertility-ivf" are common and fine. What must never go in a link is anything about an individual: names, record numbers, contact details or a specific patient's condition. Check your hospital's privacy policy and local health advertising rules for anything more sensitive.
02How should a hospital structure UTM campaign names?
Start with the parts you report on most. A common order is facility, service line, objective, audience, language and date, for example "main-campus_cardiology_appointments_patients_ar_202610". Underscores separate the parts, so you can split them into columns in Looker Studio or a spreadsheet.
03How do I track appointments that come from Google Business Profile?
Add a UTM link to the website field of each profile, with source google, medium organic and a campaign name that starts with gbp. GA4 keeps the visit in Organic Search, and the campaign name lets you separate it from regular search results.
04Why should Arabic and English campaigns be tagged separately?
Language changes audience, competition and conversion rates. Tagging language in the campaign name lets you compare cost per lead and booking rates by language without relying on ad platform labels.
05Do UTMs work for phone calls and WhatsApp enquiries?
UTMs only travel with the click. To connect calls or WhatsApp chats to campaigns, use call tracking numbers that change based on the UTM source, or pass the UTMs into a pre-filled WhatsApp message or form.