If you share the same article on a blog, a video description, a community post and a tweet, and every link is plain, you will never know which one sent the visitor. Tagging each link with its own UTM values fixes that, as long as the names follow a few strict rules. Here is the naming scheme I use as a solo developer, with the real patterns from my links and what I look at afterwards.
The three fields and what each one answers
- utm_source: where the click came from, such as youtube, twitter or producthunt.
- utm_medium: the kind of place inside that source, such as video, community or social.
- utm_campaign: the specific piece of content, such as a post name.
My real patterns
Every video description links to its article with the source youtube, the medium video and one shared campaign value for all blog videos. Every YouTube community post uses the source youtube, the medium community and a campaign that starts with post_ followed by the article name. Tweets use the source twitter, the medium social and a campaign that starts with tw_ plus a short name. Product Hunt links use their own source.
The same article therefore arrives in analytics under different labels depending on where the person clicked.
Rules that keep the data clean
- Lowercase only, no spaces, use underscores. “YouTube” and “youtube” become two rows otherwise.
- Decide the list of sources and mediums once and write it down. New names only when there is really a new place.
- Use the campaign for the content, not for the date or the idea of the week.
- Never put personal or sensitive data in a UTM value. It ends up in URLs, logs and shared screenshots.
- Do not tag links between pages of your own site. That overwrites the original source of the visit.
Why one shared campaign for videos
The blog videos share one campaign value on purpose. I want to compare the whole video channel against the community posts and tweets first. The article itself is already known from the landing page, so a per-video campaign would add noise before I have enough traffic to need it.
Reading the result
In Google Analytics 4 I look at sessions by source and medium, then open the landing pages for each. For a small site the numbers are tiny, so I count in dozens and compare channels by what they led to, for example visits to an app page and clicks on a store link, which the site records as its own event. For installs I use Play Console, where a separate medium for QR codes lets me tell them apart.
A sanity check before publishing
Open the link once in a private window. Check that the page loads, that the parameters are still in the address and that the visit appears in the real-time view. One minute of testing saves a week of unlabeled data.
FAQ
What are the three main UTM parameters?
Source (where the traffic comes from), medium (the type of channel) and campaign (the specific content or promotion).
Should I tag links inside my own website?
No. Internal tagged links can overwrite the original source of the visit.
Is it fine to use capital letters in UTM values?
Avoid them. Analytics treats different capitalization as different values, which splits your data.
Can I put a user’s name or email in a UTM?
No. Parameters appear in URLs and logs, so never include personal information.
Top comments (0)