Google Analytics 4 (GA4) is the free tool most websites use to see how many people visit, where they come from and what they do. The install takes about ten minutes. What takes longer, and what most beginners skip, is the handful of settings that make the data trustworthy. This guide walks you through creating the property, adding the code, checking it works and reading the first reports, with no jargon you have to guess at.
The key points
- You need a GA4 property, a web data stream and the measurement ID that starts with G-.
- Test with the Realtime report straight after installing.
- Change data retention, mark your key events and filter your own visits.
- Give it a few days before you trust any numbers.
Step 1: create the property
- Sign in to analytics.google.com with the Google account that will own the data. Use a company account, not a personal one that you may lose.
- Click Admin (the gear icon), then Create, then Property.
- Give it a name, choose your time zone and currency, and pick a business size that fits.
- Choose the goals that match you, such as getting leads or driving online sales. This only changes the default reports.
Step 2: create a web data stream
A data stream is the connection between your site and your property. Choose Web, enter your site address and give the stream a name. Leave Enhanced measurement on: it automatically records page views, scrolls, outbound clicks, site search, file downloads and video engagement without extra code. When the stream is created you will see a Measurement ID that starts with G-. Copy it.
Step 3: add the tag to your website
You have a few ways to do this. Pick one, not several, or you will count every visit twice.
- A settings field. Many website builders and dashboards have a box for the Analytics ID. Paste the G- code and save. This is the easiest option. If your site has an admin panel with a field like this, use it.
- A plugin. On WordPress, an official or well-reviewed plugin can add the tag for you.
- Google Tag Manager. Best if you plan to add more tags later.
- Manual code. Paste Google's gtag.js snippet in the head of every page, or in a shared layout file in frameworks like Next.js.
Step 4: check that it works
Open Reports, then Realtime in GA4. In another browser tab, visit your site, click around, then switch back. You should see yourself as 1 active user within a minute or so. If nothing appears:
- Check the ID for typos. It must be the one for this stream.
- Turn off ad blockers and privacy extensions in the test browser.
- Check whether a cookie banner is stopping the script from loading until consent is given.
- Make sure the tag is on every page and not just the homepage.
Step 5: the settings most beginners skip
Data retention
Go to Admin, then Data settings, then Data retention. The default for event data is short, and you can raise it to 14 months. Do this on day one so you can compare this season with last season later.
Key events
GA4 tracks many events, but only the ones you mark as key events count as the results that matter, such as a form submission, a purchase or a click on your phone number. Pick two or three actions that mean the visit was worth it and mark those. Without them, your reports tell you how many people came but not whether they did anything useful.
Filter internal traffic
Your own visits, and your team's, can distort small sites. Define your office IP address as internal traffic in the data stream settings and apply the filter once you have checked it works.
Link Search Console
If you use Google Search Console (and you should, see why your website might not be showing on Google), link it to GA4 so you can see search queries beside on-site behaviour.
Reading your first reports
| Report | What it answers |
|---|---|
| Acquisition | Where visitors come from: search, social, direct, email, other sites |
| Engagement, Pages and screens | Which pages get the most views and time |
| Engagement, Events | What people did, including your key events |
| Tech and demographics | Device, browser, country and city |
Do not read too much into the first few days. Numbers settle as data builds up, and some reports lag by a day. Start with three questions: where do my visitors come from, which pages do they land on, and what do they do next?
Privacy and consent
Analytics sets cookies and processes visitor data, and some regions require consent before you load it. If you serve visitors in the EU, the UK or other regulated areas, add a consent banner and check the rules with a legal adviser. Even where it is not required, a short privacy page that tells people what you track is good practice.
What to do with the data
- Find your five best landing pages and improve them first.
- Look at pages with many visits and few key events. They need a clearer next step.
- Track which blog posts bring traffic, then write more on those topics. Our digital marketing strategy guide shows how to use that insight.
Analytics is not magic, but it removes guessing. If you want help installing it properly across a custom site or setting up the events that matter for your business, the Node-devs team can do that as part of a build or as a one-off fix.




