Google Analytics without consent

Setting up Google Analytics 4 according to cookie consent. GA4, Consent Mode v2, Google Tag Manager, analytical cookies, WordPress, Laravel, and measurement control before consent.

Make an Inquiry
GA4 and cookie consent

Google Analytics should not run blindly without cookie consent

Google Analytics is often embedded on websites via a plugin, theme, Google Tag Manager, or manually in the header. The problem is when GA4 triggers immediately upon page load, even before the visitor allows analytical cookies or chooses their consent settings.

Correct setup means that Google Analytics, the cookie banner, and Consent Mode v2 technically communicate with each other. The website then doesn't make decisions based on the fact that the banner was displayed, but based on the visitor's actual choice.

Google Analytics 4

Checking when GA4 loads and whether it respects the visitor's analytical consent.

Consent Mode v2

Passing consent states to Google tools based on what the visitor allowed or denied.

Google Tag Manager

Checking GTM tags, triggers, and analytics firing rules according to cookie consent.

WordPress and Laravel

GA4 can be implemented for a WordPress site, Laravel application, landing page, corporate website, or custom-built system.

What needs to be verified

It's not enough to know you have GA4 on your website

It is important to find out where Google Analytics is loaded from, when it triggers, if it uses Google Tag Manager, and if it is connected to the cookie banner. Only then can it be determined whether the tracking corresponds to the consent settings.

GA4 Loading

Checking if Google Analytics does not trigger automatically upon the first page load.

Analytical Consent

GA4 should respond to analytical cookies or analytics_storage based on the cookie banner settings.

Google Tag Manager

Tags in GTM must have correct rules and must not trigger tracking outside of the chosen consent.

Consent Mode v2

Google tools should receive information on whether analytics is allowed, denied, or restricted.

Cookie banner

The cookie banner must be technically integrated with GA4, not just displayed next to it.

Testing after rejection

It is necessary to verify what happens when a visitor rejects analytical cookies.

Google Analytics without consent

Illustrative image created by AI.

Real tracking behavior

It's not just about having Google Analytics listed in your administration

Google Analytics can be embedded in several ways. Via a WordPress plugin, manually into the theme, via Google Tag Manager, via a builder, via a marketing plugin, or directly into the code of a Laravel application. Each of these places can cause tracking to fire before the visitor makes a consent choice.

Therefore, I check the actual loading of scripts, not just the text in the cookie banner. What matters is whether the website respects rejection, acceptance, and changes to cookie settings.

  • checking GA4 before and after consent
  • napojení na cookie lištu a Consent Mode v2
  • adjustment of Google Tag Manager and firing rules
  • solutions for WordPress, Laravel, and custom websites
Process

How Google Analytics setup works according to consent

First, it is necessary to find out how GA4 is embedded on the website. Then, the connection to the cookie banner, Consent Mode v2, and the rules for when analytics can trigger are configured.

01

Checking GA4 embedding

I will go through plugins, the theme, GTM, builder, header, footer, or custom application code.

02

Connecting to consent

GA4 will be linked to analytical consent, and the cookie banner will start managing when tracking triggers.

03

Consent Mode v2

The passing of the analytics_storage status and other consents to Google tools will be configured.

04

Testing

I will verify behavior after rejection, acceptance, and changes to cookie consent settings.

Frequently asked questions about Google Analytics and cookie consent

  • Can Google Analytics run without consent?

    It depends on the specific website configuration, the tracking method, the use of Consent Mode v2, and how analytical cookies are handled. The correct technical setup of Google Analytics and cookie consent is essential.

  • Does Google Analytics often trigger before consent?

    Yes. A frequent problem is that Google Analytics or Google Tag Manager runs immediately after the page loads, even before the visitor's choice.

  • Isn't it enough to have a cookie banner on the website?

    It is not enough if the cookie banner does not technically control Google Analytics. The banner may be visible, but GA4 can still trigger outside its control.

  • What is Consent Mode v2?

    Consent Mode v2 is a method by which Google Analytics and other Google tools receive information about the visitor's consent status.

  • What does analytics_storage mean?

    analytics_storage is a consent state that tells Google tools whether analytical data storage can be used.

  • Can Google Analytics be configured in WordPress?

    Yes. Google Analytics can be properly integrated with the cookie banner, Consent Mode v2, and Google Tag Manager even in WordPress.

  • Can Google Analytics be configured in Laravel?

    Yes. In Laravel, tracking and cookie consent can be handled via custom frontend logic or a custom cookie system.

  • Will you check if Google Analytics is running correctly?

    Yes. It is possible to check the loading of analytical scripts, Google Tag Manager, Consent Mode v2, as well as the behavior after rejection or acceptance of consent.

Do you want to check Google Analytics on your website?

Write to me about how you have deployed Google Analytics, what cookie banner you use, and whether the tracking runs through Google Tag Manager. I will check if GA4 respects the visitor's consent and set up the correct measurement behavior.

This might help you

Practical things related to websites

Before starting a website project, it is useful to have clarity about materials, WordPress, cookies and tracking.

Google reviews

What Clients Say

Examples of real reviews that clients left on my Google profile.

Go to Reviews
★ ★ ★ ★ ★

„Skvělá spolupráce, při dalších projektech určitě nebudu shánět někoho jiného.“

Roman Koňařík
Google
★ ★ ★ ★ ★

„S panem Vančurou jsem spolupracovala na tvorbě mých webových stránek a jsem maximálně spokojená. Oceňuji profesionální přístup, rychlou komunikaci a schopnost přesně pochopit moje představy. Web je moderní, přehledný, funkční a skvěle vypadá i na mobilu. Celý proces proběhl hladce, s jasným vysvětlením jednotlivých kroků a výborným výsledkem. Určitě doporučuji každému, kdo hledá spolehlivý a kvalitní přístup.“

Barbora Zemánková
Google
★ ★ ★ ★ ★

„Spolupráce při tvorbě konfigurátoru proběhla naprosto bez problémů. Oceňuji profesionální přístup, rychlou komunikaci a schopnost pochopit specifický projekt od A do Z. Konfigurátor je přehledný, funkční a přesně odpovídá mým požadavkům. Rozhodně doporučuji.“

mareksevcik_FPV
Google
★ ★ ★ ★ ★

„Velmi dobrá a rychlá spolupráce. Doporučuji!“

Leoš Kaucký
Google
★ ★ ★ ★ ★

„Přesně takto si představujeme profesionální práci. Dekujeme“

STAVILLI
Google
★ ★ ★ ★ ★

„Ať už se jedná o optimalizaci webu, nebo tvorbu na míru oceňuji kromě profesionální práce a znalostí problematiky také férový přístup a komunikaci.“

Aleš Illický
Google
★ ★ ★ ★ ★

„Děkuji za profesionální spolupráci, vše dle domluvy, naprostá spokojenost a mohu jen vřele doporučit.... Při dalších projektech určitě opět využiji Vašich služeb“

Peter Spilak
Google
★ ★ ★ ★ ★

„Profesionalita a velká ochota, nemohu jinak než doporučit“

Magdalena Vašková
Google
★ ★ ★ ★ ★

„Skvělá zkušenost při tvorbě webu, profesionální přístup, rychlost, ochota pomoci“

Jana Kono
Google
★ ★ ★ ★ ★

„Rychlá spolupráce a komunikace – mohu jen doporučit.“

Gawix
Google
★ ★ ★ ★ ★

„Moc mi pomohl, když jsem potřebovala pomoc s webem. A bylo to gratis :)). Jsem mu neskonale vděčná.“

Radka Arbesová
Google
★ ★ ★ ★ ★

„Děkuji Jiřímu za rychlou a kvalitní spolupráci na tvorbě webu. Srozumitelná a ochotná komunikace mě vždycky potěší a přináší důvěru.“

Jiří Mařík
Google
★ ★ ★ ★ ★

„Jsem maximálně spokojená. Rychlost, ochota a cenově dostupné. Děkuji“

Veronika Černá
Google
★ ★ ★ ★ ★

„Naprostá spokojenost. Rychlá komunikace, skvělá cena a odborná pomoc. Moc děkuji :)“

Patricie Kučerová
Google
★ ★ ★ ★ ★

„Velká spokojenost, rychlost a p. Vančura moc dobře ví co dělá. :)“

Ondřej Daniško
Google
★ ★ ★ ★ ★

„dobrá práce, rychlá odezva“

Zuzana Jírová
Google
★ ★ ★ ★ ★

„S programátory mám zkušeností hodně, ale tady musím opravdu pochválit. Pro mě a mé přátele vytvořil skvělý nástroj na evidenci sbírek a opravdu se to povedlo. Bylo to hotové rychle, kvalitně a za skvělou cenu. Komunikace funguje velmi rychle, což je super a ne úplně standard. Díky za super práci, za mě 100% spokojenost!“

Zdeněk
Google
★ ★ ★ ★ ★

„Vše bylo rychlé a hlavně to funguje. Dobrá práce.“

Lukáš Bartášek
Google
★ ★ ★ ★ ★

„Normálně recenze nepíši, ale zde rád doporučím kvalitní práci. Jiří pro mě vytvořil web pro dětské tábory. Kvalitní práce, rychlá komunikace a vlastní nápady, které Jiří sám přidá, jsou na velice vysoké úrovni. Nemohu hodnotit jinak než 5/5.“

Tomáš Loněk
Google
★ ★ ★ ★ ★

„Pan Jiri nam delal jiz 3 webove stranky a vzdy velka spokojenost, je mega rychly a vse hned kladne vyridi, mohu pouze doporucit. Poradi si bez problemu i s rezervacnimi kalendaremi, udrzbou socialnich siti, atd.“

Barbara Mašková
Google