What Is GA4? A Practical Guide to Google Analytics 4 for Marketers
What GA4 is, what changed from Universal Analytics, how events and key events work, and how to set up Google Analytics 4 with Tag Manager and consent mode without breaking your data.

- GA4 is Google's free analytics platform that records every interaction as an event with parameters; it replaced Universal Analytics, which stopped processing data on July 1, 2023.
- What GA4 used to call conversions are now key events; Google Ads conversions are created from them.
- A clean setup starts with a measurement plan: business goal, event, parameters and whether it counts as a key event.
- Set up consent mode before launch; the advanced implementation sends cookieless pings that allow behavioral and conversion modeling.
- The Measurement Protocol api_secret is private: send offline and CRM conversions from your server, never from the browser.
In this article
What is GA4? Google Analytics 4 (GA4) is Google's analytics platform for websites and apps, and it records every interaction as an event: a page view, a click, a file download, a form submission or a purchase, each with parameters that add context. The standard version is free and replaced Universal Analytics.
Set up well, GA4 answers the question marketing teams actually care about: which channels, campaigns and pages bring customers, not just traffic. This guide covers what changed from Universal Analytics, how GA4 tracking works, what GA4 means for marketing, how to set it up step by step and the mistakes that quietly ruin your data.
What is GA4, and what changed from Universal Analytics?
According to Google Analytics Help, standard Universal Analytics properties stopped processing data on July 1, 2023, and starting the week of July 1, 2024, access to historical Universal Analytics data was removed. If your company did not export it, your usable history starts the day GA4 went live on your site.
The change went deeper than the name:
| Universal Analytics | Google Analytics 4 | |
|---|---|---|
| Data model | Sessions and hits (page views, events with category, action and label) | Everything is an event with parameters |
| Platforms | Websites; apps measured separately | Web and apps in the same property |
| Business goals | Goals | Key events, plus conversions in Google Ads |
| Advanced analysis | Custom reports | Explorations: funnels, paths, segments and cohorts |
| BigQuery export | Paid 360 version only | Available in standard properties too |
| Privacy | Limited controls | Built to work with consent mode |
How GA4 tracking works: events, parameters and key events
Google groups GA4 events into four types:
- Automatically collected: recorded by default once the tag is installed, such as first_visit and session_start.
- Enhanced measurement: recorded when you turn the option on in a web data stream: page views, scrolls, outbound clicks, site search, video engagement, file downloads and form interactions.
- Recommended: you implement them, but Google predefines their names and parameters, for example generate_lead, sign_up, add_to_cart or purchase. Using them gives you access to specific reports and features.
- Custom: fully defined by you, such as a click on a click-to-chat button. The event appears in the Events report, but you cannot use its parameters in reports until you register them as custom dimensions.
Parameters give each event its context: the value and currency of a purchase, which form was submitted, which service the visitor was interested in. Without parameters you know something happened, but not what it was worth.
Key events are events that measure an action that is especially important to your business. GA4 used to call them conversions; Google renamed them to align the definition of a conversion across Analytics and Google Ads. The chain is now event, key event and, if you use it to optimize campaigns, a Google Ads conversion.
What is GA4 in marketing?
For a marketing team, GA4 is the shared source of truth between channels. Configured around key events, it tells you:
- Which channels and campaigns bring qualified leads or sales, not just sessions.
- Which landing pages convert and where people drop off in the funnel.
- What each key event costs once you link Google Ads.
- Which audiences to build for remarketing, based on real behavior.
- How much traffic now arrives from AI assistants, if you create a custom channel group for domains like chatgpt.com, perplexity.ai and gemini.google.com. That is the simplest way to measure GEO against SEO.
How to set up GA4 step by step
- Write a measurement plan. Start from business goals, turn them into KPIs and decide which event measures each one. If the goals themselves aren't clear yet, a digital marketing consulting firm can help you define them for each funnel stage.
- Create the property and data streams. One property per business, with the right time zone and currency, and one stream per website or app.
- Install the Google tag through Google Tag Manager, so you can add and change events without touching site code every time.
- Configure consent mode before launch. The cookie banner and default consent states must work from day one.
- Review enhanced measurement. Keep what helps and turn off anything that duplicates events you track manually, such as forms.
- Create recommended and custom events with a fixed naming convention (lowercase with underscores) and register their custom dimensions.
- Mark key events and link Google Ads and Search Console.
- Tune the settings: data retention to 14 months, an internal traffic filter, unwanted referrals such as payment gateways, and channel groups.
- Validate and document. Test every event in DebugView and Tag Assistant and write down what each one measures.
Sample measurement plan
| Business goal | GA4 event | Useful parameters | Key event? |
|---|---|---|---|
| Generate B2B leads | generate_lead | form_id, service | Yes |
| Start chat conversations | chat_click (custom) | button location, page | Yes, if chat is a main channel |
| Sell online | purchase | value, currency, transaction_id, items | Yes |
| Measure purchase intent | add_to_cart, begin_checkout | value, items | No, analyze them in funnels |
| Content engagement | scroll, file_download | file_name | No |
| Deal closed in the CRM | close_convert_lead, sent from your server | value, currency | Yes |
A handful of well-defined key events beats twenty. If everything is important, nothing is.
Consent mode and privacy
Consent mode adjusts how Google tags behave based on each visitor's choices. It relies on four main signals: ad_storage, analytics_storage, ad_user_data and ad_personalization. Google describes two implementations:
- Basic: tags are blocked until the visitor consents. If they decline, nothing is sent.
- Advanced: tags load before the banner and, if the visitor declines, send cookieless pings. GA4 can then apply behavioral and conversion modeling to fill the gaps.
Google's policies also prohibit sending personally identifiable information to Analytics, such as email addresses, phone numbers or account numbers, in events or in URLs. Privacy rules vary by state and country, so have your legal team review the banner copy and your forms.
Keep secrets on the server
Many sales never happen on the website. They close over the phone, in chat or in the CRM. The Measurement Protocol sends those events to GA4 from a server. Google is explicit: the api_secret is private and must not be exposed in client-side code, because anyone who finds it could send fake data to your property and corrupt your reports.
The rule of thumb: the only thing that lives in the browser is the measurement ID (G-…), which is public by design. Keys, tokens and credentials for GA4, your CRM or any API stay in a server function. We apply the same rule to our own lead forms: the browser posts to our domain, and the server talks to the CRM.
Common GA4 mistakes
- Leaving data retention at 2 months. Standard properties offer 2 or 14 months. The setting does not affect standard reports, but it does limit explorations and funnels, so you cannot compare seasons.
- Double tagging. gtag.js in the code plus the same tag in Tag Manager doubles your page views.
- Not filtering internal traffic from your team and vendors.
- Crediting sales to the payment gateway because unwanted referrals were never configured.
- Marking everything as a key event, which muddies campaign optimization.
- Expecting GA4, Google Ads and the CRM to match exactly. They use different attribution models, windows and consent rules; what matters is that trends agree.
How DataLab approaches analytics
At DataLab, measurement is where our marketing projects start. We write the measurement plan, install and verify GA4, Tag Manager and consent mode, wire the actions that drive revenue (forms, chat clicks, quotes and sales) as events, and roll them into a live dashboard with a monthly executive report.
That discipline is what turns a meeting about clicks into a conversation about return. For five years we managed Rubbermaid Commercial Products' paid media across Latin America, with campaigns worth close to COP 300 million a year and an ROI consistently above 15%; see the Rubbermaid case study.
Is your GA4 counting sessions without telling you which channel brings customers? Request a tracking review through our marketing analytics consulting team. And if you are still choosing channels, read our breakdown of SEO vs SEM.
Frequently asked questions
01Is GA4 free?
Yes. The standard version of Google Analytics 4 is free and includes events, key events, explorations, Google Ads and Search Console integrations and BigQuery export. A paid version, Google Analytics 360, is designed for very high data volumes, longer retention and service-level agreements. Most small and midsize companies do well with the standard version.
02What happened to Universal Analytics data?
Standard Universal Analytics properties stopped processing data on July 1, 2023, and starting the week of July 1, 2024, Google removed access to that data in the interface and the API. If you did not export it before then, it cannot be recovered. Your usable history now starts the day you installed Google Analytics 4 on your site.
03What is a key event in GA4?
A key event is an event that measures an action especially important to your business, such as a form submission, a chat conversation or a purchase. GA4 used to call these conversions. Google renamed them to align the definition with Google Ads, where conversions are now created from key events and used to optimize bidding.
04Do I need Google Tag Manager to install GA4?
No, you can add the Google tag directly to your site code. For most companies, though, Tag Manager is the better choice: it lets you add events, configure consent mode and manage other tags, such as Meta or LinkedIn, without a developer for every change. Just never use both methods at once, or you will double count your data.
05Why doesn't GA4 match Google Ads or my CRM?
Each tool counts differently. GA4 and Google Ads use different attribution models and conversion windows, cookie consent leaves some visits unmeasured or modeled, and the CRM records deals that close offline. The goal is not a perfect match but consistent trends, with every gap explained and documented in your measurement plan.
06How long does GA4 keep data?
Standard GA4 properties let you keep user-level and event-level data for 2 or 14 months. The setting does not affect aggregated standard reports, but it does limit explorations and funnel reports. Change it to 14 months on day one, and export to BigQuery if you need longer-term analysis.
Sources
- Google Analytics Help: Google Analytics 4 has replaced Universal Analytics
- Google Analytics Help: About events
- Google Analytics Help: Differences between conversions and key events
- Google Analytics Help: Consent mode on websites and mobile apps
- Google Analytics Help: Data retention
- Google for Developers: Send Measurement Protocol events to Google Analytics
GA4, Tag Manager, Consent Mode and dashboards you can act on
Marketing analytics

