GA4 Event Tracking
Google Analytics 4's event-based measurement model where every user interaction is captured as an event with parameters, replacing the old pageview-centric Universal Analytics model.
What Is GA4 Event Tracking?
Google Analytics 4 (GA4) replaced Universal Analytics in 2023 with a fundamentally different data model: instead of tracking pageviews, sessions, and isolated events, GA4 treats everything as an event with parameters. A pageview is an event. A click is an event. A form submission is an event. This unified model allows richer analysis but requires rethinking how you instrument tracking.
Also Known As
- Analytics teams: GA4 events, event-scoped tracking
- Marketing teams: GA4 conversions, Google analytics events
- Dev teams: gtag events, data layer events
- Product teams: behavioral events in GA4
How It Works
On a signup page, a developer fires gtag('event', 'sign_up', { method: 'email', plan: 'pro' }). GA4 records an event named 'sign_up' with two parameters. In reports, you can filter signups by method or plan, build funnels using 'sign_up' as a step, and mark 'sign_up' as a conversion. Unlike Universal Analytics' categorical event hierarchy (category/action/label), GA4 events can have up to 25 custom parameters each — more flexibility, more setup work.
Best Practices
- Do document your event taxonomy before implementing. Inconsistent event naming produces unusable data within weeks.
- Do use recommended events (purchase, sign_up, login, search, etc.) where they exist — they get special treatment in GA4's UI.
- Do register custom parameters as custom dimensions if you want to segment by them in reports.
- Don't fire events for every DOM interaction. You'll blow through GA4's cardinality limits and end up with (other) in your reports.
- Don't rely on GA4 for product analytics. It's optimized for marketing attribution, not deep product usage analysis.
Common Mistakes
- Assuming UA tracking auto-maps to GA4. It doesn't; you must redesign the event model.
- Instrumenting without a naming convention. 'button_click' and 'click_button' and 'cta_click' for the same action is a common disaster.
Industry Context
GA4 is the default for ecommerce and marketing-driven businesses because it integrates with Google Ads. SaaS teams often use GA4 for marketing site analytics and a dedicated tool (Mixpanel, Amplitude, Heap) for product analytics. B2B lead gen typically uses GA4 for top-of-funnel and a CRM (HubSpot, Salesforce) for middle-of-funnel.
The Behavioral Science Connection
GA4's event-centric model more accurately reflects how humans interact with products — as a stream of discrete behaviors — than the session-and-pageview model did. This aligns with how behavioral scientists think about user behavior: as observable events with context (parameters) rather than aggregate states.
Key Takeaway
GA4 is powerful if you invest in a clean event taxonomy upfront. If you instrument sloppily, you'll have a messy data layer that's hard to clean up later. Design the events before writing the code.