Google Analytics Cookie Consent for UK Websites
Google Analytics is commonly used to measure website visits, traffic sources, page views, user journeys and conversions. In the UK, website owners should check whether Google Analytics cookies or similar identifiers are being used before a visitor has given a valid consent choice.
This guide explains when Google Analytics may need cookie consent, how Google Consent Mode fits in, what to check in Google Tag Manager, and common mistakes found on WordPress, Shopify and marketing websites.
This is practical website guidance only. It is not legal advice or formal compliance certification.
Does Google Analytics Need Cookie Consent in the UK?
In most standard UK website setups, Google Analytics should not be treated as strictly necessary. If it stores or accesses information on a visitor’s device, such as through analytics cookies or identifiers, consent should normally be obtained before it is used.
Usually Needs Consent
Where Google Analytics uses cookies or similar technologies to measure visitor behaviour, traffic sources or conversions.
Needs Banner Control
The cookie banner should do more than display wording. It should control whether analytics tags load before consent.
Worth Testing
Analytics may be installed through WordPress, Shopify, Google Tag Manager, a plugin, a theme or a marketing integration.
Why Google Analytics Consent Matters
Google Analytics can help website owners understand how people find and use their site, but it can also involve cookies, identifiers and event data. This means it should be connected properly to the website’s cookie banner and consent settings.
A website can display a cookie banner and still have a problem if Google Analytics loads before the visitor has accepted analytics cookies. The main issue is not only what the banner says, but what the website does behind the scenes.
For websites using Google Ads, Meta Pixel, conversion tracking or remarketing alongside Google Analytics, it is also important to separate analytics, advertising and necessary cookies clearly.

Google Consent Mode and Analytics Cookies
Google Consent Mode is relevant for many websites using Google Analytics, Google Ads or Google Tag Manager. It allows consent choices to be communicated to Google so Google tags can adjust their behaviour based on the visitor’s consent status.
analytics_storage
This consent type relates to analytics storage, such as cookies used to measure website activity. It is important for Google Analytics consent behaviour.
ad_storage
This consent type relates to advertising storage. It is relevant where Google Ads, remarketing, conversion tracking or advertising measurement are used.
ad_user_data and ad_personalization
These consent signals are relevant to advertising data use and personalisation. They are especially important for websites using Google advertising features.
Consent Mode does not replace a cookie banner. It works with a consent banner or consent management platform so user choices can be passed to Google tags.
How to Set Up Google Analytics Consent
The goal is to make sure Google Analytics does not use analytics cookies or identifiers until the correct consent choice has been made. The exact setup depends on your cookie banner, Google Tag Manager, website platform and analytics configuration.
Step One: Identify How GA Is Installed
Check whether Google Analytics is installed directly, through Google Tag Manager, through a WordPress plugin, through Shopify or through another platform integration.
Step Two: Connect It to Consent
Analytics tags should be connected to the correct consent category, usually analytics or statistics cookies, rather than being loaded as strictly necessary.
Step Three: Test Before and After Consent
Open the website in a private browser window and test whether analytics tags fire before consent, after rejection and after analytics cookies are accepted.
Google Analytics Consent Checklist
Use this checklist to review whether Google Analytics is connected properly to your cookie banner and consent setup.
- Is Google Analytics installed on the website?
- Is it installed directly, through GTM, through a plugin or through Shopify?
- Does the cookie banner mention analytics cookies clearly?
- Can visitors accept analytics cookies?
- Can visitors reject analytics cookies?
- Can visitors change their choice later?
- Does Google Analytics load before consent?
- Does Google Analytics stay blocked after rejection?
- Is analytics separated from advertising and marketing cookies?
- Is Consent Mode configured where relevant?
- Does the cookie policy explain Google Analytics?
- Has the setup been tested on desktop and mobile?
Common Google Analytics Consent Mistakes
Most problems come from a gap between what the banner says and how the analytics tag behaves.
Analytics Fires Before Consent
The site displays a banner, but Google Analytics still loads before the visitor accepts analytics cookies.
Analytics Is Treated as Necessary
Analytics is placed in the strictly necessary category, even though standard analytics cookies are not usually needed for the website to function.
Consent Mode Is Misunderstood
Consent Mode is used without a proper banner or without correctly setting default and update consent states for Google tags.
How to Test Google Analytics Consent
Testing helps confirm whether your cookie banner is controlling Google Analytics in practice.
Before Consent
Open the website in a private browser window and check whether Google Analytics tags or cookies appear before a visitor has accepted analytics cookies.
After Rejection
Reject non-essential cookies and check whether Google Analytics remains blocked or respects the denied analytics consent state.
After Acceptance
Accept analytics cookies and confirm that analytics tags only activate after consent, not before the visitor has made a choice.
Official Guidance and Platform Sources
The ICO explains that analytics cookies do not fall within the strictly necessary exemption. This means websites need to tell people about analytics cookies and gain consent for their use.
Google explains that Consent Mode lets websites communicate cookie or app identifier consent status to Google so tags can adjust their behaviour and respect user choices. Consent Mode does not provide a banner or widget by itself; it works with the website’s consent banner or consent management platform.
Google Analytics Cookie Consent FAQs
Does Google Analytics need cookie consent in the UK?
In most standard setups, yes. Analytics cookies are not normally strictly necessary, so websites should usually ask for consent before Google Analytics uses cookies or similar identifiers.
Can Google Analytics load before consent?
It can if the website is configured incorrectly. This often happens where Google Analytics is added through Google Tag Manager, a plugin, a theme or a platform integration without proper consent controls.
Does Google Consent Mode replace a cookie banner?
No. Consent Mode does not provide a banner or widget. It works with your consent banner or consent management platform so Google tags can respond to the visitor’s choice.
Which consent category should Google Analytics sit under?
Google Analytics will usually sit under analytics, statistics or performance cookies. It should not normally be treated as strictly necessary for a standard marketing website.
Is a cookie policy enough without a banner?
Usually not where analytics cookies are used. A cookie policy explains the technology, but visitors also need a meaningful consent choice before optional analytics cookies are used.
Related Cookie Banner Guides
Continue reading practical guidance on cookie banners, advertising pixels, Google Consent Mode and platform-specific tracking checks.
Check Your Google Analytics Consent Setup
Download the free checklist or request a practical review of your cookie banner, Google Analytics setup, Consent Mode signals and tracking behaviour.
This is practical website guidance only and is not legal advice or formal compliance certification.
