Built for

Hospitals and clinics

Includes

GA4 channel check · QR code

Price

Free to use

Healthcare UTM builder.

Pick a channel, choose the service line and objective, and the campaign name follows one convention every time.

01The builder

Free · runs in your browser · nothing uploaded

02The basics

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

TagAnswersExample
utm_sourceWhere did the click come from?google, facebook, newsletter
utm_mediumWhat type of traffic is it?cpc, paid_social, email
utm_campaignWhich campaign was it?spring-sale_202611
utm_contentWhich ad or link was clicked?hero-banner, video-a
utm_termWhich keyword or audience?running shoes
03Why it matters

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.

04How it works

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.

05Cheat sheet

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.

Channelutm_sourceutm_mediumGA4 channel
Google Ads: SearchgooglecpcPaid Search
Google Ads: Performance MaxgooglecpcPaid Search
Microsoft AdvertisingbingcpcPaid Search
Facebook adsfacebookpaid_socialPaid Social
Instagram adsinstagrampaid_socialPaid Social
Snapchat adssnapchatpaid_socialPaid Social
TikTok adstiktokpaid_socialPaid Social
LinkedIn adslinkedinpaid_socialPaid Social
Google Ads: DisplaygoogledisplayDisplay
YouTube adsyoutubecpvPaid Video
Patient newsletternewsletteremailEmail
Physician referral emailphysician-newsletteremailEmail
Appointment or recall SMSsmssmsSMS
WhatsApp message or broadcastwhatsappsocialOrganic Social
Patient app pushpatient-apppushMobile Push Notifications
Facebook postfacebooksocialOrganic Social
Instagram bio or storyinstagramsocialOrganic Social
LinkedIn postlinkedinsocialOrganic Social
YouTube descriptionyoutubevideoOrganic Video
Google Business ProfilegoogleorganicOrganic Search
Doctor booking platform (e.g. Okadoc)okadocreferralReferral
Insurance partner portalinsurer-portalreferralReferral
Corporate wellness partnercorporate-partnerreferralReferral
Clinic poster or brochure QRprintqrUnassigned
Health camp or event QRhealth-eventqrUnassigned
Radio spot vanity URLradioaudioAudio
06Tips

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.

07For your developer

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

FieldWhat it holds
first_utm_source … first_utm_termFirst tagged visit. Set once, never overwritten.
last_utm_source … last_utm_termMost recent tagged visit before the form was sent.
gclid, fbclid, msclkidAd click IDs, for offline conversion uploads.
landing_pageFull URL of the first page seen.
referrerThe site the visitor came from.
first_touch_at, last_touch_atTimestamps 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);
}

Never put names, emails or phone numbers in UTM tags. Store them only in your own database, under your privacy policy.

08Questions

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.

More UTM builders.

Scroll to Top