Google Analytics
Google Analytics
Definition: The most widely used web analytics platform, originally built from Urchin (acquired by Google in 2005) and relaunched as Google Analytics that same year, tracking visitor behavior, traffic sources, and conversions across websites and apps largely for free. In October 2020 Google introduced GA4, a fundamentally different event-based data model built around cross-platform (web + app) tracking and machine-learning-driven insights, and fully deprecated the older session/pageview-based Universal Analytics in mid-2023 — forcing a disruptive, widely-criticized migration across most of the web’s existing analytics installs.
Core Services & Concepts
- Event tracking — Event-Driven Architecture, GA4 rebuilt its entire data model around discrete events (
page_view,purchase, custom events) rather than Universal Analytics’ older sessions/pageviews model - Measurement Protocol — a server-side REST endpoint for sending events directly to GA4 without going through the client-side gtag.js snippet, useful for server-to-server or offline conversion tracking
- REST API — REST API, the Google Analytics Data API (GA4) and Admin API let external tools query reports and manage properties programmatically instead of using the web UI
- Google Tag / gtag.js — the client-side JavaScript library (and increasingly Google Tag Manager) used to fire pageview and custom events from a website into GA4
- Cookies — Cookies, GA4 identifies returning visitors and stitches sessions together using first-party cookies (and, where available, Google Signals for logged-in Google users), central to the privacy debates around the product
- BigQuery export — a free-tier-included pipeline that exports raw, unsampled GA4 event data into Google BigQuery for custom SQL analysis beyond the standard reporting UI
How Pricing Works
- Standard GA4 is free for the vast majority of websites, with a generous (roughly 10 million events per month) usage ceiling before Google even discusses an upgrade
- Google Analytics 360 (the enterprise tier) adds SLAs, higher data limits, unsampled reporting, and dedicated support, priced on a negotiated enterprise-sales basis rather than public self-serve pricing
- There’s no per-seat or per-pageview charge on the free tier, monetization instead comes indirectly through deeper integration with paid Google Ads and Marketing Platform products
- BigQuery export itself is free from the GA4 side, but standard BigQuery storage/query costs apply once the data lands there
- Most cost complaints aren’t about GA4 itself but about the sampling and data-retention limits on the free tier once traffic and event volume grow large
Pros
- Free for the vast majority of websites and apps, with no realistic usage ceiling for small-to-mid traffic sites
- Massive documentation, community, and third-party tooling ecosystem, given its scale as the default analytics choice
- Deep integration with Google Ads, letting marketers connect ad spend directly to on-site conversion behavior
- BigQuery export gives technical teams a path to raw-data analysis well beyond the standard reporting UI
- Cross-platform tracking (web + iOS + Android) in a single GA4 property, unified in a way Universal Analytics never supported
Cons
- GA4’s interface and event-based data model were a major, widely-criticized overhaul from the older, more intuitive Universal Analytics, with a genuinely steep relearning curve for longtime users
- Privacy regulations like GDPR and ePrivacy complicate its use in some regions, commonly requiring a consent-management layer before any tracking fires at all
- Data sampling and thresholding kick in on the free tier at meaningful traffic volumes, which can quietly distort reports without an obvious warning
- Default data retention on user-level and event-level data is capped (commonly 2 or 14 months depending on setting), unlike Universal Analytics’ effectively unlimited aggregate history
- Weaker for deep in-product behavioral analysis (funnels, retention cohorts) than a purpose-built product analytics tool, GA4 narrowed this gap but still trails tools built specifically for that job
Comparison: Google Analytics vs Zapier vs Mixpanel
| Zapier | Google Analytics | Mixpanel | |
|---|---|---|---|
| Primary strength | No-code cross-app workflow automation | Free, ubiquitous web traffic & marketing attribution | Deep in-product user behavior & funnel analysis |
| Typical pricing model | Free tier + tiered monthly plans by task volume | Free (GA4); negotiated enterprise pricing for GA 360 | Free tier + usage-based pricing by tracked users |
| Best fit | Gluing together SaaS tools without writing integration code | Any public website needing traffic and acquisition data | Product teams needing funnels, retention, and cohorts |
| API or product style | Trigger-action “Zaps” built on webhooks/polling, no-code editor | Event-based tracking via gtag.js/GA4 SDK, reporting API | Event-based SDK tracking, in-product analysis UI |
Best For
- Any public website or app wanting free, comprehensive traffic, acquisition, and marketing-attribution analytics out of the box
- Marketing teams who need traffic data tied directly to Google Ads spend and campaign performance
Real Examples
- Used on the vast majority of public websites, commonly cited as the most widely deployed web analytics tool by a wide margin
- E-commerce sites lean on GA4’s purchase and conversion events to attribute revenue back to specific marketing channels and campaigns
- Publishers and content sites use it to track pageviews, engagement time, and traffic-source breakdowns across organic, paid, and referral sources
Use Cases
- Website traffic analysis
- Conversion tracking
- Marketing campaign attribution
- Cross-platform (web + app) user journey analysis via a single GA4 property
- Feeding raw event data into BigQuery for custom reporting beyond the standard dashboards
Integration Notes & Common Pitfalls
- Migrating from Universal Analytics to GA4 isn’t a data migration, historical UA data doesn’t carry over automatically and needs to be exported/archived separately before it’s gone
- Consent-mode and cookie-banner configuration must be wired up correctly or GA4 silently undercounts users in regions with strict privacy regulation, without throwing an obvious error
- Server-side (Measurement Protocol) events require careful deduplication against client-side events, or the same conversion can be double-counted
- Sampling and data-threshold warnings in reports are easy to miss in the UI, always check the applied sample size before trusting a number down to the last visitor
- Cross-domain tracking (a user moving between two different domains you own) requires explicit configuration in GA4 and is easy to get subtly wrong, leading to sessions being incorrectly split in reports
Code Example
// Client-side: firing a custom GA4 event via gtag.js
gtag('event', 'purchase', {
transaction_id: 'T_12345',
value: 84.50,
currency: 'USD',
items: [{ item_id: 'SKU_1', item_name: 'Widget', price: 84.50, quantity: 1 }],
});
// Server-side: sending the same kind of event via the Measurement
// Protocol, useful when a conversion happens off-browser (e.g. a
// webhook from a payment processor) and there's no client to fire it
await fetch(`https://www.google-analytics.com/mp/collect?measurement_id=G-XXXXXXX&api_secret=${API_SECRET}`, {
method: 'POST',
body: JSON.stringify({
client_id: '1234567890.0987654321',
events: [{ name: 'purchase', params: { transaction_id: 'T_12345', value: 84.50, currency: 'USD' } }],
}),
});
FAQ
Why did GA4 replace Universal Analytics instead of just updating it? Universal Analytics’ session/pageview model couldn’t cleanly represent cross-platform (web + app) user journeys or survive a cookieless future, so Google rebuilt the product around a unified event model instead of patching the old one.
Is GA4 actually free for a growing business? Yes for the overwhelming majority of sites — the free tier’s event ceiling is high enough that only very large enterprises typically need to consider Google Analytics 360.
Does GA4 still work if a user blocks third-party cookies? Partially — first-party cookie tracking and consent-mode modeling fill some of the gap, but cross-session and cross-device accuracy degrade compared to a fully cookie-permitted environment.
Does GA4 replace the need for a dedicated product analytics tool? Not fully — GA4 added funnel- and retention-style reports after launch, but purpose-built product analytics tools like Mixpanel still generally offer deeper segmentation and faster ad-hoc analysis for understanding in-app behavior specifically.
History
- Originated from Urchin, a web analytics company Google acquired in 2005 and relaunched publicly as Google Analytics that same year
- Became the de facto default analytics tool for the web through the 2010s under the “Universal Analytics” architecture introduced in 2012
- Launched GA4 in October 2020 with a fundamentally different, event-based, cross-platform data model
- Fully sunset Universal Analytics in July 2023 (with the 360 version following in 2024), forcing a disruptive migration across most of the web’s existing analytics installs
- Has been folded increasingly tightly into the broader Google Ads and Marketing Platform ecosystem over time, reinforcing that its business model is ad-adjacent rather than a standalone analytics subscription