Module 3 · Lesson 2 of 8 · 2 min read

GA4 implementation concepts: Tags, data layers and key events

Analytics lesson 2: how GA4 data is collected: the Google tag, Tag Manager, the data layer, enhanced measurement and key events, explained without code.

How data gets from your site to GA4

  1. A visitor does something on the page.
  2. The site (or a tag) records it as an event.
  3. A tag sends the event to GA4.
  4. GA4 processes it into reports, a few hours later for most reports.

The pieces

  • Google tag: the snippet that sends data to GA4.
  • Google Tag Manager (GTM): a tool for managing tags without editing site code each time. Most CRO teams use it.
  • Data layer: a place on the page where the site writes structured facts (“order value: 64.50”) for tags to read. It’s more reliable than scraping text off the page.
  • Enhanced measurement: events GA4 can collect automatically, such as page views, scrolls, outbound clicks, site search, video engagement, file downloads and form interactions (Google Analytics Help). Handy, but check they fire correctly.
  • Key events: the events you mark as most important for the business. Since 2024 GA4 calls them key events; “conversions” now means key events used in Google Ads (Google Analytics Help).
  • Consent: where analytics needs consent, Consent Mode tells Google tags how to behave for each visitor’s choice (Google for Developers). Your data then covers consenting visitors.

Choosing key events

Mark only the events that represent real outcomes: purchase, generate_lead, sign_up. Keep micro-conversions like add_to_cart as normal events. A short list keeps reports meaningful.

Recap

Events are collected by tags, often managed in GTM and fed by a data layer; GA4 adds automatic events and lets you mark key events; consent decides who’s measured. Next lesson: tracking quality assurance.

Practical exercise

In GA4, go to Admin > Data streams and check which enhanced measurement events are switched on. Then open Admin > Key events and list which events are marked as key events. Does the list match your measurement brief?

Check your understanding

1. What is the data layer?
Show answer

A JavaScript object on the page where the site puts information for tags to read. The data layer is where the website places structured information (like order value) so that Tag Manager can send it to analytics reliably.

Sources (3)

  1. Enhanced measurement events. Google Analytics Help. Accessed 14 November 2026.
  2. Conversions vs. key events in Google Analytics. Google Analytics Help. Accessed 14 November 2026.

Lesson progress

Saved in this browser only. Accounts with synced progress and certificates are coming soon.

Next: Tracking quality assurance →

Search lessons, guides, case studies and templates. Press Esc to close.