Write a UTM naming convention with a prompt
A tracking convention holds when every value is lowercase, each channel keeps one source and medium, and names come from platform macros instead of typing, so your reports never split one channel in two.
By Grace Kong·Updated ·6 min read
Launch ads with clean tracking from your agent
TL;DR
UTM (Urchin Tracking Module) values are case sensitive, so "Meta" and "meta" become two sources in GA4 (Google Analytics 4); GA4's channel rules themselves are not.
Paid Social needs a source on GA4's social list and a paid medium such as paid_social or cpc; audio is its own channel, and a medium GA4 does not recognize can land in Unassigned.
GA4 lists 9 campaign parameters and says to always set source, medium and campaign, with utm_id strongly recommended.
Since Jan 1, 2024, Meta adds source, medium=paid and the campaign, ad set and ad ids to links on its own; TikTok's auto-attach fills source and medium too.
Templates use each platform's dynamic values (Meta's campaign, ad set and ad names, TikTok's creative name, Google's ValueTrack ids) so names never drift.
The prompt
Rules, names, a channel map, templates and a QA script: the five things a convention needs to survive a busy month.
Write our UTM and naming convention for every paid channel, with ready
tracking templates, so every click lands in the right GA4 channel.
CHANNELS WE RUN: [META, TIKTOK, GOOGLE ADS, STREAMING TV, PODCASTS,
NEWSLETTERS, CREATORS, POSTCARDS, BILLBOARDS]
ANALYTICS: [GA4 / OTHER]; Google Ads auto-tagging: [ON / OFF]
WHAT WE NEED TO REPORT BY: [CHANNEL, CAMPAIGN, AUDIENCE, OFFER, CONCEPT,
HOOK, CREATOR, MARKET]
1. RULES
- Lowercase only, hyphens inside a value, underscores between parts,
no spaces. (UTM values are case sensitive: "Meta" and "meta" split.)
- Always set utm_source, utm_medium and utm_campaign; add utm_id and
utm_content.
2. CAMPAIGN AND AD NAMES
- Campaign: [yyyymm]_[objective]_[audience]_[offer]_[geo]
- Ad: [concept]_[hook-id]_[format]_[length]_[v#]
Write 3 real examples of each from our inputs.
3. SOURCE AND MEDIUM TABLE
For each channel: utm_source, utm_medium, and the GA4 default channel it
will land in. Use mediums that match GA4's rules (for example a medium
matching paid.* or cpc for paid social with a social source; "display"
for display; "audio" for audio). Flag any combination that would land in
Unassigned.
4. PLATFORM TEMPLATES
- Meta URL parameters field: use dynamic parameters {{campaign.name}},
{{adset.name}}, {{ad.name}}, {{placement}}, {{site_source_name}} and
the id versions for utm_id.
- TikTok: macros __CAMPAIGN_NAME__, __AID_NAME__ (ad group),
__CID_NAME__ (creative), __PLACEMENT__, and the id versions.
- Google Ads: keep auto-tagging (gclid); add a final URL suffix with
ValueTrack {campaignid}, {adgroupid}, {creative}, {network}, {device}.
- Offline channels (TV, podcasts, postcards, billboards): a short vanity
URL per placement that redirects to a fully tagged URL, plus a code.
5. QA
- A regex that validates our utm values.
- A small script that reads urls.csv and lists every URL that breaks a
rule, with the reason.
Output the convention as a one-page doc, then the templates and the QA
script.How GA4 sorts your tagged clicks
The medium you choose decides the channel in every GA4 report, so pick it from the rules, not from habit.
| GA4 channel | Rule for manually tagged traffic | Example that lands there |
|---|---|---|
| Paid Social | Source on GA4's social list AND medium matches ^(.*cp.*|ppc|retargeting|paid.*)$ | utm_source=facebook&utm_medium=paid_social |
| Paid Video | Video source AND the same paid medium pattern | utm_source=youtube&utm_medium=cpv |
| Display | Medium is display, banner, expandable, interstitial or cpm | utm_medium=display |
| Audio | Medium is exactly audio | utm_source=podcast-show-name&utm_medium=audio |
| Source or medium is email, e-mail, e_mail or "e mail" | Your own list only | |
| Affiliates | Medium is affiliate | utm_medium=affiliate |
| Paid Other | Medium matches the paid pattern but the source fits no other paid channel | utm_source=newsletter-name&utm_medium=paid_newsletter |
Source: Google Analytics Help, default channel group. Google says channel definitions are not case sensitive and cannot be edited; the parameter values themselves are case sensitive (Google Analytics Help).
GA4 lists nine campaign parameters: utm_source, utm_medium, utm_campaign, utm_id, utm_term, utm_content, utm_source_platform, utm_creative_format and utm_marketing_tactic. Google says to always use the first three, strongly recommends utm_id and utm_source_platform, and notes the last two are not currently reported (Google).
What each platform fills in for you
Dynamic values keep tags consistent; typed values drift.
| Platform | Values it fills in for you | Watch out | Source |
|---|---|---|---|
| Meta | {{campaign.name}}, {{adset.name}}, {{ad.name}}, the matching .id values, {{placement}}, {{site_source_name}} (fb, ig, an, msg, th) | Name parameters keep the name used when the ad was first published; changing URL parameters after launch may restart learning. Since Jan 1, 2024 Meta also adds source, medium=paid and ad, ad set and campaign ids automatically. | Meta, Meta |
| TikTok | __CAMPAIGN_NAME__, __CAMPAIGN_ID__, __AID_NAME__ and __AID__ (ad group), __CID_NAME__ and __CID__ (creative), __PLACEMENT__ | __CID__ is the creative, not the campaign. Auto-attach fills source (TikTok) and medium ("Paid"). UTM values are case sensitive. | TikTok, TikTok |
| Google Ads | gclid via auto-tagging; ValueTrack {campaignid}, {adgroupid}, {creative}, {keyword}, {network}, {device} | {keyword} is blank for Performance Max. A final URL suffix can be set at account, campaign, ad group, ad and keyword level. | Google, Google, Google |
What good output looks like
One table anyone on the team can follow without asking.
| Channel | utm_source | utm_medium | utm_campaign | GA4 channel |
|---|---|---|---|---|
| Meta | {{site_source_name}} or facebook | paid_social | {{campaign.name}} | Paid Social |
| TikTok | tiktok | paid_social | __CAMPAIGN_NAME__ | Paid Social |
| Podcast (show page URL) | show-name | audio | 202612_launch_podcast | Audio |
| Newsletter sponsorship | newsletter-name | paid_newsletter | 202612_launch_newsletter | Paid Other |
| Postcard (vanity URL) | postcard | paid_mail | 202612_eddm_95816 | Paid Other |
Check each source value against GA4's source lists before relying on the channel column; a source GA4 does not recognize as social will not count as Paid Social even with a paid medium.
Run it in Claude Code, Claude or ChatGPT
The convention is a document; the QA script is where Claude Code helps most.
In Claude or ChatGPT, paste the prompt and save the output as your team doc. In Claude Code, ask for utm_rules.md, templates/ and check_urls.py, then run the script on an export of live ad URLs every month. With the Hypesonic MCP (Model Context Protocol server), your agent launches Meta, TikTok, Pinterest, Reddit and LinkedIn campaigns named to your convention, with your tagged link as the destination. Launching Google Ads through Hypesonic is coming soon.
Common mistakes
Broken tracking usually starts with one inconsistent value.
- Mixed case. facebook, Facebook and FB become three sources.
- A medium GA4 does not recognize. "social-paid" or "sponsored" can end up in Unassigned.
- Doubling up on Google Ads. With auto-tagging on, gclid already carries the campaign data; adding manual UTMs too gives one click two sets of labels, so decide which one your reports use.
- Renaming ads to fix names. Meta's name parameters keep the first published name, and changing URL parameters may restart learning.
- Long URLs on TV, podcasts and mail. Use a short vanity URL that redirects to the tagged one.
Questions
What is a good UTM naming convention?
Lowercase values, hyphens inside values and underscores between parts, the same source and medium for a channel every time, and dynamic platform parameters instead of typed names.
What utm_medium should I use for paid social?
One that matches GA4's paid pattern, such as paid_social or cpc, together with a source GA4 recognizes as social. Otherwise the traffic may not count as Paid Social.
Are UTM parameters case sensitive?
Yes. Google says utm_source=google is different from utm_source=Google, and TikTok also notes UTM parameters are case sensitive. GA4's channel rules themselves are not case sensitive.
Do I need UTMs on Google Ads?
Not with auto-tagging on, which adds a gclid parameter and is on by default for new accounts. Use a final URL suffix with ValueTrack parameters for anything extra you want in the URL.
How do I add UTMs to TikTok ads?
In the ad details, after the destination URL, open Build URL parameters, or add macros such as __CAMPAIGN_NAME__, __AID_NAME__ and __CID_NAME__ to the URL yourself.
Sources
- 1Google Analytics Help, URL builders and campaign parameters
- 2Google Analytics Help, default channel group
- 3Google Ads Help, auto-tagging
- 4Google Ads Help, final URL suffix
- 5Google Ads Help, ValueTrack parameters
- 6Meta, dynamic URL parameters
- 7Meta, add URL parameters
- 8TikTok Ads Help, UTM parameters and macros · Feb 2026
- 9TikTok Ads Help, add URL parameters · Dec 2025
- 10TikTok Ads Help, UTM best practices
Launch ads with clean tracking from your agent
Keep reading
- PromptsWrite a weekly ad performance report with a promptRead
- PromptsPitch a newsletter for a sponsorship slot with a promptRead
- PromptsBuild a launch media plan with a promptRead
- IntegrationsGoogle Ads MCP: what Google's official server can and can't doRead
- IntegrationsTikTok Ads MCP: TikTok's official server and how to use itRead
- PromptsA Claude Code agent for ad reportingRead