Setting up Google Analytics 4 takes eight steps: create a property, add a web data stream, install the Google tag, switch on enhanced measurement, mark two to four key events, set data retention to 14 months, exclude your own visits, and connect your consent banner. Then check that data arrives. It fits in an afternoon. The steps are easy. Deciding what you want to know is the hard part, so that is where this guide starts. We rewrote it in November 2026 against Google's current help pages, which are linked at each step.
Before you start: three questions
An analytics setup that tracks everything answers nothing. Write down the answers to these first:
- What counts as a result? A contact form, a phone call, a booking, an order, a quote request.
- Where do visitors come from? Search, ads, social media, email, other sites.
- Which pages do the work? The pages people land on and the pages they see before a result.
Everything below serves those three questions. If a setting or an event doesn't help answer one of them, leave it for later.
Step 1: create the account and the property
Go to analytics.google.com and create an account if you don't have one, then a property. Google's setup instructions list the details it asks for: a property name, the reporting time zone and the currency. Set the time zone to where your business operates, so that a day in your reports matches a day in your calendar. You need the Editor role on the account to do this. Use a company Google account, not a personal one, so access doesn't leave with one employee.
Step 2: add a web data stream
In Admin, open Data Streams, add a stream and choose Web. Enter your website address and a name. Leave enhanced measurement switched on, which Google recommends. When the stream is created you'll see its Measurement ID, which starts with "G-". That ID is what connects your website to the property.
Step 3: install the Google tag
There are three ways to do it. Pick one.
| Method | Use it when | How |
|---|---|---|
| Built-in integration | Your platform has a Google Analytics field, as Shopify, Wix and WordPress plugins do | Paste the Measurement ID |
| Code snippet | You or your developer can edit the site template | Paste the tag immediately after the opening head tag on every page |
| Google Tag Manager | You run several tags or expect to add more | Add the Google tag in Tag Manager |
Use one method only. A tag installed twice, for example through a plugin and again in the template, counts every visit double, and it's one of the most common faults in existing setups. Google notes that data collection may take up to 30 minutes to begin.
Step 4: check what enhanced measurement already tracks
With enhanced measurement on, GA4 records a useful set of events without any extra code:
- Page views, on every page load.
- Scrolls, the first time a visitor reaches the bottom of a page (90% depth).
- Outbound clicks, on links to another domain.
- Site search, when a search results page loads.
- Video engagement, for embedded YouTube videos.
- File downloads, for links to common file types such as PDFs.
- Form interactions, when a visitor starts and submits a form.
That covers a lot. Two cautions. Test the automatic form tracking against real submissions before you trust it, because not every form is built the way the detection expects. And notice what is missing from the list: clicks on phone numbers and email addresses are not on it, so if calls and emails matter to you, they need their own event.
Step 5: mark your key events
Google defines a key event as an event that measures an action that's particularly important to the success of your business. You create or identify the event, then mark it as a key event, and from then on it shows up in reports. Older guides call these conversions. Google now keeps that word for Google Ads, where a conversion can be created from an Analytics key event.
For most business websites, two to four key events are enough:
- A submitted contact or quote form.
- A click on your phone number or email address.
- A completed booking.
- A purchase, if you sell online.
Where Google has a recommended event name for the action, use it. generate_lead is the recommended event for a submitted form or request for information, and purchase for an order. Google's reason is practical: recommended names with their prescribed parameters give you the most detail in reports and let you benefit from future features. Resist marking everything as a key event. If a newsletter click and a signed order count the same, the total tells you nothing.
Step 6: set data retention to 14 months
This is the setting people most often miss. For standard properties, GA4 lets you keep user-level and event-level data for either 2 months or 14 months (data retention). The setting only affects explorations and funnel reports, not the standard aggregated reports. But explorations are where you'll go the first time you have a real question, and with the shorter period you can't compare with the same month last year. Check the setting in Admin under data retention and choose 14 months, provided that fits your own privacy policy.
Step 7: exclude your own visits
On a site with modest traffic, you and your colleagues can be a large share of the visits. GA4 handles this in two parts, described in Google's guide to filtering internal traffic: first define internal traffic by IP address in the data stream's tag settings, then create a data filter that excludes it. Start the filter in Testing, confirm it catches the right visits, and only then set it to Active. Two warnings from the same page: a filter can take 24 to 36 hours to apply, and once it's active the effect is permanent, because excluded data is never processed.
Step 8: connect consent
If you have visitors in Europe, analytics has to respect the choice they make in your cookie banner. Google's consent mode passes that choice to its tags through four signals, including analytics_storage for analytics cookies, and it expects a default state to be set before any tag sends data. A banner that looks fine but isn't wired to those signals is a common silent failure. Our guide to Consent Mode v2 for EU websites explains the setup and the difference between the basic and advanced versions. This is practical guidance, not legal advice.
Check that it works
Open your website in one tab and the Realtime report in another, which is what Google suggests for confirming that data is arriving. Then test like a visitor:
- Load the site in a private window and accept the cookie banner. Your visit should appear.
- Click through three pages and check that each page view is recorded once, not twice.
- Submit a test form and click your phone link. Check that the right events arrive.
- Repeat after declining the banner, and confirm the behaviour matches what your banner promises.
For a closer look, GA4 has DebugView, a real-time report that shows events one by one as they come in from a device with debug mode switched on.
Link Search Console
GA4 shows what people do on your site. Search Console shows what they searched for before they arrived. Link the two under Product links in Admin and you get two extra reports, one with search queries and one with organic landing pages (Search Console integration). You need the Editor role in Analytics and you must be a verified owner of the Search Console property. The reports are unpublished by default, so publish them from the Library after linking.
The reports worth opening
You don't need a dashboard project. Three views, once a month, answer the three questions from the start:
- Traffic acquisition, to see which channels bring visits and which bring key events.
- Landing pages, to see which pages people arrive on and what happens next.
- Key events, to see how many results you had and where they came from.
Write down three numbers each month: visits, key events and the share of visits that produced one. A short record like that will tell you more over a year than any amount of time spent exploring the interface.
Mistakes we see most often
- The tag is installed twice. Every figure is doubled and nobody notices for months.
- No key events. Visits are counted, results aren't, so nobody can say which channel works.
- Retention left at 2 months. The year-on-year comparison is gone when you finally need it.
- The team's own visits are counted.
- The banner and the tag don't talk to each other. Either consent is ignored, or all data is lost.
- Too many events. Forty custom events that nobody looks at make the useful four harder to find.
Measurement is the dull foundation under every decision about a website, from local SEO to conversion work. Neurova AI sets up analytics, consent and tags as part of our SEO and marketing work. If you're not sure your numbers can be trusted, send us the site and we'll check the setup.
Frequently asked questions
How do I set up GA4 for my website? Create a Google Analytics account and property, add a web data stream for your site, and install the Google tag using your website platform's built-in field, the code snippet or Google Tag Manager. Turn on enhanced measurement, mark your most important actions as key events, set data retention to 14 months, exclude your own visits and connect your consent banner. Then check the Realtime report.
What are key events in GA4? A key event is an event that measures an action that is particularly important to the success of your business, such as a submitted contact form, a booking or a purchase. You create or pick the event that records the action and mark it as a key event. Key events then appear in your reports, so you can see which channels and pages produce them.
How long does GA4 keep my data? For standard properties you can choose between 2 months and 14 months for user-level and event-level data. The setting only affects explorations and funnel reports. Standard aggregated reports are not limited by it. Choose 14 months if you want to compare this year with last year in your own explorations.
How soon will I see data after installing GA4? Google says data collection may take up to 30 minutes to begin. After that, open your website in another tab and watch the Realtime report to confirm that your visit and your test actions appear. Processed data in the standard reports follows later.
