9 Ways to Set Up Google Analytics Tracking in GA4
Table of Contents
Google Analytics tracking tells you how people find your website, what they do once they arrive, and whether they take the actions that matter to your business. Get the setup right and every marketing decision after it rests on numbers you can trust.
The trouble is that plenty of GA4 setups look fine and quietly collect the wrong data. The tag is there, but goals aren’t configured, consent isn’t wired up, and the reports mislead. This guide covers nine ways to set up Google Analytics tracking, which one suits your business, and how to stay compliant in the UK and Ireland.
What Google Analytics Tracking Does in GA4
Google Analytics tracking is the process of collecting data about your visitors: where they came from, which pages they view, how long they stay, and what they do next. GA4 is the current version, and it works differently from the Universal Analytics most people used until 2023.
The big change is the data model. Universal Analytics grouped activity into sessions. GA4 records everything as an event, so a page view, a scroll, a form submission and a video play are all events you can measure. That gives you finer detail, but it also means the configuration needs more thought up front. Clean tracking is the foundation every other channel sits on, which is why accurate data underpins any serious search engine optimisation or paid campaign.
Measurement ID vs Tracking ID: What Changed
Many site owners go looking for their “tracking ID” and follow instructions that no longer apply. This is one of the most common sources of confusion in analytics tracking.
The old Universal Analytics format was UA-XXXXXXX-X. That format is dead. GA4 uses a Measurement ID that starts with G-. If a UA code is still pasted anywhere on your site, nothing is being tracked. To find your Measurement ID, open Admin, pick your GA4 property, click Data Streams, select your web stream, and read the ID from the top right. That is the code that goes into your site or your tag manager. It’s a frequent catch during a WordPress site audit, where old plugins still hold a UA code from a previous Google Analytics configuration.
The 9 Ways to Set Up Google Analytics Tracking
There is no single correct way to set up Google Analytics tracking. The right method depends on your platform, your technical comfort, and how much control you need. The table below compares nine methods, from the quick and simple to the advanced.
| Method | Best For | Skill Needed |
|---|---|---|
| 1. Google Tag Manager | Most SME websites | Low to medium |
| 2. Manual gtag.js snippet | Simple static sites, developers | Medium |
| 3. CMS plugin (Site Kit, MonsterInsights) | WordPress owners | Low |
| 4. Native CMS integration (Shopify, Wix, Squarespace) | Hosted-platform stores | Low |
| 5. Server-side GTM | Privacy and page-speed priorities | High |
| 6. Measurement Protocol | Offline and app-to-web events | High |
| 7. BigQuery export | Raw data ownership and analysis | High |
| 8. Firebase | Mobile app tracking | Medium to high |
| 9. Third-party CDP (Segment, RudderStack) | Enterprises scaling past Google | High |
For most small businesses, the choice comes down to two: a tag manager or a plugin. Developers who want the leanest possible page often hardcode the snippet. Larger operations with a data team reach for server-side tracking, BigQuery or a customer data platform. The one rule that saves grief is to pick a single primary method. Running a plugin and Google Tag Manager at once is the fastest route to double-counted data. If your setup needs custom code or a server-side move, that is usually the point to bring in a web developer rather than guess.
Setting It Up With Google Tag Manager
Google Tag Manager suits most SME websites, so it’s worth walking through. It acts as a container: instead of editing site code every time your tracking changes, you manage GA4, conversion tags and consent from one place.
The short version: create a Tag Manager account and a container for your site, paste the two GTM snippets into your pages, then inside GTM create a Google Analytics GA4 Configuration tag, drop in your Measurement ID, and set it to fire on all pages. Test in Preview Mode before you publish. Once it’s live, future changes to your analytics and tracking setup happen in GTM, with no developer needed for routine edits. That split suits any business where a marketing team and a web team work separately.
The UK Compliance Layer: PECR, UK GDPR and Consent Mode v2
This is the part most global guides skip, and for a UK or Irish business it’s the part that carries legal risk. Google Analytics uses cookies and collects personal data, including IP information and browsing behaviour. Under UK GDPR and the Privacy and Electronic Communications Regulations (PECR), analytics cookies count as non-essential, so GA4 must not fire until the visitor has actively accepted them.
This isn’t a theoretical concern. The ICO in the UK and the Data Protection Commission in Ireland have both acted against analytics setups that ignore consent. Plenty of Northern Ireland sites show a cookie banner that looks right but lets the tag fire on page load anyway, which defeats the point.
Consent Mode v2 is Google’s answer. Since March 2024, it has been a requirement for UK and EEA advertisers using Google’s measurement and ad products. It lets GA4 run in a limited, privacy-safe mode when someone declines, filling reporting gaps with modelled data instead of going dark. Set it up through a certified consent platform wired into Google Tag Manager, and test that nothing fires before consent is granted. If you’re building forms as well, the same principles run through GDPR-compliant web forms, and GDPR training helps if your team makes the consent calls.
Conversion Tracking: Measuring What Matters
Raw traffic tells you how many people visited. Conversion tracking tells you which of them did something that mattered. In GA4, conversions are built from events, and the ones that count for an SME usually need setting up by hand: contact form submissions, phone clicks, quote requests and purchases.
In GA,4 you mark any event as a Key Event, and it then flows into your Conversions report and can be imported into Google Ads. If your contact form doesn’t redirect to a thank-you page, you’ll track it with a custom trigger in Google Tag Manager that fires on form success. Knowing which pages drive enquiries is exactly the data that shapes budget, and it’s the same signal behind smarter conversion work across a site.
How to Check Your Tracking Is Working
Installing the tag is step one. Confirming it collects clean data is step two, and it’s the step most people skip. Three quick checks cover it.
Open GA4’s Real-Time report, then browse your own site in another tab. Your session should appear within about 30 seconds; if it doesn’t, the tag isn’t firing. Next, run the Google Tag Assistant Chrome extension, which shows exactly which tags fire on a page and flags mismatched Measurement IDs or a consent block stopping the tag. Finally, in Admin, Data Streams, check your web stream shows recent activity. If you have real traffic and it reports nothing for 48 hours, something in the Google Analytics configuration is wrong.
Beyond Setup: What Good Tracking Unlocks
Once the base is solid and consent is handled, GA4 offers a lot that most SME sites never touch. Enhanced Measurement collects scrolls, outbound clicks, site search, file downloads and video engagement with no extra code, which is handy if you run YouTube content as part of video marketing. You can build audiences from behaviour, such as people who viewed pricing but didn’t enquire, and push them to Google Ads for remarketing. GA4’s predictive metrics, including churn and purchase probability, start to earn their keep once you have clean data feeding them, and getting a team ready to use signals like that is where AI training pays off.
Good tracking also feeds your content. Once conversion data flows cleanly, you can connect Search Console, link Google Ads, and see which pages actually pull their weight, a habit covered in analytics for content. Learning to read these reports in-house is what digital training is built for.
“A broken or misconfigured analytics setup is one of the most common findings when we audit a new client site,” said Ciaran Connolly, founder of ProfileTree. “Businesses have been making decisions on data they couldn’t trust for months. Getting the foundation right first changes everything downstream.”
FAQs
A few questions come up on almost every setup. Short answers below.
What is a Measurement ID in Google Analytics?
It’s the identifier for a GA4 property and starts with G-. It replaced the old Universal Analytics tracking ID that began with UA-.
Do I need a cookie banner to use Google Analytics in the UK?
Yes. Analytics cookies are non-essential, so under PECR and UK GDPR you must not load GA4 before a visitor accepts your cookie notice.
What is Google Analytics Consent Mode v2?
It’s a Google framework, required for UK and EEA advertisers since March 2024, that lets tags run in a limited mode when consent is declined and fills the gaps with modelled data.
Can I use two setup methods at once?
Better not to. Running a plugin and Google Tag Manager together usually double-counts your data. Pick one primary method.