UTM parameters are short query tags added to external campaign URLs so Google Analytics 4 can identify the exact source, medium, and campaign behind each visit. Use strict lowercase values, place tags before any #fragment, and test every tagged link before launch so traffic never collapses into Direct or Unassigned.
Why Untracked Links Collapse Into Direct Traffic in GA4
When external links go live without UTM parameters, Google Analytics 4 often loses the trail back to your campaign. Visitors arrive on your site, start a session, and land in the catch-all (direct) / (none) bucket instead of showing which post, email, or partner drove the click.
Google's documentation on GA4 direct traffic highlights missing tags, stripped redirects, offline documents, and ad blockers. In practice, attribution usually disappears in four ways:
- Missing campaign tags: Email newsletters, social bio links, and partner mentions without UTMs often lack usable referrer data.
- Stripped redirects: Redirect chains, some URL shorteners, or jumps from HTTPS to HTTP can drop referrer headers and query strings.
- Offline and app links: Clicks from PDFs, Word documents, QR codes, or messaging apps rarely pass a reliable HTTP referrer.
- Privacy and ad blockers: Browser protections and blockers can drop referrer headers or interfere with analytics cookies.
Accurate channel reporting is what makes downstream website traffic checks and conversion and profit models reliable. If half of your newsletter clicks show up as Direct, your acquisition math credits the wrong channel.
The Five Core UTM Parameters Explained With Practical Examples
Google Analytics supports several campaign tags, though five classic UTM parameters cover almost every indie marketing workflow. Per Google's URL builder reference, always include utm_source, utm_medium, and utm_campaign together so GA4 avoids (not set) gaps.
- utm_source (Required): Identifies the specific site, newsletter, or platform sending traffic, such as newsletter, linkedin, or producthunt.
- utm_medium (Required): Identifies the marketing channel type, such as email, paid_social, or cpc.
- utm_campaign (Required): Names the launch, promo, or initiative, such as spring_launch or black_friday_2026.
- utm_content (Optional): Differentiates links or creatives inside one campaign, such as hero_cta versus footer_link.
- utm_term (Optional): Identifies paid search keywords or targeting variants, such as ios_seo_tool or founder_list.
Suppose you send a launch email with a top button and a postscript link. Both URLs share the same source, medium, and campaign while changing only utm_content:
- https://example.com/pricing?utm_source=founder_digest&utm_medium=email&utm_campaign=v2_launch&utm_content=hero_button
- https://example.com/pricing?utm_source=founder_digest&utm_medium=email&utm_campaign=v2_launch&utm_content=ps_text_link
GA4 also recognizes utm_id for imported campaign cost data and utm_source_platform for ad buying platforms. Google's documentation notes that utm_creative_format and utm_marketing_tactic are not currently reported in GA4 properties.
If you run Google Ads with auto-tagging (gclid), let auto-tagging handle source and medium. According to Google's manual tagging guide, GA4 uses auto-tagged values first and falls back exclusively to UTMs only when the click ID cannot be read.
GA4 Naming Hygiene: Lowercase, Underscores, and Standardized Mediums
Google Analytics 4 treats UTM values as case-sensitive strings. Writing utm_source=LinkedIn in one link and utm_source=linkedin in another splits one platform into two report rows. Mixed casing like SpringSale versus spring_sale fractures campaign totals the same way.
Set a strict naming rule before publishing your first campaign:
- Force lowercase everywhere: Keep newsletter, email, and launch_q4 lowercase across every tag.
- Pick one separator: Use underscores (paid_social) or hyphens (spring-sale) consistently, never spaces.
- Keep one source per platform: Stick to linkedin or instagram rather than mixing li, ig, and insta.
- Never include personal data: Keep emails, usernames, and user IDs out of campaign URLs.
Standardizing utm_medium is equally critical because GA4's Default Channel Group uses fixed, non-editable rules. Even though channel rules ignore letter case, custom medium names regularly push traffic into Unassigned or the wrong channel.
Stick to mediums that match Google's documented definitions:
- Email (email): Matches email, e-mail, e_mail, or e mail in source or medium.
- Paid Search or Paid Social (cpc, paid_social): Requires a recognized search or social source plus a medium containing cp, or matching ppc, retargeting, or starting with paid.
- Organic Social (social): Matches recognized social sources or mediums like social, social-network, or social-media.
- Display (display, banner): Matches display, banner, expandable, interstitial, or cpm.
- Affiliates (affiliate) and SMS (sms): Matches exact affiliate or sms values.
A link like utm_source=partner_blog&utm_medium=sponsor-blast misses every rule and falls into Unassigned, while utm_medium=social-boost on a recognized social source misroutes a paid boost into Organic Social. Clean channel tags keep your AI search referral tracking and website traffic revenue models separate.
Preserving Existing Query Parameters and URL Fragments Safely
Many UTM mistakes happen during URL assembly, not naming. Developers and indie founders frequently link to filtered product pages, search results, or documentation anchors that already contain ? query strings or # fragments.
Every valid web URL follows a strict order: scheme, host, path, ?query, and #fragment. As documented in MDN's references on URI query strings and URI fragments, the fragment starts at # and sits at the very end of the URL.
Two syntax bugs break campaign links immediately:
- Adding a second question mark: Appending ?utm_source=... to https://example.com/tools?mode=audit creates ...?mode=audit?utm_source=..., which corrupts the parameter value. Join additional parameters with & instead.
- Placing UTMs after #fragment: Writing https://example.com/docs#setup?utm_source=x puts the tracking tags inside the client-side fragment. Browsers do not send fragments to the server, and standard query parsers ignore anything after #.
The safe pattern preserves existing non-UTM query parameters, replaces stale utm_* keys, URL-encodes special characters, and keeps #fragment last. For example, https://example.com/tools?tab=aso#pricing becomes https://example.com/tools?tab=aso&utm_source=newsletter&utm_medium=email&utm_campaign=nov_release#pricing.
Before shipping a campaign, run a quick three-step link test in an incognito browser window:
- Paste the final URL into the address bar and load the page.
- Confirm the landing page keeps its intended filter state and scrolls to the #anchor.
- Inspect the final browser URL after any trailing-slash or HTTP-to-HTTPS redirect to verify every utm_* parameter survived intact.
Where to Verify UTM Traffic in GA4 Standard and Explore Reports
Once your test clicks fire, check GA4 to confirm your tags flow into the right scope. Google Analytics separates traffic-source dimensions across three scopes, explained in Google's dimension scopes guide:
- User-scoped (First user source, First user medium): Records how a visitor first discovered your site, shown in Reports > Acquisition > User acquisition.
- Session-scoped (Session source, Session medium, Session campaign): Records what started each visit, shown in Reports > Acquisition > Traffic acquisition.
- Event-scoped (Source, Medium, Campaign): Credits key events in Advertising > Attribution reports using your property's attribution model.
To inspect campaign tags in standard reporting, open Reports > Acquisition > Traffic acquisition. Switch the primary dimension dropdown from Session default channel group to Session source / medium or Session campaign. Click the + icon beside the column header to add Session manual ad content (utm_content) or Session manual term (utm_term) as a secondary dimension.
Note one subtle reporting quirk from Google's URL builder documentation: GA4 strips UTM tags out of Landing page + query string and Page path + query string. To inspect the raw landing URL with UTMs, check Page location inside a custom report.
When standard tables feel limiting, open Explore > Blank and add Session campaign, Session manual source, Session manual medium, and Session manual ad content under Dimensions. Pair them with Sessions, Engaged sessions, and Key events under Metrics.
Common UTM Mistakes That Corrupt Session Attribution
Even experienced teams quietly pollute analytics with avoidable tagging habits. Keep these four mistakes out of your workflow:
- Tagging internal links: Never add UTMs to menus, banners, or blog links inside your own site. As Analytics Mania's GA4 UTM guide explains, UTMs belong strictly on external traffic. GA4 does not split sessions mid-visit like Universal Analytics did, yet internal UTMs still taint downstream event attribution. Track internal clicks with GA4 events instead.
- Leaving parameters incomplete: Tagging only utm_campaign without utm_source and utm_medium creates (not set) entries and Unassigned traffic.
- Using parameter-stripping redirects: Short links or CMS trailing-slash redirects can drop query strings in transit, so always verify the final URL.
- Adding spaces or unencoded symbols: Unencoded spaces or ampersands break URL parsing or clutter reports with %20 strings.
Audit your active links quarterly by sorting Traffic acquisition by Session source / medium to catch uppercase duplicates, (not set) rows, and Unassigned spikes.
Frequently asked questions
Are UTM parameters case-sensitive in GA4?
Yes. Google Analytics 4 treats parameter values as case-sensitive, so utm_source=LinkedIn and utm_source=linkedin appear as two separate rows in reports. Always use lowercase values across your entire naming convention.
Which UTM parameters are required in Google Analytics 4?
Google recommends always including utm_source, utm_medium, and utm_campaign together whenever you tag a URL. Optional parameters like utm_content, utm_term, and utm_id add creative, keyword, or campaign ID detail when needed.
Why are my UTM-tagged links showing up as Unassigned or Direct in GA4?
Traffic falls into Unassigned when your utm_medium or utm_source does not match GA4's Default Channel Group rules. Traffic falls into (direct) / (none) when a redirect, shortener, or HTTPS-to-HTTP jump strips query parameters before the GA4 tag fires.
Should I put UTM parameters on internal links on my own site?
No. UTM parameters are meant only for external campaigns bringing visitors to your site. Tagging internal buttons or menus pollutes event-level attribution and overwrites the campaign credit for downstream conversions; use GA4 click or promotion events instead.
How do I add UTM parameters to a URL that already has a query string or #fragment?
Append UTMs with & after existing query parameters, never with a second ?, and keep any #fragment at the very end of the URL. Any parameter placed after # becomes part of the fragment and will not be read as a query parameter.
Build clean campaign links with SearchBop's free UTM Link Builder
Use SearchBop's free browser-based UTM Link Builder to generate properly encoded campaign URLs while keeping existing query parameters and #fragments intact. When you want to connect traffic attribution with keyword research, on-page SEO audits, and App Store Optimization in one place, SearchBop's desktop assistant gives indie makers a single workspace under a one-time license with no recurring subscriptions.
Sources: Google Analytics Help — URL builders: Collect campaign data with custom URLs, Google Analytics Help — Default channel group, Google Analytics Help — Traffic-source dimensions, manual tagging, and auto-tagging, Google Analytics Help — Scopes of traffic-source dimensions, Google Analytics Help — [GA4] Understand (direct) / (none) traffic, MDN Web Docs — URI query, MDN Web Docs — URI fragment, Analytics Mania — UTM Parameters in Google Analytics 4
UTM Parameters Guide: GA4 Naming Rules & Campaign Link Testing
UTM parameters are short query tags added to external campaign URLs so Google Analytics 4 can identify the exact source, medium, and campaign behind each visit. Use strict lowercase values, place tags before any #fragment, and test every tagged link before launch so traffic never collapses into Direct or Unassigned.
Why Untracked Links Collapse Into Direct Traffic in GA4
When external links go live without UTM parameters, Google Analytics 4 often loses the trail back to your campaign. Visitors arrive on your site, start a session, and land in the catch-all (direct) / (none) bucket instead of showing which post, email, or partner drove the click.
Google's documentation on GA4 direct traffic highlights missing tags, stripped redirects, offline documents, and ad blockers. In practice, attribution usually disappears in four ways:
- Missing campaign tags: Email newsletters, social bio links, and partner mentions without UTMs often lack usable referrer data.
- Stripped redirects: Redirect chains, some URL shorteners, or jumps from HTTPS to HTTP can drop referrer headers and query strings.
- Offline and app links: Clicks from PDFs, Word documents, QR codes, or messaging apps rarely pass a reliable HTTP referrer.
- Privacy and ad blockers: Browser protections and blockers can drop referrer headers or interfere with analytics cookies.
Accurate channel reporting is what makes downstream website traffic checks and conversion and profit models reliable. If half of your newsletter clicks show up as Direct, your acquisition math credits the wrong channel.
The Five Core UTM Parameters Explained With Practical Examples
Google Analytics supports several campaign tags, though five classic UTM parameters cover almost every indie marketing workflow. Per Google's URL builder reference, always include utm_source, utm_medium, and utm_campaign together so GA4 avoids (not set) gaps.
- utm_source (Required): Identifies the specific site, newsletter, or platform sending traffic, such as newsletter, linkedin, or producthunt.
- utm_medium (Required): Identifies the marketing channel type, such as email, paid_social, or cpc.
- utm_campaign (Required): Names the launch, promo, or initiative, such as spring_launch or black_friday_2026.
- utm_content (Optional): Differentiates links or creatives inside one campaign, such as hero_cta versus footer_link.
- utm_term (Optional): Identifies paid search keywords or targeting variants, such as ios_seo_tool or founder_list.
Suppose you send a launch email with a top button and a postscript link. Both URLs share the same source, medium, and campaign while changing only utm_content:
- https://example.com/pricing?utm_source=founder_digest&utm_medium=email&utm_campaign=v2_launch&utm_content=hero_button
- https://example.com/pricing?utm_source=founder_digest&utm_medium=email&utm_campaign=v2_launch&utm_content=ps_text_link
GA4 also recognizes utm_id for imported campaign cost data and utm_source_platform for ad buying platforms. Google's documentation notes that utm_creative_format and utm_marketing_tactic are not currently reported in GA4 properties.
If you run Google Ads with auto-tagging (gclid), let auto-tagging handle source and medium. According to Google's manual tagging guide, GA4 uses auto-tagged values first and falls back exclusively to UTMs only when the click ID cannot be read.
GA4 Naming Hygiene: Lowercase, Underscores, and Standardized Mediums
Google Analytics 4 treats UTM values as case-sensitive strings. Writing utm_source=LinkedIn in one link and utm_source=linkedin in another splits one platform into two report rows. Mixed casing like SpringSale versus spring_sale fractures campaign totals the same way.
Set a strict naming rule before publishing your first campaign:
- Force lowercase everywhere: Keep newsletter, email, and launch_q4 lowercase across every tag.
- Pick one separator: Use underscores (paid_social) or hyphens (spring-sale) consistently, never spaces.
- Keep one source per platform: Stick to linkedin or instagram rather than mixing li, ig, and insta.
- Never include personal data: Keep emails, usernames, and user IDs out of campaign URLs.
Standardizing utm_medium is equally critical because GA4's Default Channel Group uses fixed, non-editable rules. Even though channel rules ignore letter case, custom medium names regularly push traffic into Unassigned or the wrong channel.
Stick to mediums that match Google's documented definitions:
- Email (email): Matches email, e-mail, e_mail, or e mail in source or medium.
- Paid Search or Paid Social (cpc, paid_social): Requires a recognized search or social source plus a medium containing cp, or matching ppc, retargeting, or starting with paid.
- Organic Social (social): Matches recognized social sources or mediums like social, social-network, or social-media.
- Display (display, banner): Matches display, banner, expandable, interstitial, or cpm.
- Affiliates (affiliate) and SMS (sms): Matches exact affiliate or sms values.
A link like utm_source=partner_blog&utm_medium=sponsor-blast misses every rule and falls into Unassigned, while utm_medium=social-boost on a recognized social source misroutes a paid boost into Organic Social. Clean channel tags keep your AI search referral tracking and website traffic revenue models separate.
Preserving Existing Query Parameters and URL Fragments Safely
Many UTM mistakes happen during URL assembly, not naming. Developers and indie founders frequently link to filtered product pages, search results, or documentation anchors that already contain ? query strings or # fragments.
Every valid web URL follows a strict order: scheme, host, path, ?query, and #fragment. As documented in MDN's references on URI query strings and URI fragments, the fragment starts at # and sits at the very end of the URL.
Two syntax bugs break campaign links immediately:
- Adding a second question mark: Appending ?utm_source=... to https://example.com/tools?mode=audit creates ...?mode=audit?utm_source=..., which corrupts the parameter value. Join additional parameters with & instead.
- Placing UTMs after #fragment: Writing https://example.com/docs#setup?utm_source=x puts the tracking tags inside the client-side fragment. Browsers do not send fragments to the server, and standard query parsers ignore anything after #.
The safe pattern preserves existing non-UTM query parameters, replaces stale utm_* keys, URL-encodes special characters, and keeps #fragment last. For example, https://example.com/tools?tab=aso#pricing becomes https://example.com/tools?tab=aso&utm_source=newsletter&utm_medium=email&utm_campaign=nov_release#pricing.
Before shipping a campaign, run a quick three-step link test in an incognito browser window:
- Paste the final URL into the address bar and load the page.
- Confirm the landing page keeps its intended filter state and scrolls to the #anchor.
- Inspect the final browser URL after any trailing-slash or HTTP-to-HTTPS redirect to verify every utm_* parameter survived intact.
Where to Verify UTM Traffic in GA4 Standard and Explore Reports
Once your test clicks fire, check GA4 to confirm your tags flow into the right scope. Google Analytics separates traffic-source dimensions across three scopes, explained in Google's dimension scopes guide:
- User-scoped (First user source, First user medium): Records how a visitor first discovered your site, shown in Reports > Acquisition > User acquisition.
- Session-scoped (Session source, Session medium, Session campaign): Records what started each visit, shown in Reports > Acquisition > Traffic acquisition.
- Event-scoped (Source, Medium, Campaign): Credits key events in Advertising > Attribution reports using your property's attribution model.
To inspect campaign tags in standard reporting, open Reports > Acquisition > Traffic acquisition. Switch the primary dimension dropdown from Session default channel group to Session source / medium or Session campaign. Click the + icon beside the column header to add Session manual ad content (utm_content) or Session manual term (utm_term) as a secondary dimension.
Note one subtle reporting quirk from Google's URL builder documentation: GA4 strips UTM tags out of Landing page + query string and Page path + query string. To inspect the raw landing URL with UTMs, check Page location inside a custom report.
When standard tables feel limiting, open Explore > Blank and add Session campaign, Session manual source, Session manual medium, and Session manual ad content under Dimensions. Pair them with Sessions, Engaged sessions, and Key events under Metrics.
Common UTM Mistakes That Corrupt Session Attribution
Even experienced teams quietly pollute analytics with avoidable tagging habits. Keep these four mistakes out of your workflow:
- Tagging internal links: Never add UTMs to menus, banners, or blog links inside your own site. As Analytics Mania's GA4 UTM guide explains, UTMs belong strictly on external traffic. GA4 does not split sessions mid-visit like Universal Analytics did, yet internal UTMs still taint downstream event attribution. Track internal clicks with GA4 events instead.
- Leaving parameters incomplete: Tagging only utm_campaign without utm_source and utm_medium creates (not set) entries and Unassigned traffic.
- Using parameter-stripping redirects: Short links or CMS trailing-slash redirects can drop query strings in transit, so always verify the final URL.
- Adding spaces or unencoded symbols: Unencoded spaces or ampersands break URL parsing or clutter reports with %20 strings.
Audit your active links quarterly by sorting Traffic acquisition by Session source / medium to catch uppercase duplicates, (not set) rows, and Unassigned spikes.
Frequently asked questions
Are UTM parameters case-sensitive in GA4?
Yes. Google Analytics 4 treats parameter values as case-sensitive, so utm_source=LinkedIn and utm_source=linkedin appear as two separate rows in reports. Always use lowercase values across your entire naming convention.
Which UTM parameters are required in Google Analytics 4?
Google recommends always including utm_source, utm_medium, and utm_campaign together whenever you tag a URL. Optional parameters like utm_content, utm_term, and utm_id add creative, keyword, or campaign ID detail when needed.
Why are my UTM-tagged links showing up as Unassigned or Direct in GA4?
Traffic falls into Unassigned when your utm_medium or utm_source does not match GA4's Default Channel Group rules. Traffic falls into (direct) / (none) when a redirect, shortener, or HTTPS-to-HTTP jump strips query parameters before the GA4 tag fires.
Should I put UTM parameters on internal links on my own site?
No. UTM parameters are meant only for external campaigns bringing visitors to your site. Tagging internal buttons or menus pollutes event-level attribution and overwrites the campaign credit for downstream conversions; use GA4 click or promotion events instead.
How do I add UTM parameters to a URL that already has a query string or #fragment?
Append UTMs with & after existing query parameters, never with a second ?, and keep any #fragment at the very end of the URL. Any parameter placed after # becomes part of the fragment and will not be read as a query parameter.
Build clean campaign links with SearchBop's free UTM Link Builder
Use SearchBop's free browser-based UTM Link Builder to generate properly encoded campaign URLs while keeping existing query parameters and #fragments intact. When you want to connect traffic attribution with keyword research, on-page SEO audits, and App Store Optimization in one place, SearchBop's desktop assistant gives indie makers a single workspace under a one-time license with no recurring subscriptions.
Sources: Google Analytics Help — URL builders: Collect campaign data with custom URLs, Google Analytics Help — Default channel group, Google Analytics Help — Traffic-source dimensions, manual tagging, and auto-tagging, Google Analytics Help — Scopes of traffic-source dimensions, Google Analytics Help — [GA4] Understand (direct) / (none) traffic, MDN Web Docs — URI query, MDN Web Docs — URI fragment, Analytics Mania — UTM Parameters in Google Analytics 4
Related workflows
Explore the relevant Searchbop workflow or use a free browser tool.