Is this guide for you?
- Who it's for
- Small business owners with a website on WordPress, Shopify, Wix, Squarespace or similar, or a developer who'll add a tag for them
- Anyone who isn't sure whether their site already has Analytics, or who set it up years ago
- Not for
- Apps, or sites with complex tracking across several domains. Those need a tracking specialist.
- Choosing which actions to count as key events. That's our GA4 key events guide.
- Legal advice on cookies and consent. We point you to the ICO's guidance, but your setup decides what applies.
- Reading time
- About 15 minutes
- Hands-on time
- About 1 to 3 hours of hands-on time, depending on your website and whether a consent banner needs setting up. Allow extra if a developer has to make the changes.
- Waiting on others
- Realtime data usually appears within minutes of a test visit. Standard reports take longer, and Search Console data and sitemap processing can take a few days. Domain verification can wait on your DNS change going live.
- When you've finished
- One GA4 property and one Search Console property that your business owns, a single Google tag installed through one route, consent set up before data collection, and test results showing page views, one meaningful event and your sitemap working.
Pick one installation route
Choose the one that matches how your site is built, and use only that one. Installing through two routes is a common cause of double-counted data. We checked these options against Google's and Shopify's help pages on 29 October 2026; platforms rename and move things, so follow their current help if yours looks different.
- WordPressSelf-hosted WordPress sitesSite Kit, Google's own free WordPress plugin, connects Analytics and Search Console. If a theme setting, another plugin or your developer already adds a tag, remove that first, or use that route instead of Site Kit.
- ShopifyShopify storesShopify's help says to install the Google & YouTube sales channel (app) and connect GA4 through it. Don't also paste a tag into your theme code, or the same visits are counted twice.
- Wix, Squarespace and other hosted buildersSites built in a hosted website builderGoogle's setup help says that if your builder has a Google Analytics field, you paste your Measurement ID (it starts with G-) into it. Check the builder's help pages for that field and for its cookie banner options.
- Google Tag Manager or a developerCustom-built sites, or sites already using Tag ManagerAdd a Google tag in Tag Manager (or have your developer add the gtag code once on every page). Set it up to respect consent. Tell anyone else with access so nobody adds a second copy.
Before you start11 steps · about 15 minutes
Before you start
- A Google account your business will keep long term, ideally on a business email
- Admin access to your website, or your web developer's help
- For a Domain property in Search Console: access to your domain's DNS settings (or whoever manages them)
- Your cookie banner or consent tool login, if you have one
- A list of anyone who might have set up Analytics before: past web designers, agencies, staff
Good to know: Set these up on a business account and add colleagues or your agency as users. Never share one login: if that person leaves, the data can leave with them.
Part 1Check what's there
Step 1 of 11Part 1 · Check what's there
1Check for existing properties and tags
Before you create anything, find out what's already there. Ask past web designers or agencies, search your Google account for Analytics access, and check your website for a tag that's already installed.
Ways to check your site - Use Google's Tag Assistant to visit your site and see which Google tags fire.
- Or right-click your homepage, choose View page source, and search for
G-orGTM-. - Check your CMS for analytics plugins, theme settings or Shopify apps that add Google tags.
- You should see
- You know whether a GA4 property already exists, who owns it, and every place a tag is being added.
- If it goes wrong
- Finding a tag with an ID nobody recognises. Don't just add another. Track down who owns that property, or remove the old tag before installing yours.
- How to check it worked
- Write down each Measurement ID or Tag Manager ID you found and where it's added.
Only tick Verified once you've done the check above and seen the result. Ticking boxes here can't confirm the setup itself works.
Stuck on this step?Step 2 of 11Part 1 · Check what's there
2Sort out ownership and access
If a property already exists, ask whoever controls it to give your business account the Administrator role. If you're starting fresh, create the account on your business login. Give other people only the access they need: an agency usually needs Editor or Marketer, someone reading reports only needs Viewer.
Menu path in GA4 (menu names checked 29 October 2026; they change) 
Admin (gear icon, bottom left) → under Account or Property, Access management → the list shows each person's email and role. To add someone: + → Add users → enter their email, choose a role → Add.
Example of what a healthy list looks like (fictional):
owner@saltywhisk.co.uk · Administrator,partner@saltywhisk.co.uk · Administrator,help@agency.example · Editor.- You should see
- Your business account is an Administrator on the GA4 account, and at least one other trusted person also has admin access.
- If it goes wrong
- The only admin is an old agency or ex-employee who isn't responding. You may have to start a new property and lose the old data, so ask early.
- How to check it worked
- Open Access management at account level and read the list of users and roles. Your business email should show Administrator.
Only tick Verified once you've done the check above and seen the result. Ticking boxes here can't confirm the setup itself works.
Stuck on this step?Step 3 of 11Part 1 · Check what's there
3Set up consent before you collect data
In the UK, analytics cookies and similar technology generally need consent, and the ICO's guidance describes when an exception might apply. Read the box below before installing anything, then set up your cookie banner (or check your existing one) so GA4 waits for, and respects, each visitor's choice.
What "respects the choice" means in practice If someone declines, your setup shouldn't set analytics cookies for them. If you use Google's Consent Mode, your banner tells Google tags what each visitor chose. Exactly how that behaves depends on your configuration, so test it (step 11).- You should see
- A banner appears for new visitors with a clear choice, and your tag is set to follow it.
- If it goes wrong
- A banner that's only for show: the tag loads and sets cookies before anyone clicks.
- How to check it worked
- Covered in the validation checks below: decline, then look for analytics cookies.
Part 2Google Analytics 4
Step 4 of 11Part 2 · Google Analytics 4
4Create your GA4 property
If you don't already have one, go to analytics.google.com and start a new account named after your business. Create a property with the reporting time zone set to United Kingdom and the currency set to British pound, then add your business details.
Menu path in GA4 (menu names checked 29 October 2026; they change) 
Admin (gear icon, bottom left) → + Create button (top left; it is also at the top of the Reports page) → Property → property name (for example "The Salty Whisk website"), reporting time zone United Kingdom, currency British pound (£) → Next → industry and business size → Next → how you plan to use Analytics → Create.
- You should see
- One property for your website, owned by your business account.
- If it goes wrong
- Creating a second property when one already exists. Use the existing one if you can get admin access.
Step 5 of 11Part 2 · Google Analytics 4
5Add a web data stream
Choose Web, enter your website address and a stream name. Enhanced measurement can track things like scrolls, outbound clicks and file downloads; leave it on unless you have a reason not to. Then open the stream and copy the Measurement ID, which starts with G-.
Menu path in GA4 (menu names checked 29 October 2026; they change) 
Admin → under Data collection and modification, Data streams → Add stream → Web → website URL and stream name → Create stream. To find the ID later: Data streams → your stream → Stream details → Measurement ID.
A Measurement ID looks like
G-AB12CD34EF(made-up example).- You should see
- A web stream for your domain and a Measurement ID copied somewhere safe.
Step 6 of 11Part 2 · Google Analytics 4
6Install the tag through one route
Use the route you picked from the four above, and only that one. If you found an old tag in step 1, remove or replace it now.
- You should see
- One Google tag for your Measurement ID on every page.
- If it goes wrong
- A plugin and a hand-pasted tag both running. Every page view is counted twice and your numbers look better than they are.
- How to check it worked
- Run Tag Assistant again: your Measurement ID should appear once.
Only tick Verified once you've done the check above and seen the result. Ticking boxes here can't confirm the setup itself works.
Stuck on this step?Step 7 of 11Part 2 · Google Analytics 4
7Set retention and internal traffic
In GA4 Admin, find data retention and choose how long detailed event data is kept. Google's help (checked 29 October 2026) gives 2 or 14 months for standard properties, and says the setting affects explorations and funnel reports, not the standard reports. Then define your office or home IP addresses as internal traffic, and test the filter before you switch it on.
Menu path in GA4 (menu names checked 29 October 2026; they change) 
Retention: Admin → Data collection and modification → Data retention (Google's help page calls it Data settings → Data retention) → event data retention 14 months → Save.
Internal traffic: Admin → Data streams → your web stream → Configure tag settings → Show more → Define internal traffic → Create → rule name (for example "Office"),
traffic_typevalueinternal, IP address equals your office's public IP address. The matching data filter starts in Testing.- You should see
- Retention set to the period you want, and an internal traffic rule in testing.
- If it goes wrong
- Switching the internal traffic filter straight to active. Google says active filters make permanent changes: a mistake can exclude real visitors, and filtered-out data can't be recovered.
- How to check it worked
- With the filter in Testing, browse your site, then look in an exploration for the "Test data filter name" dimension: your visits should carry the filter's name. Only then set it to Active.
Part 3Search Console
Step 8 of 11Part 3 · Search Console
8Add your site to Search Console
Go to search.google.com/search-console and add a property. A Domain property covers every version of your site (www, non-www, http and https) and is verified with a DNS record. A URL-prefix property covers one exact address and can be verified with an HTML file, a meta tag, Google Analytics or Tag Manager.
Menu path in Search Console (menu names checked 29 October 2026; they change) 
Property list (top left) → + Add property → Add a website (the same screen now also offers Instagram, TikTok, X and YouTube profiles; ignore those) → choose Domain or URL prefix → enter your address → Continue → follow the verification steps shown (for a Domain property, copy the TXT record into your domain's DNS settings, then Verify).
- You should see
- Search Console shows you as a verified owner.
- If it goes wrong
- DNS verification not found yet. DNS changes can take time to go live; wait and try again, and check the record was added exactly as given.
- How to check it worked
- In Search Console settings, users and permissions lists your account as owner.
Only tick Verified once you've done the check above and seen the result. Ticking boxes here can't confirm the setup itself works.
Stuck on this step?Step 9 of 11Part 3 · Search Console
9Submit your sitemap
In Sitemaps, enter your sitemap address. WordPress commonly uses /wp-sitemap.xml, or /sitemap_index.xml with Yoast or Rank Math. Shopify uses /sitemap.xml. If you're not sure, check your platform's help or your robots.txt file.
Menu path in Search Console (menu names checked 29 October 2026; they change) 
Left-hand menu → Indexing → Sitemaps → under Add a new sitemap, type the end of the address (for example sitemap.xml) → Submit. The sitemap then appears in the Submitted sitemaps table.
- You should see
- The sitemap is listed. Its status may show as pending at first.
- If it goes wrong
- Status "Couldn't fetch" or errors. Open the sitemap address in your browser: if it doesn't load, the address is wrong or the sitemap isn't switched on.
- How to check it worked
- Come back after a few days: the status should read Success, with a number of discovered pages that looks about right.
Only tick Verified once you've done the check above and seen the result. Ticking boxes here can't confirm the setup itself works.
Stuck on this step?Step 10 of 11Part 3 · Search Console
10Link Search Console to GA4
In GA4 Admin, find product links, then Search Console links, and link your property and web stream. Google's help (checked 29 October 2026) says you need the Editor role on the GA4 property and to be a verified owner of the Search Console property.
Menu path in GA4 (menu names checked 29 October 2026; they change) 
Admin → under Product links, Search Console links → Link (in the link table) → follow the prompts to choose your Search Console property, then your web stream → confirm.
You should then see a row for the link in the Search Console links table.
- You should see
- The link shows in GA4 Admin. Search Console reports can take a day or two to appear in GA4.
Part 4Prove it works
Step 11 of 11Part 4 · Prove it works
11Run the validation checks
Work through the validation table below. Do each check yourself, write down what you saw, and only tick Verified when you've seen the expected result.
What a working setup looks like (Reports → Realtime; checked 29 October 2026) 
Open your site in another tab, then watch the Realtime overview: you should see yourself as an active user, your page title under Views by Page title, and page_view and session_start under Event count by Event name.
- You should see
- Every row in the table matches what you saw.
- If it goes wrong
- Any row that doesn't. Use the "if not" column, fix it, and test again.
- How to check it worked
- Keep a note of the date and what you saw, so you can compare after any website change.
Only tick Verified once you've done the check above and seen the result. Ticking boxes here can't confirm the setup itself works.
Stuck on this step?
All 11 steps worked through
Checklist complete.
You've still got some steps to work through. Use the dots above, or the step list, to jump back to them.
Full house! Now prove it's measuring properly. A finished checklist means you've worked through every step. It doesn't prove everything is set up correctly, so do the checks below before you rely on it.
- Page views show up once per page, and only in line with each visitor's consent choice.
- Declining analytics stops analytics cookies being set (or matches your documented Consent Mode setup).
- A test enquiry shows up as an event, once.
- Search Console lists your business account as a verified owner, and your sitemap shows Success.
- Your privacy and cookie wording has been checked against the ICO's current guidance.
Keep a copy of the whole guide, with every step, tip and source, for next time.
Stuck on anything? Tell us where and we'll pick it up from there.
Consent: what the ICO says
Under UK rules on cookies and similar technologies (PECR), you generally need consent before storing or reading non-essential information on someone's device. The ICO's guidance describes some exceptions, including one for certain statistical purposes. That exception is conditional: it depends on what the technology does, how it's configured and what you tell visitors. It isn't a blanket exemption for GA4, and it doesn't cover advertising features.
- What to doRead the ICO's current page on the exceptions (linked in the sources, with the date we checked it), compare it with how your setup actually works, and get advice if you're unsure. If you rely on consent, make sure analytics waits for it.
- What not to doDon't copy a claim that "GA4 doesn't need consent" from another website. Whether anything applies depends on your configuration and what you do with the data.
This is general information, not legal advice. The ICO guidance and the law can change; check the source before relying on this section.
Validation checks
Do these after installing, and again after any website or consent change. Use a fresh private browser window for each consent test, so earlier choices don't carry over.
| Check | How | You should see | If not |
|---|---|---|---|
| Page views | Accept analytics, then visit three pages. | Your visit and those page views in GA4 Realtime or DebugView within minutes. | Check the Measurement ID matches your stream and the tag is on every page. |
| Duplicate tags | Run Tag Assistant on two or three pages. | Your Measurement ID once per page, and one page_view per page load. | Remove the extra route (plugin, theme setting, app or hand-pasted code). |
| Consent declined | New private window, decline non-essential cookies, browse two pages. | No analytics cookies (names starting _ga) in your browser's developer tools. Any data sent should match your Consent Mode setup. | Your tag is loading before the banner choice. Fix the banner or tag settings before going further. |
| Consent accepted | New private window, accept, browse two pages. | Analytics cookies set, and the visit in Realtime. | Check the banner passes the choice to your Google tag. |
| A meaningful event | Send a test enquiry from your own contact form (to yourself, never a customer). | The matching event in DebugView or Realtime, once. | See our key events guide for setting it up. |
| Internal traffic | Browse from your office with the filter in testing. | Your visits labelled as internal. | Check the IP address rule; addresses can change. |
| Search Console access | Open Settings, then Users and permissions. | Your business account listed as owner. | Repeat verification, or ask the current owner to add you. |
| Sitemap | Open Sitemaps a few days after submitting. | Status Success and a sensible number of discovered pages. | Open the sitemap URL yourself; fix the address or the plugin setting. |
Words used in this guide
- Account
- The top level in Google Analytics, usually one per business. It holds one or more properties.
- Property
- Where the data for your website (or app) is collected and reported. Settings such as time zone, currency and retention live here.
- Data stream
- The connection between a property and a website or app. A web stream has its own Measurement ID.
- Google tag
- The small piece of code (or plugin, app or builder setting) that sends data from your website to GA4.
- Measurement ID
- The ID for your web stream, starting with G-. Your tag uses it to know where to send data.
- DNS
- The settings at your domain provider that point your domain to your website and email. Search Console's Domain verification adds a TXT record here.
- Consent Mode
- A Google feature that lets your cookie banner tell Google tags what each visitor chose. How it behaves depends on how it's set up.
GA4 or Search Console: which does what?
Search Console covers everything before the click: the searches you appear for, impressions, clicks, average position and any problems Google has indexing your pages. GA4 covers everything after the click: where visitors came from, which pages they view and which key events they complete.
Best-practice tips
- One tag, oncePick one installation route. A plugin plus a hand-pasted tag means double-counted visits.
- Own your dataKeep the GA4 and Search Console properties on a business account, with at least two admins.
- Test after changesRe-run the validation checks after a new theme, plugin, cookie banner or developer change.
- Consent firstSet up and test your banner before you start collecting data, not after.
- Track what mattersVisits are nice. Enquiries, calls, bookings and sales pay the bills. Make those your key events.
- Check in monthlyLook at Search Console's Performance report and GA4's traffic and key events once a month, not once a year.
Questions, answered
Are GA4 and Search Console free?
Yes, both are free Google tools.
I had the old Google Analytics. Do I need to do anything?
Yes. Universal Analytics stopped collecting data in 2023, so if you haven't set up a GA4 property, your site isn't being measured. Check step 1 first in case someone already has.
Domain or URL-prefix property?
Domain if you can add a DNS record: it covers every version of your site. URL prefix is quicker if you already have GA4 or Tag Manager on the site.
Does GA4 need cookie consent?
Generally, analytics cookies need consent in the UK. The ICO describes a conditional exception for some statistical purposes, but it isn't a blanket exemption for GA4. Read the consent section above and the ICO page it links to.
How long before I see data?
Realtime can show a test visit within minutes. Standard reports and Search Console take longer, often a few days.
- What are the exceptions? Storage and access technologies guidance (ICO) (opens in a new tab) (checked 28 October 2026)
- Set up Analytics for a website and/or app (Analytics Help): property, data stream, Measurement ID and website builders (opens in a new tab) (checked 29 October 2026)
- Add users, user groups and roles: Access management (Analytics Help) (opens in a new tab) (checked 29 October 2026)
- Data retention (Analytics Help) (opens in a new tab) (checked 29 October 2026)
- Define internal traffic and data filters (Analytics Help) (opens in a new tab) (checked 29 October 2026)
- Link Search Console to Google Analytics (Analytics Help) (opens in a new tab) (checked 29 October 2026)
- Add a website or platform property (Search Console Help) (opens in a new tab) (checked 29 October 2026)
- Site Kit by Google (WordPress.org plugin directory) (opens in a new tab) (checked 29 October 2026)
- Setting up Google Analytics 4 (Shopify Help Center) (opens in a new tab) (checked 29 October 2026)
Guide version 2.0. Content reviewed 29 October 2026. Next review due 29 January 2027. Google changes its menus and rules from time to time. Where we give a menu path we say when we checked it. If a screen looks different, the linked help pages are the final word.