Skip to content

Can I use Google Analytics without a cookie banner?

21 September 2026 · 5 min read

If you have visitors in the EU or UK: no. Google Analytics 4 sets cookies such as _ga to recognise returning visitors, and those aren’t strictly necessary, so they need consent before they’re set.

This is a practical guide, not legal advice. If real money, health data, children or a regulator’s letter is involved, talk to a lawyer.

What goes wrong in practice

The usual setup is a snippet pasted into the site’s layout, which runs for every visitor the instant the page opens. Adding a banner afterwards doesn’t fix it unless the banner actually holds the script back. Tags inside Google Tag Manager are a second trap: the container loads, and everything in it fires, whatever the banner says.

Your options

Two more things to get right

Check yours

Open your site in a private window with DevTools’ Network tab open and don’t click anything. If you see requests to google-analytics.com or googletagmanager.com, it’s firing before consent. A vibeliq scan does exactly this in a real browser and names what it sees.

Keep reading