Tags: analytics platform

GA4

Checked: 2026-10-29


Google Analytics 4: a free, hosted event store with a reporting layer on top. Everything arrives as a named event with parameters; sessions, users, channels and attribution are computed afterwards by Google’s processing — so most GA4 confusion is about which processing step a number has been through.


§0 The one idea

The event is the only unit. Sessions and users are derived.

vs Universal Analytics (UA, the previous generation): UA was built around the session. Each hit had a type — pageview, event, transaction — and events were a fixed Category / Action / Label triple bolted onto a session-shaped model. GA4 has no hit types: a page view is just an event called page_view, a purchase is an event called purchase, and the session is reconstructed from an ID stamped on each event — Page Views vs Events, Events and Properties.

UNIVERSAL ANALYTICS                 GA4
───────────────────                 ───
session                             event ── name + params
  ├─ pageview hit                     │
  ├─ event hit (cat/act/label)        ├─ ga_session_id param  → session (derived)
  └─ transaction hit                  ├─ user_pseudo_id       → user    (derived)
                                      └─ items[] (ecommerce)
session = the row                   event = the row

What that buys: any event can carry any parameters, so the schema is yours. What it costs: every count you look at in the interface has been through a processing step — sessionisation, identity resolution, attribution, approximation, thresholding, modelling — and each step is a place two numbers can disagree — Tool Discrepancies.

The tag itself (gtag.js, Google Tag Manager, the G- ID, the rename history) is orientation — Google Measurement Stack, Google Tag Manager.


At a glance

Unit of dataEvent + parameters. No hit types
ContainerProperty, fed by data streams (web / iOS / Android)
Web identifierMeasurement ID, G-XXXXXXXXXX
Parameters per event25 (360: 100)
Event / parameter name length40 characters
Parameter value length100 characters (page_location 1,000)
Custom dimensions50 event · 25 user · 10 item (360: 125 · 100 · 25)
Key events30 (360: 50) — formerly “conversions”
Session timeout30 min default, up to 7 h 55 min
Explorations retention2 or 14 months (360: up to 50)
Exploration samplingAbove 10M events per query (360: up to 1B)
Attribution modelsData-driven · paid and organic last click · Google paid channels last click
Raw dataBigQuery export — 1M events/day cap on standard — BigQuery
Server-side sendingMeasurement Protocol
A/B testingNone native. Optimize closed 30 Sep 2023

Resource model

Google Analytics account          ← billing-free container; usually one per company
└─ Property                       ← the unit everything is configured on:
   │                                 retention, identity, timezone, currency,
   │                                 custom definitions, key events, links
   ├─ Web data stream             → Measurement ID  G-XXXXXXXXXX
   │    └─ tag settings: cross-domain, unwanted referrals,
   │       internal traffic rules, session timeout, enhanced measurement
   ├─ iOS app stream              → Firebase app ID
   └─ Android app stream          → Firebase app ID

Links (property level): BigQuery · Google Ads · Search Console · …

The decision that matters is what goes into one property. A property is the boundary of a user: web and app streams in the same property can be reported as one journey; two properties are two user bases that never meet. Same logic as Adobe’s “one global report suite” — Adobe Analytics.

Configuration is split between two places, which is half of why the admin feels incoherent: property settings (Admin → Data settings / Data display) and web stream tag settings (Admin → Data streams → the stream → Configure tag settings). Cross-domain, unwanted referrals, internal traffic IP (Internet Protocol) address rules and session timeout live in the second.

Property settings that change the numbers

SettingOptionsWhat it does to the data
Data retention2 or 14 months (360: 2, 14, 26, 38, 50)Applies to explorations and funnel reports only, not standard reports. Default 2 months [CHECK: default still 2 months]. “Reset on new activity” restarts a user’s clock on each event
Reporting identityBlended · Observed · Device basedWhich IDs define “a user” in reports. Switchable any time, no permanent effect — it’s a reporting lens, not collection
Timezone / currencyOne eachTimezone sets the day boundary and the BigQuery event_date — Timezones and Date Boundaries
Google signalsOn / offCollects signed-in Google user data for demographics and ads; data expires after 26 months. Removed from reporting identity in Feb 2024, so it no longer deduplicates users in reports
Data filtersInternal traffic · developer traffic · web hostnamePermanent and forward-only — excluded data never reaches reports or BigQuery — Bot and Internal Traffic
Cross-domainList of domainsDecorates outbound links with a _gl parameter so the client ID survives the hop
Unwanted referralsList of domainsStops a payment provider’s return redirect claiming the session
Session timeoutDefault 30 min, max 7 h 55 min— Sessionisation
Engaged session timerDefault 10 s [CHECK: adjustable range — commonly cited as 10–60 s]Changes engagement rate overnight
Key eventsMark any eventThe successes; feed attribution and Ads

Reporting identity, in order of fallback:

Blended      User-ID → device ID → modelling
Observed     User-ID → device ID
Device based device ID only

Blended is the only one that shows consent-mode modelled data — .

Key events were called conversions until March 2024. Renamed because a GA4 “conversion” and a Google Ads “conversion” were counted differently and disagreed. Now: a key event is GA4’s; a conversion is a key event shared with Google Ads, reported under Advertising. Historical conversion data appears as key events.

Data filters’ trap: a filter in Active state deletes for good. Create it in Testing first — tested traffic is labelled, not dropped, and you can check the label in reports before activating [CHECK: testing state still labels via a “Test data filter name” dimension].


The event model

Four kinds of event

KindWho defines itExamplesNotes
Automatically collectedGoogle, always onfirst_visit, session_start, user_engagementCan’t be turned off
Enhanced measurementGoogle, per-stream togglepage_view, scroll, click, view_search_results, file_download, video_start/progress/complete, form_start, form_submitHeuristic; often wrong on a single-page app or a custom form
RecommendedGoogle names it, you send itview_item, add_to_cart, begin_checkout, purchase, login, sign_upUse the exact names — reports and Ads features key off them
CustomYouquiz_complete, experiment_exposureAnything else

Enhanced measurement triggers worth knowing:

  • page_view — on load and on browser history changes (pushState, replaceState, popstate). So an SPA (single-page application) gets virtual page views for free — and doubles them if your code also sends one
  • scroll — once per page, at 90% depth. One threshold, not a depth distribution
  • click — outbound links only; domains in the cross-domain list are excluded
  • view_search_results — URL (web address) query parameters q, s, search, query, keyword, plus any you add
  • form_start / form_submit — fires on native form events; AJAX (JavaScript-driven, no page reload) forms that never submit are missed or double-counted

Every web event carries page_location, page_referrer, page_title, language, screen_resolution; session_start and first_visit also carry ga_session_id, ga_session_number.

An event as data

What you send (gtag syntax, a recommended ecommerce event):

gtag('event', 'purchase', {
  transaction_id: 'T-90211',   // deduplication key — GA4 drops repeats of the same ID
  value: 39.97,                // order value, the revenue metric
  currency: 'GBP',             // required alongside value, or revenue isn't recorded
  coupon: 'AUTUMN10',
  items: [                     // item-scoped array, same shape on every ecommerce event
    { item_id: 'SKU-236', item_name: 'Mug', price: 9.99,  quantity: 1 },
    { item_id: 'SKU-473', item_name: 'Tea', price: 14.99, quantity: 2 }
  ]
});

What GA4 stores — one row, the parameters as a key–value list, the items as a nested array:

event_name  purchase
event_params
  ├─ transaction_id   'T-90211'
  ├─ value            39.97
  ├─ currency         'GBP'
  ├─ coupon           'AUTUMN10'
  ├─ page_location    'https://…/checkout/thanks'   ← added automatically
  └─ ga_session_id    1730091200                    ← added automatically
items
  ├─ {SKU-236, Mug, 9.99, 1}
  └─ {SKU-473, Tea, 14.99, 2}
user_pseudo_id  1834.1730091                        ← from the _ga cookie

What to notice: the session and the user are just parameters on the row. Nothing called “a session” was sent. Schema design for the items array, and the item-versus-variant decision — Ecommerce Event Schema, The Data Layer.

Collection limits

Standard property; 360 raises several — .

LimitValue
Event name length40 characters — longer can’t be a key event
Distinct event namesNo limit on web; 500 per app user
Parameters per event25
Item-scoped custom parameters per ecommerce event27
Parameter name length40 characters
Parameter value length100 characters — page_title 300, page_referrer 420, page_location 1,000
User properties25 per property; name 24 chars, value 36 chars
User-ID length256 characters
Events per user per day100,000 (tag or SDK — software development kit — collection)
Sessions per user per day2,000

Truncation is silent. A 140-character product name in a parameter arrives as 100 characters; nothing errors. Lengths count the encoded URL — so a page_location heavy with % escapes runs out sooner than it looks.

Naming: names are case-sensitive (Purchase and purchase are two events), and some prefixes and names are reserved [CHECK: reserved prefixes — ga_, google_, firebase_ — and the reserved-name list]. Enforce one convention in a tracking plan — Tracking Plans.

Custom dimensions and metrics — the registration step

Sending a parameter is not enough for it to appear in reports. A custom parameter is collected and stored, but standard reports and explorations only show it once you register it as a custom dimension or metric (Admin → Custom definitions).

gtag sends  { event: 'sign_up', plan: 'pro' }
              │
              ├──→ BigQuery export:  plan = 'pro'  ✓ always, registered or not
              │
              └──→ GA4 reports:      plan  ✗ invisible
                         │
                    register "plan" as event-scoped dimension
                         │
                         ▼
                   reports show plan — from registration onward
                   (24–48 h to appear; earlier data stays invisible)

Not retroactive [CHECK: confirm Google still states registration applies forward only]: register on day one, from the tracking plan, not when someone first asks for the report.

ScopeHoldsStandard360
EventA value describing this event50125
UserA value describing the user (a user property), applied to their later events25100
ItemA value on one entry in items[]1025
Custom metricsNumeric event parameters50125
Calculated metricsFormulas over metrics550
  • Registration is property-wide by parameter name, not per event — register plan once and it covers every event that sends plan. Consistent parameter names across events save quota
  • Deleting frees a slot only after 48 hours
  • Don’t register IDs, timestamps or session IDs — high-cardinality values push rows into (other) — Cardinality. A per-user ID belongs in User-ID, not a dimension
  • Numeric-looking strings are converted: "9343.324234" becomes 9343.32. Prefix SKUs that look like numbers

User properties and User-ID

  • User property — gtag('set', 'user_properties', { tier: 'gold' }). Sticks to the user’s subsequent events. Registered as a user-scoped dimension
  • User-ID — gtag('config', 'G-XXXX', { user_id: 'u_8812' }). Your own login ID; top of every reporting identity. Never an email address or anything personally identifying — Google’s policy prohibits it, and UK GDPR (General Data Protection Regulation) treats it as personal data regardless — UK GDPR and PECR for Analytics

Sessions and users

GA4’s choices; the general mechanisms are Sessionisation, User Counting, Engagement Metrics.

Sessions

  • Started by session_start, fired when a page or screen is viewed with no active session
  • Identified by ga_session_id — the Unix timestamp in seconds of the session start, stored as a parameter on every event. Not unique on its own: a session is user_pseudo_id + ga_session_id
  • Ended by inactivity — 30 minutes default
  • Does not restart at midnight or on a new campaign — the big change from UA. A user who returns via a different UTM (Urchin Tracking Module) campaign within the timeout stays in the same session, credited to the source on session_start [CHECK: confirm current wording that campaign change doesn’t split a GA4 session]
  • No maximum length

The session is computed client-side by the tag, not server-side. The cookie holds the session ID and the tag decides when it’s expired. Which means Measurement Protocol events can’t start a “real” session — .

Engaged sessions, and bounce rate redefined

An engaged session is one that meets any of:

  • lasts longer than 10 seconds (the adjustable timer)
  • has a key event
  • has 2 or more page or screen views

Engagement rate = engaged sessions ÷ sessions. Bounce rate = 1 − engagement rate.

1,000 sessions
  380 single page view, under 10 s, no key event   → not engaged
  620 everything else                              → engaged

engagement rate  620 / 1,000 = 62%
bounce rate      380 / 1,000 = 38%

Why a GA4 bounce rate isn’t comparable to a UA one: UA counted a single-page session as a bounce even if the visitor read for five minutes. GA4 counts that five-minute reader as engaged. Same site, lower bounce rate, no change in behaviour. And raising the timer to 30 s moves the number again with nothing on the site changing — note the setting next to any engagement figure you report.

Users

IDWhere it comes fromScope
user_pseudo_id / client IDFirst-party _ga cookie, set by the tagOne browser
User-IDYou, on loginAcross devices, logged-in only
ModelledConsent-mode behavioural modellingFills consent-denied gaps (Blended only)

Google signals no longer joins users in reports (since Feb 2024) — cross-device in GA4 now means User-ID, or nothing — Cross-Device Tracking, Identity Stitching.

The UI’s user and session counts are estimates. GA4 uses HyperLogLog++ (HLL++, a probabilistic algorithm that counts distinct values in fixed memory, at a small error) for unique counts — so COUNT(DISTINCT user_pseudo_id) in BigQuery won’t exactly match the UI even with identical data [CHECK: current stated HLL++ precision for users and sessions].


Reporting surfaces

                      collected events
                             │
          ┌──────────────────┼─────────────────────┬─────────────────┐
          ▼                  ▼                     ▼                 ▼
  STANDARD REPORTS      EXPLORATIONS          DATA API           BIGQUERY EXPORT
  pre-aggregated        ad hoc queries        programmatic       raw events
  tables                over event data       (reports + some    no processing
                        retention-limited     explore shapes)
  modelled ✓            modelled partly       modelled partly    modelled ✗
  thresholded ✓         thresholded ✓         thresholded ✓      thresholded ✗
  (other) ✓             (other) ✓             (other) ✓          (other) ✗
  sampling rare         sampling ✓            sampling ✓         sampling ✗
          │                                          │
          │                                   LOOKER STUDIO connector
          └── what most stakeholders see       (calls the Data API; same limits,
                                                plus its token quota)

Standard reports — the Reports section. Built on pre-aggregated tables, so fast and rarely sampled, but you can only slice by what the aggregates hold. Customisable via the library; 150 custom reports per property.

Explorations — Explore section. Seven techniques:

  • Free form — pivot table / chart
  • Funnel exploration — open or closed funnels — Funnel Analysis
  • Path exploration — forward or backward from an event — Path Analysis
  • Segment overlap — up to three segments, Venn-style
  • Cohort exploration — Cohort Analysis
  • User lifetime
  • User explorer — one pseudonymous user’s event stream

Explorations are bound by data retention — at the 2-month default, a year-on-year exploration returns nothing for last year. Personal by default; 200 per user per property, 500 shared.

Data API — Google Analytics Data API (application programming interface) v1, runReport and friends. Quota is in tokens: 200,000 per property per day, 40,000 per hour, 10 concurrent requests (360: 2M · 400k · 50). Data Studio (Looker Studio 2022–26) dashboards draw on it, which is why a busy dashboard can exhaust a property’s quota.

BigQuery export — the raw events, none of the processing above. Schema, UNNEST, daily vs streaming, the 1M/day cap and why it never matches the UI are all in BigQuery.

Thresholds, sampling and (other) — three different ways rows go missing

What happensTriggered byVisible as
Data thresholdsRows withheldDemographics, audiences built on demographics, search queries; low user countsOrange/red triangle “thresholding applied”
SamplingSubset processed, scaled upExploration/API query over 10M eventsData quality icon showing % of data used
(other)Rare values lumped into one rowTable exceeds its row limit; dimensions with >500 values are “high cardinality”A row literally called (other)

Data thresholds

Data thresholds are system-defined minimum counts below which GA4 hides a row so an individual user can’t be inferred. You can’t adjust them, and Google publishes no number [CHECK: whether any threshold value is documented]. Widening the date range is the main lever. Device-based reporting identity has been widely reported to reduce thresholding, but that’s practitioner observation rather than documented behaviour [CHECK].

In plain terms: if a row would describe so few people that you might guess who they are, GA4 deletes the row rather than show it. Totals still include them, so rows stop adding up to the total.

Sampling

Sampling means answering the query from a random subset of events and multiplying up. GA4 samples when a query needs more events than the quota — 10 million per query on standard, up to 1 billion on 360 (default 100M, “more detailed results” for the rest).

Worked example. A store sending 2 million events a day runs a 14-month free-form exploration.

events in range     2,000,000 × 425 days   = 850,000,000
quota                                         10,000,000
sample used         10M / 850M             = 1.18%
scale-up factor     850M / 10M             ≈ 85×

A segment that has 400 purchases in the sample is reported as 400 × 85 = 34,000. A smaller segment with 20 purchases in the sample is reported as 1,700.

How wrong might those be? For a count from a random sample, a rough relative standard error (the typical size of the miss, as a share of the estimate) is 1 ÷ √(sampled count) — Standard Error:

400 sampled  →  1 / √400 = 1 / 20  ≈  5%   → 34,000 ± ~1,700
 20 sampled  →  1 / √20  = 1 / 4.5 ≈ 22%   →  1,700 ± ~380

In plain terms: big segments survive sampling fine; small segments become guesses, and the interface shows both numbers with the same confidence. Counterintuitive part: the total looks precise because it’s large, so the small rows inherit its credibility — but each row’s accuracy depends on how many sampled events it has, not on the size of the property.

Fixes, in order: shorten the date range so the query fits under 10M; use a standard report (pre-aggregated, rarely sampled); go to BigQuery — Data Sampling.

(other)

When a report’s underlying table runs out of rows, the least common values are collapsed into (other). Usual culprit: a registered custom dimension holding something near-unique — full URLs with query strings, search terms, product IDs on a big catalogue. Google calls anything over 500 values a day high-cardinality, as guidance rather than a limit. Explorations, which query event data rather than the daily aggregates, show it less [CHECK: current row limits per surface] — Cardinality.

Why the same metric differs between surfaces

Before investigating anything interesting — Tool Discrepancies:

  1. Different date range or timezone — the export’s event_date is property time, timestamps UTC
  2. Retention — the exploration can’t see past 2/14 months; the standard report can
  3. Modelling — reports include consent-mode modelled users and key events; BigQuery has none
  4. Cookieless pings — reach BigQuery as separate pseudo-IDs, inflating raw user counts
  5. HLL++ estimates vs exact counts
  6. Thresholding / sampling / (other) — above
  7. Attribution scope — key-event attribution follows the reporting model; session and user acquisition dimensions don’t [CHECK: confirm session/first-user acquisition dimensions are unaffected by the reporting attribution model]
  8. Late events — data keeps changing for ~72 hours; compare older days

Consent Mode

Consent Mode is Google’s API for telling its tags what the visitor agreed to, via consent signals — analytics_storage and ad_storage (plus ad_user_data, ad_personalization). The banner itself is your CMP’s (consent management platform) job — Consent Management, UK GDPR and PECR for Analytics.

// defaults, before the tag fires — denied until the banner says otherwise
gtag('consent', 'default', {
  analytics_storage: 'denied',
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied'
});
// on acceptance, from the CMP callback
gtag('consent', 'update', { analytics_storage: 'granted' });

Two implementations, very different data:

BasicAdvanced
Tag loads before consentNo — blockedYes
On “deny”Nothing sentCookieless pings sent
Cookies on denyNoneNone — no _ga set or read
ModellingGeneral model onlyProperty-specific behavioural modelling possible

Cookieless pings are events without a cookie ID: event name, coarse context, user agent, screen resolution; IP address arrives as part of the request but Google says it isn’t stored. Any user_id or custom parameters you set are still sent — so a denied visitor can still be sending you data you thought was gated. Whether Advanced mode is compatible with PECR (Privacy and Electronic Communications Regulations) in the UK is a legal question, not a GA4 one.

Behavioural and conversion modelling

Behavioural modelling estimates the behaviour of consent-denied users from consented users who look like them, and adds it to reports. Eligibility (all must hold, and meeting them doesn’t guarantee it):

  • ≥ 1,000 events/day with analytics_storage='denied', for at least 7 days
  • ≥ 1,000 daily users with analytics_storage='granted', on at least 7 of the previous 28 days
  • Consent mode on every page; Advanced implementation (tags load before the banner)
  • Blended reporting identity selected

Worked example. A UK store with 3,000 sessions a day and a 55% reject rate sends perhaps 1,650 denied sessions — easily over 1,000 denied events/day. But only 1,350 consented sessions, which is maybe 1,100 consented users — just clearing 1,000. A quiet week in January dips below, and modelling switches off for the property; the reported user count drops with no change in traffic.

In plain terms: GA4 guesses what the people who said no did, based on the people who said yes. Small sites don’t get the guess at all, so they see only consented traffic — and their numbers aren’t comparable with a large site’s that do.

Key event (conversion) modelling is separate: it estimates key events that couldn’t be observed and attributed. Reports and the Data API include it; BigQuery never does — Modelled Conversions.


Attribution

The general models — Attribution Models, Attribution Windows, Multi-Touch Attribution. GA4’s choices:

  • Reporting attribution model (property setting, Admin → Attribution settings), applied retroactively to key-event credit:
    • Data-driven — default. Credit from a model of this property’s paths
    • Paid and organic last click — last non-direct click
    • Google paid channels last click — last Google Ads click; falls back to paid and organic last click if there isn’t one
  • Removed November 2023: first click, linear, time decay, position-based. Any advice to “compare linear and time decay in GA4” predates this
  • Lookback windows:
acquisition key events   first_visit, first_open    30 days default · 7 optional
all other key events                                90 days default · 30, 60 optional
  • Three attribution scopes coexist, and mixing them is the commonest confusion:
dimension prefix       credits                        model
First user …           the user's first ever source   first-touch, fixed forever
Session …              the source on session_start    last non-direct click
(key-event-scoped)     the key event                  the reporting model above

“Revenue by session source” and “revenue by default channel group in the Advertising section” can therefore disagree on the same day, by design — Channel Taxonomy, Direct Traffic and Lost Referrers, UTM Governance

  • Conversion paths report (Advertising → Attribution) shows the early/mid/late touchpoints for key events — the only place multi-touch is visible in the UI

Data-driven attribution is a black box at small volume. Google doesn’t publish a minimum, and on a property with few key events the model has little to learn from [CHECK: whether data-driven still has any documented data minimum or falls back silently].


Measurement Protocol

Server-to-server event sending — an HTTPS POST of JSON (JavaScript Object Notation) from your backend. For events the browser never sees: refunds, offline sales, subscription renewals, a CRM (customer relationship management) status change — Client-Side vs Server-Side Tracking, Offline Conversion Imports.

// Node, web stream. api_secret is created per stream in Admin → Data streams
await fetch(
  'https://www.google-analytics.com/mp/collect' +
  '?measurement_id=G-XXXXXXXXXX&api_secret=SECRET',   // EU: region1.google-analytics.com
  {
    method: 'POST',
    body: JSON.stringify({
      client_id: '1834.1730091',        // the _ga cookie value — ties it to the browser user
      user_id: 'u_8812',                // optional
      events: [{
        name: 'refund',
        params: {
          transaction_id: 'T-90211',
          value: 39.97,
          currency: 'GBP',
          session_id: '1730091200',     // joins an existing session, if < 24 h old
          engagement_time_msec: 1
        }
      }]
    })
  }
);

What it can’t do:

  • Stand alone. Google states you must also use tagging (gtag, GTM — Google Tag Manager — or Firebase); server-only use gives “partial reporting”
  • Know where the user came from. No referrer, no UTM — a server event with no session_id joining a tagged session has no traffic source
  • Use reserved names — some event and parameter names are reserved for automatic collection
  • Trigger create/modify-event rules configured in the UI
  • Backdate beyond 72 hours (timestamp_micros); to join cleanly with tag events, within 48
  • Tell you it failed. The endpoint accepts malformed payloads without error [CHECK: confirm always-2xx behaviour]. Validate against /debug/mp/collect while building
  • Exceed 25 events per request, 130 kB body; above an hourly limit, non-conversion requests are silently dropped

The client_id is the whole trick. Capture the _ga value at checkout and store it with the order, or the server event lands as a new anonymous user — Server-Side Tag Management.


Links and audiences

  • Google Ads — imports key events as Ads conversions for bidding; exports audiences for remarketing; brings cost and click data into GA4. Each key event becomes at most one web and one app conversion per linked Ads account
  • Search Console — organic query and landing-page data in two reports. Query rows are thresholded; it’s Search Console’s sampled view, not GA4’s [CHECK: current link cardinality — one Search Console property per web stream]
  • Audiences — user lists defined by conditions and sequences, with a membership duration. Not retroactive: membership starts accumulating when the audience is created [CHECK]. 100 per property (360: 400). Used for remarketing, as report comparisons, and as the mechanism by which experiment tools surface variants

Experimentation with GA4

There is no A/B testing in GA4. Google Optimize and Optimize 360 closed on 30 September 2023; Google pointed to third-party integrations (AB Tasty, Optimizely, VWO named at the time) rather than a replacement.

How a testing tool tells GA4 about a test: an exposure event with the experiment and variant as parameters. Google’s integration spec for vendors uses a recommended event:

gtag('event', 'experience_impression', {
  // format XXX-YYYYYYYYY-ZZZZZZZZ: tool · experience · variant
  exp_variant_string: 'ABC-F2948574-3495F49'
});

The vendor then creates a GA4 audience per variant (users whose experience_impression has that exact exp_variant_string), and you compare audiences in reports. Hand-rolled implementations usually send something like experiment_exposure with experiment_id and variant_id — Experiment Assignment Tracking.

Why the analysis belongs in BigQuery, not the UI:

  • Audiences aren’t retroactive and are user-scoped — outcomes before exposure leak in unless you filter by time, which the UI can’t do per user
  • Sampling and thresholds hit exactly the small variant-by-segment cells you care about
  • Modelled users in reports aren’t randomised users — they dilute the comparison
  • No SRM check (sample ratio mismatch — the variant split differing from the intended one, a sign of broken assignment or tracking) — Sample Ratio Mismatch
  • No per-user outcome rows, so no variance, so no confidence interval

The export-side query — first exposure per user, outcomes after it, aggregated by variant — is built step by step in BigQuery.


Free vs Analytics 360

Axes only; 360 is contracted, priced on volume [CHECK: current 360 pricing axis — event volume tiers].

AxisStandard360
Parameters per event25100
User properties25100
Custom dimensions (event / user / item)50 / 25 / 10125 / 100 / 25
Key events3050
Audiences100400
Exploration retention2, 14 monthsup to 50 months
Exploration sampling10M events/queryup to 1B; unsampled explorations via daily tokens
Data API200k tokens/day2M tokens/day
BigQuery daily export1M events/day”Billions”; plus fresh daily export
Data import storage10 GB1 TB
Subproperties / roll-up propertiesNoYes
SLAs (service level agreements)NoneCollection, processing, reporting

The axis that pushes most growing stores up a tier is the 1M/day BigQuery cap, not the reports — a store sending 40 events per session hits it at ~25,000 sessions a day. Streaming export (no cap, billed by BigQuery) is the usual alternative — BigQuery.


Where it hurts

  • Forward-only everything. Custom dimensions, audiences, filters, export: none are retroactive. Configuration you didn’t do on day one is data you don’t have
  • Silent failure. Truncated values, MP payloads accepted and discarded, (other), thresholding — nothing errors
  • Processing opacity. HLL++, modelling, data-driven attribution and thresholds are all undocumented in their specifics; you can’t reproduce a UI number exactly
  • Retention default — 2 months of explorations unless someone changed it
  • Admin split between property settings and stream tag settings
  • Reports were designed for marketers, explorations for analysts, and neither for experiments
  • Renames — conversions → key events, Google signals’ role, removed attribution models — make tutorials older than about 2024 actively misleading

Names to recognise: Firebase (the app SDK behind app streams), DebugView (real-time event inspector for debug-mode traffic), Google Tag Assistant.