Skip to content

How to set up Google Analytics 4

By Ash, Founder, HosteazePublished 3 min read

Go to analytics.google.com, create an account and property, then add a Web data stream for your site. Copy the Measurement ID that starts with G- into your website builder or plugin, or paste the Google tag into every page. Check the Realtime report within about 30 minutes, then set data retention and mark your key events.

Footprints in wet sand leading along the shoreline, like the trail of visits Google Analytics records on your website.
Credit: Pexels via Pixabay

Google Analytics 4, usually shortened to GA4, shows you who visits your website, where they came from and what they do. Setup takes about 20 minutes. The part people skip, and regret later, is the five minutes of settings afterwards.

How do I create the property?

How do I add my website?

How do I install the tag?

How you add it depends on how your site is built.

Your siteHow to installDifficulty
Wix, Squarespace or a similar builderPaste the G- ID into the builder's Google Analytics settingEasy
WordPressUse Site Kit by Google, the plugin Google officially supports, or your SEO plugin's analytics optionEasy
Custom-built sitePaste the Google tag straight after the opening <head> on every pageModerate
Already using Google Tag ManagerAdd a Google tag in Tag Manager with your G- IDModerate

Then open your site in a different browser or on your phone and check Reports > Realtime. Google says data can take up to 30 minutes to begin. If you see yourself, it's working.

Which settings should I change straight away?

GA4 uses cookies, so the UK's cookie rules (PECR) apply. As of October 2026, there's an exception for analytics used only to produce aggregate statistics to improve your site, as long as you tell visitors and give them a simple, free way to object. The ICO is clear that it doesn't cover tracking individuals or advertising. If you link GA4 to Google Ads or use it for remarketing, you need consent, and EU visitors generally need to opt in too. Our guide to whether you need a cookie banner explains the options, and your privacy policy should mention Analytics either way.

Once GA4 is collecting, connect it with Google Search Console, which shows the searches that bring people in. Together they tell you what's working, and what a good conversion rate looks like for your site.

Step by step

  1. 1.Create an account and property

    At analytics.google.com, click Start measuring, name your account, then create a property with your time zone and currency set to the UK and GBP.

  2. 2.Add a web data stream

    Choose Web, enter your website address and a stream name, leave enhanced measurement on and click Create stream.

  3. 3.Install the tag

    Copy the Measurement ID starting G- into your website builder or plugin, or paste the Google tag straight after the opening head tag on every page.

  4. 4.Check it works

    Visit your site in another browser and look for yourself in the Realtime report. Data can take up to 30 minutes to start.

  5. 5.Adjust settings

    Set data retention to 14 months and mark your enquiry or purchase events as key events.

Frequently asked questions

Do I need a cookie banner for Google Analytics in the UK?

As of October 2026, UK law exempts analytics used only for aggregate statistics to improve your site, provided you explain it and offer a simple way to object. Many GA4 setups go beyond that, for example when linked to Google Ads, so most businesses still ask for consent. Visitors from the EU generally need to give consent.

Is Google Analytics free?

The standard version is free. Analytics 360 is a paid version for large organisations, and you won't need it.

Why does GA4 show fewer visitors than my hosting statistics?

Hosting statistics count every request, including bots, while GA4 only counts visitors whose browsers run the tag and, where you ask for it, who give consent. Treat GA4 as a trend line rather than an exact headcount.

Sources

  1. Analytics Help, Set up Analytics for a website and/or app
  2. Analytics Help, Data retention
  3. Analytics Help, Mark events as key events
  4. ICO, Guidance on the use of storage and access technologies, what are the exceptions?
A long row of empty supermarket trolleys lined up and waiting, like the many website visitors who look around without buying.QuestionWhat is a good website conversion rate?For online shops, around 1% to 2% of visits turning into orders is typical. Statista puts Great Britain at about 1.67% in early 2026. Enquiry-based businesses have no reliable public benchmark, because "conversion" means something different on every site. The most useful benchmark is your own rate, measured consistently and improved month by month.Marketing · 25 November 2026A red Royal Mail post box set against a Cotswold stone wall, a reminder that every newsletter tool is really a way of posting to your customers.ComparisonMailchimp alternatives for small businessesAs of October 2026, Mailchimp's free plan covers 250 contacts and 500 emails a month. EmailOctopus, a London-based service, offers far more on its free plan, with 2,500 subscribers and 10,000 emails a month. Brevo suits larger lists sent in small daily batches, and MailerLite suits people who want a polished editor and automation.Marketing · 23 November 2026A quiet English high street of independent shops in black and white, the kind of local businesses that compete in Google's map results.GuideLocal SEO checklist for small businessesStart with a complete, verified Google Business Profile, then build a steady flow of genuine reviews. Make your name, address and phone number identical everywhere, claim the main map and directory listings, and give your website a clear page for each service and area. Finally, connect Search Console and check progress monthly rather than daily.Marketing · 21 November 2026An old coin-operated parking meter with its needle near empty, much like Google Ads traffic, which stops when the money does.QuestionIs Google Ads worth it for a small business?Google Ads is worth it when people actively search for what you sell, a new customer is worth much more than a few clicks cost, and your website turns visitors into enquiries. It rarely pays for products nobody searches for, very low-value sales or a weak website. Test with a small budget and track every enquiry before scaling up.Marketing · 20 November 2026A bakery window full of cakes and pastries, each with a small handwritten card naming it, like the short descriptions that sell a page in search results.TutorialHow to write meta descriptionsWrite one or two plain sentences telling searchers what the page offers and why they should click, using the words they'd search for. Make each page's description unique, aim for roughly 150 characters so it isn't cut short, and include a specific detail such as a location, price guide or opening hours. Google may still pick its own snippet.Marketing · 18 November 2026

Put your website online

Everything above starts with a website that is up and easy to reach.

See hosting plans