# Google tag and GA4 rules: R03, R05, R08, R13, R19, R20

Checked on 2026-11-01 against Google's page view, (not set), Conversion Linker, server-side and Google tag config references and the GA4 limits and naming pages; the DebugView help and the built-in Debug Mode variable re-checked on 2026-11-02; the GA4 limits and naming pages, the tag sequencing help and the Tag Manager release notes re-checked on 2026-11-06. GA4 limits change; fetch the live pages before quoting a number to the user.

## Destination tags and the Settings tab (12 October 2026)

- Google Analytics is still set up with a Google tag (`googtag`). Google Ads, Floodlight and Merchant Center get destination tags, and Tag Manager can provision one when an event tag has no destination or Google tag for it.
- Destination tag type codes are not confirmed in public docs. The script reports any type it does not know as unclassified and does not read IDs inside it. Check unclassified tags in the UI before judging them.
- The Settings tab holds Google destinations and central settings (consent override, default consent, automatic event detection, domains, user-provided data, internal traffic, unwanted referrals, session timeout, cookies). Central settings do not apply to data a Google tag in the container sends, and destination permissions are not versioned, so a rollback does not restore them.

## R03 duplicate-google-tags

- FAIL P2: two or more Google tags load the same ID and at least two fire on every page.
- FAIL P2: a G- ID with no page view sender: every Google tag for it sets `send_page_view` false and no GA4 event tag sends page_view to it, so sessions start without a landing page view. Google documents that `send_page_view: false` stops the configuration page view only; enhanced measurement's history option covers route changes, not the first page.
- WARN P2: duplicate Google tags on narrower triggers; Custom HTML that loads gtag.js or gtm.js or calls `gtag('config')`; a manual page_view to an ID whose Google tag keeps the automatic page view; page_view on a history change trigger (doubles with enhanced measurement's history page views); a GA4 event to an ID with no Google tag in the container; two manual page_view tags that can fire on the same event.
- Agent adds: only Google tags for a G- ID count as page view senders; a Google tag for an AW- ID sends no GA4 page views. Count senders outside the container too (theme snippet, platform app, gateway) with `scripts/page-inventory.js`. Google's tag ordering help also warns against a standalone client-side path and a server-side path for one property.
- Confirm: one page load in a fresh profile, DevTools Network filtered on collect: one `en=page_view` per measurement ID; in a single-page app, one per route change.

## R05 conversion-linker

- WARN P3: Google Ads or Floodlight tags and no active Conversion Linker, or a linker that does not fire on every page.
- FAIL P2 (agent, at runtime): a landing URL with a test gclid stores no click data in Preview (no `_gcl` cookies or local storage).
- PASS: an active linker on every page.
- Why WARN by default: the Conversion Linker help says a Google tag or destination tag on every page replaces the linker, while the conversions developer guide says to keep a linker with a Google tag. The runtime test decides, and a refuted finding leaves the score through the evidence file. Since 10 April 2025, containers with Google Ads and Floodlight tags load a Google tag first, but only where such a tag fires, so an ad landing page without one is not covered. The linker has also stored click data in browser local storage since 7 November 2024.

## R08 tag-sequencing

- FAIL P2: a setup or cleanup tag name that does not exist.
- WARN P3: a paused setup tag; a Custom HTML setup tag that changes the data layer with `dataLayer.push()` (Google: setup tags must use `google_tag_manager[{{Container ID}}].dataLayer.set()`, because a push is not seen until the following event); a GA4 event that can fire on an earlier phase than any Google tag for its ID; no Google tag for a G- ID on Initialization - All Pages (Google names that trigger for the Google tag in its (not set) help).
- Phases: Consent Initialization, Initialization, Page View, DOM Ready, Window Loaded, then other events. A wildcard custom event trigger counts from the earliest built-in event it matches.
- Agent adds: where the setup tag is a prerequisite (consent, identity), check that its "Don't fire ... if ... fails" box is ticked (`stopOnSetupFailure` in the file).
- Confirm: in a fresh session the first collect request for the ID carries session_start and later requests share its session ID.

## R13 server-transport

- FAIL P2: `server_container_url` or `transport_url` over plain HTTP.
- FAIL P2, needs `--server-destinations`: a browser event tag for a vendor the server container also sends has no event ID (the Meta template's event ID field empty, or `fbq('track', ...)` without the eventID option; event_id fields for other vendors). Meta pairs a browser and server copy only when the event name and event ID match. Give vendor names (`meta`) to check their purchase and lead events, or `meta:Purchase|Lead` to name the events the server sends; base page views are skipped unless listed.
- WARN P3: Google tags for one ID on different routes; a server URL on a hosting provider's domain (`*.stape.io`, `*.run.app`, `*.appspot.com`) instead of a subdomain of the site, so its cookies are not first-party; an event ID generated in the browser by a random or time-based variable (confirm the server receives this value rather than generating its own).
- PASS: the route per ID, including Google Ads and Floodlight IDs that no server-routed Google tag covers.
- Agent adds: fill [../assets/server-handoff-template.md](../assets/server-handoff-template.md) and hand server internals to server Preview and the host's request logs.
- Confirm: one test purchase; the browser Meta request carries eventID X, the server event carries the same ID, and Events Manager test events shows the pair deduplicated.

## R19 ga4-naming-and-limits

- FAIL P2: an event name that does not start with a letter, uses characters other than letters, numbers and underscores, or is over 40 characters (GA4 does not process it; non-English letters are allowed); a reserved event prefix (firebase_, ga_, google_, query_id) or a reserved automatic name sent manually (session_start, first_visit, user_engagement, first_open, app_remove, app_store_refund, app_store_subscription_cancel, app_store_subscription_renew, in_app_purchase, ad_impression, error); a parameter name with a reserved prefix (_, firebase_, ga_, google_, gtag.) or over 40 characters; more than 25 parameters on one event (100 on Analytics 360: pass `--ga4-param-limit 100` or `ga4ParamLimit`), counting the Google tag's shared event settings and event settings variables; a user property name over 24 characters or with a reserved prefix.
- FAIL P2, needs `--key-events`: a key event no tag sends exactly while a tag sends a case or separator variant (`generate_lead` versus `Generate_Lead`). The key event stays at zero and any Google Ads import of it records nothing.
- WARN P3: enhanced measurement names sent manually (click, scroll, file_download, form_start, form_submit, video_start, video_progress, video_complete, view_complete, view_search_results), which double when the stream setting is on. Google's enhanced measurement page says video_complete and its naming page prints view_complete, so both are read. Google's event naming page lists most of them as reserved on web streams while allowing them when you create or modify events in GA4, so confirm a manual one arrives in Realtime. Also names that differ only by case across tags; more than 25 distinct user properties (100 on Analytics 360); a key event no tag sends (fine when it is automatic, Measurement Protocol or server-side).
- PASS: manual page_view is allowed. Google's page view guide has a manual route for single-page apps, although the naming page also lists page_view as reserved. Duplication is R03's job.
- Forwarders: names come from their anchored allowlist triggers; a forwarder on All Pages sends `gtm.js`, which fails the name rule.
- Script limits: exact reserved parameter names such as currency and user_id are not failed; the naming page bars them only from custom definitions.
- Confirm: GA4 Realtime or the GA4 MCP server's realtime report (dimension eventName) after a test shows the exact name once.

## R20 google-tag-settings

Rows are read from Google tags, GA4 event tags and the settings variables they reference. A finding in a shared variable is reported once, on the variable.

- FAIL P2, raised to P1 when `--ga4-developer-filter active`: `debug_mode` set to a literal (any value, false included) or to a Constant. Google's DebugView help says setting it to false does not turn debug mode off; with an Active Developer traffic data filter, GA4 excludes that traffic and never processes it. The same FAIL applies to the built-in Debug Mode variable used directly: it returns false outside Preview.
- WARN at the same priority: `debug_mode` from any other variable, such as a Lookup Table on {{Debug Mode}} that returns true in Preview and undefined for everyone else. That is the usual tester pattern and follows Google's advice to leave the parameter out rather than set it to false. Read the variable's logic and default: it must return undefined (never true or false) for ordinary visitors. Then check a production request sent without Tag Assistant.
- FAIL P1: `user_id` from a variable whose name or definition looks like personal data. Google says user_id must not itself be personal data.
- FAIL P2: `user_id` set to a literal (every visitor shares one ID); `ignore_referrer` set to literal true; `campaign_source`, `campaign_medium`, `campaign_name`, `campaign_id`, `campaign_term` or `campaign_content` set to literals (every session's source is rewritten).
- WARN P2: different `cookie_prefix` or `cookie_domain` across Google tags for one ID (two sets of cookies, two users).
- WARN P3: `cookie_expires` 0 (session cookies inflate users, per Google's config reference); `cookie_update` false; `cookie_domain` other than auto; `page_location`, `page_referrer` or `client_id` overridden; `ignore_referrer` or campaign fields from variables (confirm they are empty except where intended, such as payment returns); a `linker` object, which overrides the domain list in the GA4 stream settings.
- INFO: `allow_google_signals` or `allow_ad_personalization_signals` false; record it as a decision.
- Agent adds: read the GA4 data filter states (outside the file) and set `ga4DeveloperFilter` in the config so the priority is right in every later run.
- Confirm: outgoing collect requests in production, in a fresh profile without Tag Assistant, carry no debug flag (Preview and Tag Assistant always add it for the tester); a screenshot of the data filters shows the Developer traffic state.
