How to Set Up Google Analytics 4 Step by Step
A step-by-step Google Analytics 4 setup walkthrough covering the property, Google tag, key events, data retention, consent mode and the links that make your reports useful.
To set up Google Analytics 4, create an Analytics account and property, add a web data stream, and install the Google tag on every page or through your website builder or Tag Manager. Then turn on enhanced measurement, mark your key events, set data retention, filter internal traffic, configure consent mode and link Google Ads and Search Console.
Photo: Unsplash
On this page
- Step 1: Create your account and property
- Step 2: Add a data stream and install the Google tag
- Step 3: Review enhanced measurement
- Step 4: Set up key events
- Step 5: Adjust the settings most people miss
- Step 6: Configure consent settings
- Step 7: Link Google Ads and Search Console
- Where to start once data is flowing
- Conclusion
- Sources
You know people visit your website. What you probably don’t know is which ads, posts and emails bring the visitors who actually call, book or buy. Google Analytics 4 (GA4) can tell you, but only if it is set up properly. A rushed install with default settings collects page views and little else.
The good news is that a solid GA4 setup takes an afternoon, not a week. You need admin access to your website or website builder, a Google account and a clear list of the actions that matter to your business.
This walkthrough covers each step in order: creating the property, installing the tag, choosing key events, adjusting the settings most people miss, setting up consent and linking the other Google tools you use.
Before you open Analytics, gather 4 things.
- A business Google account that you control, not one belonging to a former employee or agency. You can add others as users later.
- Website admin access, or access to your website builder or Google Tag Manager.
- Your list of key actions, such as form submissions, phone clicks, bookings, purchases or newsletter signups.
- Your consent approach. If you show a cookie banner or serve visitors in Europe, know which consent management tool you use.
If you already have an Analytics account, you can add a new property to it instead of creating a new account. You need Editor access or above at the account level.
Step 1: Create your account and property
- Go to Google Analytics and sign in.
- Open Admin, click Create, then choose Account (if you don’t have one) or Property.
- Enter a property name, such as your business name plus “website”.
- Choose your reporting time zone and currency. Get these right now, because they affect how days and revenue are reported.
- Pick your industry category, business size and how you plan to use Analytics, then click Create.
An account is the top level for your business. A property holds the data for one website or app. Most small businesses need 1 account and 1 property.
Step 2: Add a data stream and install the Google tag
A data stream is the source of data for a property. For a website, choose Web, enter your site’s URL and give the stream a name.
Google then prompts you to set up the Google tag. You have 4 options.
| Install method | Best for | How it works |
|---|---|---|
| Website builder or CMS integration | Sites on platforms such as WordPress, Shopify, Wix or Squarespace | Paste your Google tag ID (it starts with G-) into the platform’s analytics settings, or use its official integration |
| Google Tag Manager | Businesses that will add other tags, such as ad pixels | Add a Google tag in Tag Manager with your tag ID and publish the container |
| Manual install | Custom-coded sites | Paste the full Google tag snippet immediately after the opening head element on every page |
| Existing Google tag | Sites that already have a Google tag, for example from Google Ads | Reuse that tag and connect it to the new property |
Use only one method. Google warns against adding more than one tag per page, because duplicate tags double-count visits.
To check it works, visit your site in another browser tab and open the Realtime report. Data can take up to 30 minutes to appear.
Step 3: Review enhanced measurement
Enhanced measurement tracks common interactions without extra code. In Admin, open Data streams, select your web stream and review the enhanced measurement toggle. It can collect:
- Page views (always on)
- Scrolls, recorded when a visitor reaches 90% of the page
- Outbound link clicks
- Site search
- Video engagement on embedded YouTube videos
- File downloads
- Form interactions, including form starts and submits
Leave the useful ones on. If your forms are built with tools that don’t send standard submit events, check that form submissions are recorded correctly before relying on them.
Step 4: Set up key events
Key events are the actions that matter most to your business. Google renamed “conversions” to “key events” in GA4 in 2024 to separate them from Google Ads conversions, which you now create by importing key events into a linked Ads account.
To mark an event as a key event:
- In Admin, under Data display, open Events.
- Find the event in the Recent events tab.
- Click the star icon to mark it as a key event.
If the action you need isn’t tracked yet, create a new event from an existing one. For example, you can create a “thank_you_page” event when the page path contains /thank-you, then mark it as a key event. Standard properties can have up to 30 key events, which is plenty for most businesses.
| Business type | Good key events to start with |
|---|---|
| Local service business | Contact form submit, phone number click, booking completed, directions click |
| Online store | Purchase, add to cart, begin checkout, newsletter signup |
| Professional services or B2B | Quote or demo request, consultation booking, resource download |
| Restaurant or venue | Online order, reservation, menu view, gift card purchase |
Key takeaway: Pick 3 to 5 key events that represent real business outcomes. If everything is a key event, nothing is, and your reports become impossible to act on.
Step 5: Adjust the settings most people miss
These take a few minutes and make your data far more useful.
Data retention. In Admin, under Data collection and modification, open Data retention. Standard properties can keep user-level and event-level data for 2 months or 14 months. Choose 14 months if you want year-over-year comparisons in explorations and funnel reports. Standard aggregated reports aren’t affected by this setting.
Internal traffic filter. Visits from your own team skew results, especially on small sites. In your web stream’s tag settings, define internal traffic by your office IP address, then activate the internal traffic data filter.
Unwanted referrals. If customers leave your site to pay through a third-party payment page and return, list that domain as an unwanted referral so the sale isn’t credited to the payment provider.
Cross-domain measurement. If your booking or checkout runs on a different domain, configure the domains in the tag settings so one visit isn’t split into 2.
Google signals. This setting adds data from signed-in Google users for features such as cross-device reporting. Review it alongside your privacy policy before turning it on.
Step 6: Configure consent settings
Consent mode tells Google tags whether a visitor agreed to analytics and advertising cookies. It works with your existing cookie banner or consent management platform. It doesn’t create a banner for you.
Consent mode version 2, introduced in late 2023, added 2 settings, ad_user_data and ad_personalization, alongside the original ad_storage and analytics_storage. For visitors in the European Economic Area, Google requires advertisers to collect consent and pass these signals to keep using measurement, ad personalization and remarketing features, a requirement that took effect in March 2024.
There are 2 ways to implement it:
- Basic: Google tags stay blocked until a visitor consents. No data is sent if they decline.
- Advanced: Tags load first and send cookieless pings when consent is declined, which lets Analytics use modeling to fill gaps.
In the US, rules vary by state, and several states give consumers the right to opt out of targeted advertising. Review the state data privacy laws that apply to your customers, and update your privacy policy to mention Analytics. This is not legal advice.
Step 7: Link Google Ads and Search Console
Linking turns GA4 from a traffic counter into a marketing tool.
- Google Ads: In Admin, under Product links, link your Ads account. Then import your key events as conversions so campaigns can optimize toward real outcomes. Our guide to Google Ads for beginners covers campaign setup.
- Search Console: Linking it adds organic search queries and landing page data to Analytics. If you haven’t set it up, start with our Google Search Console guide.
Then tag the links in your emails, social posts and other campaigns with UTM parameters so GA4 can tell exactly which campaign sent each visitor.
Where to start once data is flowing
Give GA4 a week or 2 to collect data, then check these reports.
- Reports > Acquisition > Traffic acquisition to see which channels bring visitors and key events.
- Reports > Engagement > Pages and screens to see which pages people use.
- Reports > Engagement > Events to confirm your key events are firing.
- Advertising > Attribution to compare channels once Ads is linked.
From there, set a monthly review. Pair GA4 data with sales from your POS or CRM to measure marketing ROI, and consider a simple business dashboard so the numbers that matter are in one place.
Conclusion
A good GA4 setup comes down to 7 steps: create the property, install one Google tag, review enhanced measurement, mark a few key events, fix data retention and filters, configure consent and link your other Google tools. Do it once and do it properly, and you’ll have data you can trust when you decide where to spend your next marketing dollar.
Sources
- Google Analytics Help: Add a property and set up a data stream — property creation, Google tag install options and Realtime verification
- Google Analytics Help: Enhanced measurement events — events collected automatically
- Google Analytics Help: Key events — marking key events and the 30 key event limit
- Google Analytics Help: Data retention — 2-month and 14-month retention options and what they affect
- Google Analytics Help: About consent mode — consent types and basic versus advanced implementation
- Google Tag Manager Help: Updates to consent mode for EEA traffic — consent mode v2 requirements for EEA users
Frequently asked questions
Is Google Analytics 4 free?
Yes, the standard version of Google Analytics 4 is free for websites and apps. Google also sells Analytics 360, a paid version for large organizations that need higher limits, longer data retention and service-level agreements. Most small and midsize businesses never need the paid version.
How long does it take to set up Google Analytics 4?
A basic GA4 setup takes about an hour, and a complete setup with key events, filters, consent and product links usually fits in an afternoon. Data can take up to 30 minutes to appear in Realtime reports, and standard reports become useful after a week or 2 of collection.
What is the difference between key events and conversions in GA4?
Key events are the important actions you mark in Google Analytics, such as purchases or form submissions. Conversions now refer to Google Ads conversions, which you create by importing key events into a linked Ads account. Google renamed GA4 conversions to key events in 2024.
Do I need Google Tag Manager for GA4?
No, you don't need Tag Manager. Many website builders let you paste your Google tag ID directly, and custom sites can install the tag manually. Tag Manager is helpful if you plan to add several tracking tags, such as ad pixels, or want to manage tracking without editing site code.
Why is GA4 not showing any data?
GA4 usually shows no data because the tag isn't installed correctly, it's installed on the wrong property, or a consent banner is blocking it. Check the Realtime report while browsing your own site, use your browser's developer tools or Tag Assistant to confirm the tag fires, and wait up to 30 minutes.
Do I need a cookie banner for Google Analytics?
It depends on where your visitors are. For visitors in the European Economic Area, Google requires consent signals to use certain measurement and advertising features. In the US, rules vary by state. Review the laws that apply to your customers and your privacy policy. This is not legal advice.
Should I set GA4 data retention to 14 months?
Most businesses should choose 14 months so explorations and funnel reports can compare the same period year over year. The setting doesn't affect standard aggregated reports. Choose a shorter period only if your privacy policy or legal advice requires it.
Was this guide useful
No reviews yet. Share your experience and help other readers.