How data gets from your site to GA4
- A visitor does something on the page.
- The site (or a tag) records it as an event.
- A tag sends the event to GA4.
- 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?