Chapter 2 of 6
UTM tags and GA4 setup for clean marketing data
Most messy marketing reports start in two places: links that different people tagged in different ways, and a Google Analytics 4 (GA4) property that nobody set up past the install. This chapter fixes both. First you'll build a UTM naming sheet, the one shared document that decides exactly what every tagged link says. Then you'll see how GA4 reads those tags and drops each visit into a channel, why paid Facebook ads so often show up as free social traffic, and how to add a channel for flyers, truck wraps and other offline sources. After that comes GA4 setup in the order that matters: key events, data retention, the BigQuery link, attribution, Consent Mode and testing. The chapter ends with a checklist you can hand to an agency and a troubleshooting table for the problems that come up most: (not set), Unassigned and your own site showing up as a referrer. The examples use invented local businesses, like Northgate Plumbing and Bayview Dental, so you can picture the work in a real shop.
What UTM tags are and why GA4 needs them
A UTM tag is a short piece of text added to the end of a link. It tells GA4 where the visitor came from. A link like northgateplumbing.com/furnace?utm_source=facebook&utm_medium=paid-social&utm_campaign=2026-11_furnace-tuneup carries three facts: the site that sent the visit, the type of marketing, and the campaign name.
Without tags, GA4 has to guess from the referrer, which is the address of the page the visitor was on before. Email apps, text messages and QR codes often pass no referrer at all, so those visits tend to land in Direct, which in practice means "we don't know." Tags replace the guess with a fact you chose.
Google's GA4 help page on campaign data lists the parameters GA4 reads: utm_id, utm_source, utm_medium, utm_campaign, utm_source_platform, utm_term and utm_content, plus utm_creative_format and utm_marketing_tactic. The same page says those last two aren't currently reported in Google Analytics properties, so you can skip them. Google also notes that you can add the parameters to a link in any order.
The single most important rule from that page: values are case sensitive. GA4 treats utm_source=google and utm_source=Google as two different sources, so Meta and meta become two rows in your report. Google's advice on that page is to use lowercase as the standard.
Every UTM parameter and the rule for filling it in
Here is what each parameter is for and the house rule to adopt. Julius Fedorovicius, who runs the GA4 training site Analytics Mania, says in his UTM guide (updated June 9, 2026) that every tagged link should always include utm_source, utm_medium and utm_campaign. Google's campaign data page goes a step further: it recommends setting all relevant parameters, especially utm_source, utm_medium, utm_campaign, utm_id and utm_source_platform, and says missing UTM parameters show up as (not set) in reports.
Treat the house rules below as a starting point. They're a common practitioner pattern, not a Google requirement. A business that runs three campaigns a year can use a simpler sheet. A franchise with twenty locations should add a location code to the campaign name. Google lists utm_source_platform among its recommended fields, but most local businesses buy ads directly in each platform, so it adds little unless an agency buys through a platform like Search Ads 360.
| Parameter | What it answers | Required? | House rule | Example |
|---|---|---|---|---|
| utm_source | Which site, app or physical item sent the visit | Yes | One word, lowercase, the platform's plain name | facebook, newsletter, truck-wrap |
| utm_medium | What type of marketing it was | Yes | Pick only from the approved list in this chapter, so GA4 can sort it into a channel | paid-social, email, sms, cpc, qr |
| utm_campaign | Which promotion or push | Yes | yyyy-mm_offer_audience | 2026-11_furnace-tuneup_past-customers |
| utm_id | The campaign's ID number | Recommended by Google | Use the ad platform's campaign ID, or your own sheet's row number | 120214567890 |
| utm_content | Which ad, button or version | When you test versions | short-description_version | video-tech-van_v2 |
| utm_term | Which paid keyword | Paid search only | Let the ad platform fill it with its own keyword placeholder | furnace-repair |
| utm_source_platform | Which buying platform | Recommended by Google; rarely matters for local businesses | Fill it only if an agency buys through a platform like Search Ads 360 | search-ads-360 |
Case, separators and length rules
Write every value in lowercase. Google recommends it, and Fedorovicius gives the same advice because GA4 treats black-friday and Black-Friday as different campaigns.
Pick one separator inside words and a different one between fields, then never change. A common pattern is a hyphen inside a phrase (furnace-tuneup) and an underscore between parts of the name (2026-11_furnace-tuneup_retarget). Never use spaces. A space turns into %20 or a plus sign in the link and makes reports hard to read. Avoid &, #, ? and / inside values, because those characters already mean something in a web address.
Keep values short. Google's collection limits page caps event parameter values at 100 characters and the full page address (page_location) at 1,000 characters, and for URL-based limits it counts the encoded length, so a space that becomes %20 uses three characters. A starting point many practitioners use is to keep each UTM value under about 50 characters so the whole link stays well inside those caps.
Put the date first in campaign names, as year then month (2026-11). Dates written that way sort in order in any report or spreadsheet. Then add the offer, then the audience if you run more than one. If a campaign runs for months, use its start month and keep the name the same the whole time.
The approved medium list
The medium is the field that decides which channel a visit lands in, so it's the one you lock down hardest. Use only these values. Each one is chosen to match a rule in GA4's default channel group, which a later section explains.
If you need a medium that isn't on this list, such as qr or print, add it to the sheet and build the custom channel group described later. Otherwise those visits land in Unassigned.
- cpc: paid search ads you tag by hand (Microsoft Ads, or any search ad without auto-tagging)
- paid-social: any paid social ad (Facebook, Instagram, TikTok, LinkedIn, Nextdoor ads)
- social: free posts on your own social profiles
- email: newsletters, review requests, invoices with links
- sms: text messages
- organic: Google Business Profile links
- referral: partner or directory links you control
- affiliate: partners paid per lead or sale
- display: banner ads
- qr, print, direct-mail: offline items, which need a custom channel to report correctly
Template: a UTM sheet for a local service business
Copy this table into a spreadsheet and make it the only place anyone builds a link. Add columns for the full final URL, who made it, the date it went live and where it was used. Northgate Plumbing, an invented plumbing company, is the example.
The Google Ads row has no UTMs on purpose. Google Ads uses auto-tagging instead, which adds a click ID called gclid to each ad link. Google's auto-tagging help page says auto-tagging takes precedence over manual tagging in GA4 because GA4 has no override option, so mixing the two isn't a clean setup. Keep auto-tagging on, which Google says is now on by default for new accounts, and leave the UTMs off. The same page says that if your site uses redirects, the gclid has to survive to the final landing page or conversions won't track.
Local Services Ads aren't in the table. Google's channel rules page doesn't list them by name among Google Ads campaign types, and most of their leads happen on Google itself, so count those leads from the Local Services dashboard and your call log rather than from GA4.
| Source | utm_source | utm_medium | utm_campaign | utm_content | Lands in channel |
|---|---|---|---|---|---|
| Facebook ads | paid-social | 2026-11_furnace-tuneup_homeowners | {{ad.name}} | Paid Social | |
| Instagram ads | paid-social | 2026-11_furnace-tuneup_homeowners | {{ad.name}} | Paid Social | |
| Free Facebook post | social | 2026-11_furnace-tuneup | post-tech-tip | Organic Social | |
| Google Ads (Search, Performance Max, Demand Gen) | None, use auto-tagging | None | None | None | Paid Search or Cross-network, set by campaign type |
| Microsoft Ads | bing | cpc | 2026-11_furnace-tuneup | ad-name | Paid Search |
| Email newsletter | newsletter | 2026-11_furnace-tuneup_past-customers | header-button | ||
| Review request email | crm | always-on_review-request | review-link | ||
| Text message | crm | sms | 2026-11_furnace-tuneup_past-customers | link-1 | SMS |
| Google Business Profile website button | organic | gbp_main-location | website-button | Organic Search | |
| Google Business Profile booking link | organic | gbp_main-location | booking-link | Organic Search | |
| QR code on door hanger | door-hanger | qr | 2026-11_furnace-tuneup_eastside | front-panel | Unassigned until you add an Offline channel |
| QR code on truck | truck-wrap | qr | always-on_truck | rear-door | Unassigned until you add an Offline channel |
| Partner (home builder referral page) | harbourview-homes | referral | always-on_builder-partner | footer-link | Referral |
| Paid lead partner | leadpartner-name | affiliate | 2026-q4_lead-partner | listing | Affiliates |
Meta ads: dynamic tags and where they go
Meta's help article on URL parameters says you add them while building the ad: under Tracking, type them into the URL parameters field or click Build a URL parameter. Parameters in that field override a duplicate parameter in the Website URL field. Meta also says that, as of January 1, 2024, some ad traffic may get parameters added automatically, with Campaign Source set to Facebook or Instagram and Campaign Medium set to paid, plus ad, campaign and ad set IDs. Those capitals matter, because GA4 is case sensitive, so set your own lowercase parameters to keep one clean row per source.
Meta's separate page on dynamic URL parameters lists the placeholders that fill themselves in when the ad runs: {{ad.id}}, {{adset.id}}, {{campaign.id}}, {{ad.name}}, {{adset.name}}, {{campaign.name}}, {{placement}} and {{site_source_name}}, plus {{media_type}} for Advantage+ catalog ads only. That page says {{site_source_name}} returns an for Audience Network, fb for Facebook, ig for Instagram, msg for Messenger and th for Threads. It also says dynamic parameters don't work for collection-format ads on Instagram placements.
A practical Meta template is: utm_source=facebook&utm_medium=paid-social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_id={{campaign.id}}. Hard-coding the source as facebook keeps it simple. If you'd rather use {{site_source_name}} to split Facebook from Instagram, check those short codes against Google's downloadable list of social sources first, because a source GA4 doesn't recognize as social won't land in Paid Social.
Two catches from Meta's dynamic parameter page. First, name-based placeholders copy the name used when the ad was first published, spaces included (Meta's own example shows a space rendered as %20). Renaming a campaign later doesn't change the tag, so you have to publish a new campaign, ad set or ad to get a new value. Second, Meta warns that changing URL parameters after publishing may send the ad set back into the learning phase. So name each Meta campaign by the sheet rules (2026-11_furnace-tuneup_homeowners) before you publish it.
How GA4's default channel group sorts traffic
A channel group is a set of rules that puts each visit into a bucket like Paid Search or Email. GA4 ships with one called the default channel group. Google's channel group help page says these definitions aren't case sensitive and can't be edited, though your property's primary channel group can be. The rules for manually tagged traffic mostly look at two things: the source and the medium. Auto-tagged Google Ads traffic follows separate rules based on campaign type.
Many rules depend on a pattern Google calls the paid medium regex, written as ^(.*cp.*|ppc|retargeting|paid.*)$. In plain words, a medium counts as paid if it contains "cp" anywhere (so cpc and cpm qualify), is exactly ppc or retargeting, or starts with "paid" (so paid-social qualifies).
Social, search, video and shopping rules also check the source against lists of known sites. Google publishes those lists as a downloadable spreadsheet linked from the same page. Here are the rules, channel by channel, summarized from Google's page.
| Channel | Rule | Example that lands here |
|---|---|---|
| Direct | Source is exactly (direct) and medium is (not set) or (none) | Someone types your address |
| Organic Search | Source is on Google's search-site list, or medium is exactly organic. Google says this includes AI Overviews and AI Mode | google / organic |
| Paid Search | Source is on the search-site list and medium matches the paid medium regex. Auto-tagged Google Ads Search campaigns land here | bing / cpc |
| Organic Social | Source is on the social-site list, or medium is social, social-network, social-media, sm, social network or social media | facebook / social |
| Paid Social | Source is on the social-site list and medium matches the paid medium regex | facebook / paid-social |
| Source or medium is email, e-mail, e_mail or e mail | newsletter / email | |
| SMS | Source or medium is exactly sms | crm / sms |
| Affiliates | Medium is affiliate | partner / affiliate |
| Referral | Medium is referral, app or link | harbourview-homes / referral |
| Display | Medium is display, banner, expandable, interstitial or cpm. Auto-tagged Google Ads Display campaigns land here | news-site / display |
| Cross-network | Campaign name contains cross-network. Auto-tagged Google Ads Performance Max, App, Smart, Demand Gen and Local campaigns land here | Google Ads Performance Max |
| Paid Video / Organic Video | Video-site list plus paid medium for paid; video-site list or a medium containing video for organic | youtube / paid-video |
| Paid Shopping / Organic Shopping | Shopping-site list or a campaign name matching shop or shopping; paid also needs a paid medium | Rare for service businesses |
| Mobile Push Notifications | Medium ends in push or contains mobile or notification, or source is exactly firebase | app / push |
| Audio | Medium is exactly audio | podcast / audio |
| AI Assistant | Medium is exactly ai-assistant. Visits referred by AI assistants on Google's list (Google names ChatGPT, Gemini, Deepseek, Copilot and Grok as examples) get that medium automatically. AI Overviews and AI Mode are excluded | chatgpt.com referral |
| Paid Other | Paid medium regex matches, but no more specific channel applies | flyer / paid-print |
| Unassigned | No other rule matched | door-hanger / qr |
The paid-social-as-organic trap
This mistake is easy to make and expensive to miss. Someone tags Facebook ads with utm_medium=social, or utm_medium=facebook, or leaves the medium off. Look at the rules above. A medium of social matches Organic Social. So every paid click gets counted as free social traffic. Paid Social shows nothing, organic social looks strong, and nobody can say what the ad spend bought.
Here's an invented example of how it plays out. Bayview Dental spends $1,500 a month on Instagram ads tagged instagram / social. GA4 reports 600 Organic Social sessions and 14 new-patient form fills from Organic Social, and no Paid Social at all. The owner concludes the ads did nothing and the free posts are working. Change the medium to paid-social and new visits from those ads move to Paid Social, where they belong.
Two other versions of the trap: a medium like facebook-ads doesn't match the paid regex (it doesn't start with paid and doesn't contain cp), and a source like fb-ads may not be on Google's social list. Either one can push paid visits into Organic Social or Unassigned. The fix is the approved medium list: paid-social and nothing else for paid social ads.
GA4 can't rewrite the stored source and medium of old visits. Fix the tags, note the date in your sheet, and compare before and after with that date in mind.
Building a custom channel group for offline sources
Flyers, door hangers, truck wraps, yard signs and postcards usually carry a QR code or a short link. Tagged with utm_medium=qr or print, they match no default rule and fall into Unassigned. A custom channel group fixes that.
Google's custom channel group page says standard GA4 properties can create 2 custom groups on top of the predefined one (360 properties get 5), each with up to 50 channels. You need Editor access or above. You build one in Admin, under Data display, Channel groups. Start by copying the default group, then add your channel. Conditions can use Campaign ID, Campaign name, Default channel group, Manual ad content, Medium, Source and Source platform, with exact or regex matching.
Order matters. Google says traffic goes into the first channel whose definition it matches, so put your new channel near the top. Google also says custom channel groups can be applied to your reports retroactively, so old QR visits will sort correctly once the group exists. You can then make your custom group the primary channel group, which is the one GA4 uses across standard reports. Google's page says a newly chosen primary group applies its criteria to future reporting only, not to past data, so set this up early.
- Name the group: Northgate channels
- Add a channel called Offline: Medium matches regex ^(qr|print|direct-mail)$
- Add a channel called Partners if you want referral partners split from random referrals: Medium exactly matches referral and Source matches your partner list
- Drag Offline above Referral and Unassigned
- Save, check the Traffic acquisition report with the new group selected, then set it as primary
GA4 setup step 1: key events and Google Ads conversions
An event is anything GA4 records, like a page view or a click. A key event is an event you've marked as important, such as a booking form submitted or a phone number tapped. Google now uses the word key event for what GA4 used to call conversions, and keeps the word conversion for actions you use in Google Ads to measure campaigns and guide bidding. Google's page lays out the path as Event, then Key Event, then Conversion, and notes that conversions need a linked Google Ads account.
In practice: mark your real lead actions as key events in GA4 (form_submit on the thank-you page, click_to_call, booking_complete). Then, if you run Google Ads, link the accounts and create a Google Ads conversion from the key events you want Google's bidding to chase. Google says you can create one web conversion and one app conversion per key event in each linked Google Ads account.
Be choosy. A plumber who marks page scrolls and video plays as key events will teach Google Ads to buy scrolls. A starting point many practitioners use is one to three key events that match money, such as a booked job, a quote request and a qualified call reported by your call-tracking tool. Keep softer actions as plain events. A business with a long sales cycle, like a remodeler, may add one earlier step (a quote request) so bidding has enough signals. Google also says Google Ads conversions based on key events won't be exported to BigQuery, and it has no plans to add that.
GA4 setup step 2: change data retention to 14 months
GA4 deletes detailed user and event data after a set time. Google's retention page says standard properties can choose 2 or 14 months. 360 properties can keep event data for 26, 38 or 50 months, but their user-level data, including key events, still stops at 14 months. Age, gender and interest data is always kept for only 2 months. The same page says Large and XL properties, which are far bigger than any local business site, are limited to 2 months of event-level data.
This setting affects only explorations and funnel reports, which are the custom analyses you build yourself. Standard reports keep their totals. But the day you want to compare this winter's furnace leads against last winter's in an exploration, 2 months of data won't get you there.
Go to Admin, Data collection and modification, Data retention, choose 14 months, and leave Reset on new activity turned on. Google says that toggle restarts a user's clock each time they send a new event. Google also says a longer setting applies to data you've already collected that hasn't been deleted yet, and changes take effect after 24 hours. Anything older than the old window is already gone, so change it on day one.
GA4 setup step 3: link BigQuery
BigQuery is Google's cloud database. Linking it sends a full copy of your raw GA4 events there each day, which you own and can query long after GA4's retention window has passed. Google's BigQuery export page says standard properties have a daily export limit of 1 million events. A local service business with a few thousand visits a month will sit far below that.
Google's setup page says data should start flowing within 24 hours of linking, and each daily export holds the previous day's data. It describes no way to fill in history from before the link, and it says that if a property keeps going over the daily limit and the export pauses, previous days' exports won't be reprocessed. So link it on day one. You need Editor access in GA4 and Owner access on the Google Cloud project to create the link.
Watch the sandbox trap. Google's export page lets you use the free BigQuery sandbox, but Google Cloud's sandbox page says sandbox tables automatically expire after 60 days and storage has a 10 GiB lifetime cap. That's fine for a trial and useless as a long-term archive. For a real archive, turn on billing for the Google Cloud project. Google's export page says each export incurs BigQuery storage and processing costs, and the sandbox page says the monthly free query allowance is 1 TiB, the same as the free tier. Skip the optional streaming export: Google charges $0.05 per gigabyte for it, with 1 GB roughly equal to 600,000 events, and the daily export is enough for a local business.
GA4 setup step 4: attribution model choices that still exist
Attribution is how GA4 splits credit for a key event when someone touched several channels before booking. Google's attribution pages say the first click, linear, time decay and position-based models are no longer available as of November 2023.
Three choices remain. Data-driven uses your own data and machine learning to share credit across touches, and Google says conversions can be reattributed for up to 7 days after they happen, so recent numbers can shift a little. Paid and organic last click, which Google also calls last non-direct click, gives all credit to the last channel clicked before the key event and ignores direct visits. Google paid channels last click gives all credit to the last Google Ads click, and falls back to paid and organic last click when there was no Google Ads click.
You also pick a lookback window, which is how far back GA4 looks for touches. Google's attribution settings page says acquisition key events (first_visit and first_open) default to 30 days with a 7-day option, and all other key events default to 90 days with 30- or 60-day options. Google adds that the window you choose also applies to session attribution.
A decision rule, as a starting point: keep data-driven if you get dozens of key events a month across several channels. If you get only a handful, data-driven has little to learn from, so read paid and organic last click alongside it to sanity-check. Match the lookback to your sales cycle: the 90-day window suits a kitchen remodeler where people shop for weeks, while an emergency plumber's customers usually book within a day, so window length matters less.
GA4 setup step 5: Consent Mode and its modeling thresholds
Consent Mode is a Google setting that tells your tags what each visitor agreed to in your cookie banner. Google's developer guide names four signals: ad_storage and analytics_storage, plus ad_user_data and ad_personalization, which the guide presents as the two parameters added in consent mode v2. Each is set to granted or denied. You must call the default command on every page before any command that sends measurement data, then send an update when the visitor chooses. Google's guide says to load the default consent snippet first, then the Google tag, then your consent tool, and warns that if the consent code runs out of order, the defaults won't work.
You can implement Consent Mode in a basic or an advanced way. Google's consent mode overview says that in basic mode, Google tags don't load until the visitor interacts with the banner, and if they don't consent, nothing is sent to Google, not even the consent choice. In advanced mode, tags load when the page opens and send cookieless signals while consent is denied. Google's modeling page says only that advanced setup, where tags load in all cases, lets GA4 estimate the missing visitors, which Google calls behavioral modeling.
Google's modeling page sets the bar. Consent Mode must be on across all pages, your property needs at least 1,000 events a day with analytics_storage denied for at least 7 days, and at least 1,000 daily users with analytics_storage granted on at least 7 of the previous 28 days. Google adds that meeting those numbers doesn't guarantee eligibility, and training can take longer than 7 days. To see modeled data you also need to set Reporting identity to Blended in Admin, under Data display.
Many local service businesses won't reach 1,000 consenting users a day. For them, modeling won't switch on, and denied visits are simply missing from reports. Plan for that: GA4 will undercount, and your call log and booking system stay the source of truth for lead counts. Whether you need a banner at all depends on where your visitors live. Google's guide tells you to check your company's guidelines when choosing an implementation and defaults, so ask whoever handles your legal pages.
GA4 setup step 6: test with Realtime, Tag Assistant and DebugView
Never launch a campaign without clicking your own tagged link first. Google's help pages describe three tools.
The Realtime report shows user activity during the past 30 minutes. Open your tagged link in a private browser window, then check Realtime for your source, medium and campaign. If they show up as you typed them, the tag works.
Tag Assistant, at tagassistant.google.com, connects to your site and adds a parameter to the address that turns on debug mode for your own device. Google's DebugView page says you then see events from the last 60 seconds in a Seconds stream and the last 30 minutes in a Minutes stream. Fill in your contact form and watch for the key event to appear with the right parameters.
Two warnings from Google: if you use Consent Mode and haven't accepted Analytics cookies in your test browser, events won't appear in DebugView, so accept the banner when testing. And Google says many reports and explorations can take 24 to 48 hours to process, so don't panic if a new campaign is missing from yesterday's report on the first morning.
Worked example: tagging a fall campaign end to end
Greenline Cleaning, an invented cleaning company, launches a move-out cleaning offer in November 2026. It runs Meta ads, one email, one text blast and a postcard with a QR code.
Campaign name, from the sheet: 2026-11_move-out-clean. Meta tag: facebook / paid-social / {{campaign.name}}, with the Meta campaign named 2026-11_move-out-clean before it's published. Email: newsletter / email / 2026-11_move-out-clean / header-button. Text: crm / sms / 2026-11_move-out-clean / link-1. Postcard: postcard / qr / 2026-11_move-out-clean / back-side, pointing to a short page address so the QR code stays simple.
Before launch, the owner opens each link in a private window and checks Realtime. Facebook shows as Paid Social, email as Email, text as SMS. The postcard shows as Unassigned in the default group and as Offline in the custom group built earlier. After four weeks, the Traffic acquisition report, filtered to campaign 2026-11_move-out-clean and switched to the custom channel group, shows sessions and booking key events for each channel side by side. Divide each channel's spend by its bookings and you have cost per booking. Say Meta cost $900 and GA4 shows 12 bookings from Paid Social: that's $75 per booking (invented figures). Check that total against the booking system, since GA4 misses visitors who declined cookies.
Setup checklist
Use this list to set up a new property or to audit an agency's work. Every line is something you can check yourself in a few minutes.
| Step | Where | Done when |
|---|---|---|
| UTM sheet exists and is the only place links are built | Shared spreadsheet | Every live campaign link is in it |
| All UTM values lowercase, no spaces | UTM sheet | Traffic acquisition report shows no mixed-case duplicates |
| Paid social uses paid-social medium | Meta Ads Manager, Tracking section of each ad | Paid Social channel shows sessions |
| Meta campaigns named by the sheet before publishing | Meta Ads Manager | utm_campaign values in GA4 match the sheet |
| Google Ads auto-tagging on, no manual UTMs on Google Ads links | Google Ads, Admin, Account settings, Auto-tagging | gclid appears on ad landing URLs, including after any redirect |
| Google Business Profile links tagged google / organic | Business Profile, website and booking links | Campaign gbp_main-location appears in reports |
| Key events marked for real lead actions only (1 to 3 as a starting point) | GA4 Admin, Events | Test form fill shows as a key event in DebugView |
| Google Ads conversions created from key events | GA4 or Google Ads, linked accounts | Conversions appear in Google Ads |
| Data retention set to 14 months | GA4 Admin, Data collection and modification, Data retention | Setting reads 14 months |
| BigQuery linked with daily export to a billed project, not the sandbox | GA4 Admin, Product links | Daily tables appear in BigQuery and have no 60-day expiry |
| Attribution model and lookback window chosen on purpose | GA4 Admin, Attribution settings | Someone can say why |
| Consent Mode defaults set before other tags | Consent banner tool or tag manager | Tag Assistant shows consent state on page load |
| Custom channel group with Offline channel | GA4 Admin, Data display, Channel groups | QR visits show as Offline |
| Payment, booking and email-flow domains on the unwanted referrals list | GA4 Admin, Data streams, Configure tag settings, List unwanted referrals | Your own processors don't appear as referral sources |
| Every new link tested in Realtime before launch | GA4 Realtime | Source, medium and campaign match the sheet |
Troubleshooting (not set), Unassigned and self-referrals
These are the problems you're most likely to meet when you audit a GA4 property. Google's help pages explain most of the causes. Work through the table from the top.
| Symptom | Likely cause | Fix |
|---|---|---|
| Landing page shows (not set) | Google says this appears when a session has no page_view event | Check that the Google tag records a page view on every page, including thank-you and booking pages |
| Source / medium shows (not set), and those sessions sit in Unassigned | Google says sessions are missing the session_start event, often because the Google tag in Tag Manager isn't on the Initialization trigger | In Tag Manager, set the Google tag to fire on Initialization - All pages, remove the old trigger, publish |
| Source / medium (not set) after adding a consent banner | Google says using the default command for consent changes after the banner loses the first session_start event | Have the banner send the update command when the visitor chooses |
| Campaign shows (not set) on tagged traffic | A UTM parameter was left off the link | Fill every required column in the sheet; Google says missing parameters show as (not set) |
| Google Ads campaign shows (not set) | Google lists an unlinked Google Ads account, auto-tagging turned off, or incomplete manual tags | Link the accounts and turn auto-tagging on |
| Large Unassigned channel | A custom medium (qr, print, fb-ads) matches no default rule, or session_start is missing | Change mediums to the approved list, or add a custom channel for them; fix the Initialization trigger if source / medium is also (not set) |
| Paid ads appear in Organic Social | Medium is social, or doesn't match the paid regex | Use utm_medium=paid-social |
| Your own domain shows as a referral source | Visitors cross between two domains you own without cross-domain measurement, or the tag is missing on some pages | Set up cross-domain measurement and tag every page; Google says a referrer on the same domain or its subdomains isn't counted as a referral |
| Payment processor or booking tool shows as a referral and steals credit | Customers leave to pay or book, then return | Add the domain to List unwanted referrals in the data stream's tag settings; Google allows up to 50 per stream |
| Past visitors still credited to an excluded domain | Under last non-direct click, a returning visitor's earlier session from that domain can still get credit | Expected; Google's page explains this, and it fades as the lookback window passes |
| Internal links carry UTMs and later visits get the wrong source | Someone tagged a menu or banner link on your own site | Remove UTMs from internal links; Fedorovicius warns they distort attribution |
| Campaign split into several rows | Mixed case or different spellings, including Meta's auto-added Facebook / paid tags | Lowercase everything going forward, set your own Meta parameters, and use report filters to combine old rows |
Real examples
Google's GA4 help page on campaign data gives the full list of supported UTM parameters, warns that values are case sensitive, and recommends lowercase as the standard.
SourceJulius Fedorovicius recommends always including source, medium and campaign, using a consistent lowercase convention, following Google's default channel rules, and never tagging internal links.
SourceMeta lists every dynamic URL parameter, the site source codes (an, fb, ig, msg, th), and explains that name-based values lock to the name used at first publish.
SourceCommon mistakes
- Tagging paid Facebook or Instagram ads with utm_medium=social, which sends every paid click to Organic Social.
- Adding manual UTMs to Google Ads links while auto-tagging is on; Google says auto-tagging takes precedence in GA4, so the setup isn't clean.
- Putting UTM tags on links inside your own website, which Julius Fedorovicius warns can overwrite the real source of a later visit.
- Using capitals or spaces in UTM values, which splits one campaign into many rows.
- Renaming a live Meta campaign and expecting the tag to change; Meta says name-based parameters keep the name from first publish.
- Inventing mediums like qr or fb-ads without a custom channel group, which fills the Unassigned channel.
- Leaving data retention at 2 months and only noticing when a year-over-year exploration comes up empty.
- Linking BigQuery to the sandbox and assuming it's an archive, when sandbox tables expire after 60 days.
- Marking soft actions like scrolls or video plays as key events, then importing them into Google Ads as conversions for bidding.
- Skipping a test click in Realtime before a campaign goes live.
Start on it yourself
- Create the UTM sheet with the parameter rules, approved medium list and source template from this chapter.
- Add the Meta URL parameter template at the ad level, and name new Meta campaigns by the sheet before publishing (live ones keep their original names in the tag).
- Confirm Google Ads auto-tagging is on and remove any manual UTMs from Google Ads links.
- Tag Google Business Profile website and booking links with google / organic.
- Mark one to three lead actions as key events, then create Google Ads conversions from the ones you want bidding to use.
- Set data retention to 14 months.
- Link BigQuery with the daily export to a Google Cloud project with billing turned on.
- Choose and write down your attribution model and lookback window.
- Set Consent Mode defaults and check them in Tag Assistant.
- Build a custom channel group with an Offline channel and make it primary.
- Add payment, booking and email-flow domains to the unwanted referrals list.
- Test every new tagged link in Realtime before launch.
Questions
Should I add UTMs to my Google Ads?
No, if auto-tagging is on. Google's help page says auto-tagging takes precedence over manual tags in GA4 because there's no override option, and that some browsers need auto-tagging to track conversions.
Why does Google Business Profile traffic need tags?
Clicks from your profile can be hard to tell apart from other Google visits. Tagging the website and booking links with google / organic keeps them in Organic Search, since GA4's rules put a medium of exactly organic there, while a campaign value like gbp_main-location lets you filter for them.
Do UTM values need to match GA4's channel names?
The medium does, if you want visits sorted correctly by the default channel group. Fedorovicius recommends following Google's default channel group documentation, or else building a custom channel group for anything that doesn't fit.
Meta already adds tags to my ads. Do I still need my own?
Yes. Meta says that since January 1, 2024 it may add Campaign Source set to Facebook or Instagram and Campaign Medium set to paid. Those values are capitalized and don't include your campaign naming, so setting your own lowercase parameters keeps reports clean. Meta says parameters in the URL parameters field override duplicates in the Website URL field.
Will Consent Mode modeling fill the gaps for my small site?
Probably not. Google requires at least 1,000 daily users with analytics consent granted on 7 of the last 28 days, plus at least 1,000 denied events a day for 7 days, and even then doesn't guarantee it. Many local businesses are below that, so plan on GA4 undercounting and keep your booking system as the lead count.
Can I fix data that was tagged wrong last month?
Not in GA4's stored data. A custom channel group can re-sort old visits by their source and medium, and Google says custom groups apply to reports retroactively. But a wrong source or campaign name stays wrong.
Is the 14-month retention limit a problem for year-over-year reports?
Only for explorations and funnel reports. Google says standard reports aren't affected. If you need raw history beyond 14 months, the BigQuery export keeps it, as long as it isn't in the sandbox, where tables expire after 60 days.
Sources
- Google Analytics Help: Collect campaign data with custom URLs (UTM parameters)
- Google Analytics Help: Default channel group rules
- Google Analytics Help: Custom channel groups
- Google Analytics Help: Data retention
- Google Analytics Help: BigQuery Export
- Google Analytics Help: Set up BigQuery Export
- Google Cloud: BigQuery sandbox
- Google Analytics Help: Behavioral modeling for consent mode
- Google Analytics Help: Get started with attribution
- Google Analytics Help: Select attribution settings (models and lookback windows)
- Google Analytics Help: Key events vs conversions
- Google Analytics Help: Identify unwanted referrals
- Google Analytics Help: Monitor events in DebugView
- Google Analytics Help: Confirm that you're collecting data
- Google Analytics Help: (not set) values in reports
- Google Analytics Help: Collection limits
- Google Tag Platform: Set up consent mode
- Google Tag Platform: Consent mode overview (basic vs advanced)
- Google Ads Help: About auto-tagging
- Meta Business Help Center: Add URL parameters to your Meta ads
- Meta Business Help Center: Specifications for dynamic URL parameters
- Julius Fedorovicius, Analytics Mania: UTM parameters in Google Analytics 4 (updated June 9, 2026)