Skip to content

9 Ways to Set Up Google Analytics Tracking in GA4

Updated on:
Updated by: Ciaran Connolly

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.

MethodBest ForSkill Needed
1. Google Tag ManagerMost SME websitesLow to medium
2. Manual gtag.js snippetSimple static sites, developersMedium
3. CMS plugin (Site Kit, MonsterInsights)WordPress ownersLow
4. Native CMS integration (Shopify, Wix, Squarespace)Hosted-platform storesLow
5. Server-side GTMPrivacy and page-speed prioritiesHigh
6. Measurement ProtocolOffline and app-to-web eventsHigh
7. BigQuery exportRaw data ownership and analysisHigh
8. FirebaseMobile app trackingMedium to high
9. Third-party CDP (Segment, RudderStack)Enterprises scaling past GoogleHigh

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.

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.

Leave a comment

Your email address will not be published.Required fields are marked *

Web Design

Web Design

We design stunning, user focused websites that present your brand beautifully and convert visitors into customers.

Web Development

Web Development

We use the latest development tools to build websites that are optimised for peak performance at all times.

Website Management

Website Hosting

We manage everything from site updates and reports to hosting, allowing you to focus on running your business.

Search Engine Optimisation

Search Engine Optimisation

Using the latest SEO techniques, we help your brand get found for the right terms and by the right people.

Digital Marketing Strategy

Digital Marketing Strategy

Navigate the digital landscape with a marketing strategy. Our team crafts comprehensive plans that resonate with your target audience, drive engagement, and boost conversions.

Digital Marketing Training

Digital Marketing Training

Elevate your digital proficiency. Our in-depth training sessions equip your business with cutting-edge digital marketing techniques to outperform competitors and thrive online.

Social Media Strategy

Social Media Strategy

Captivate and grow your social following. We create tailored social media strategies that ignite engagement, amplify your brand's online presence, and foster lasting connections.

Email Marketing Solutions

Email Marketing Solutions

Harness the power of your mailing list. Our precision-targeted email marketing campaigns are engineered to nurture relationships and drive tangible business outcomes.

Content Marketing Services

Content Marketing Services

Elevate your brand with our content marketing mastery. From thought-provoking blogs to eye-catching infographics, we craft content that captivates, informs, and converts your ideal audience.

Video Production

Video Production

Capture your audience with compelling video content. Our production team creates visual stories that engage, inform, and leave a lasting impression.

Brand Storytelling

Brand Storytelling

Bring your brand's story to life with authenticity. We craft compelling narratives that strike a chord with your audience, forging a powerful emotional bond with your brand.

Content Strategy Development

Content Strategy Development

Strategic content that drives action. We develop content strategies that align with your business goals, ensuring every piece of content counts.

AI Training

AI Training

Empower your business with AI expertise. Our tailored training demystifies AI, equipping your team with the knowledge to leverage its potential for growth and innovation.

AI Chatbots

AI Chatbots

Transform customer service with AI chatbots. We develop sophisticated chatbots that elevate user experience, streamline interactions, and deliver unparalleled efficiency.

AI Marketing

AI Marketing

Transform your reach with AI-driven marketing. Harness data-driven insights for laser-targeted campaigns that captivate, engage, and convert your audience.

AI Tools for Business

AI Tools for Business

Optimise your operations with cutting-edge AI tools. We integrate intelligent solutions that streamline processes, enhance efficiency, and support data-driven decision-making.

Join Our Mailing List

Grow your business with expert web design, AI strategies and digital marketing tips straight to your inbox. Subscribe to our newsletter.