Consent Mode v2

Setting up Google Consent Mode v2 for websites, WordPress, or Laravel. Cookie consent, Google Analytics 4, Google Ads, Google Tag Manager, and consent state passing.

Make an Inquiry
Google Consent Mode v2

The cookie banner must be able to pass the consent state to Google tools

Google Consent Mode v2 handles communication between the cookie banner and Google tools. Thanks to this, the website can pass information about whether the visitor has allowed analytics, advertising, or personalization.

It is not enough to just display a cookie banner. It is crucial that Google Analytics, Google Ads, or Google Tag Manager receive the correct consent states based on what the visitor actually agreed to.

Google Analytics 4

Passing analytics_storage and managing analytical measurement based on cookie consent.

Google Ads

Integration of advertising scripts, remarketing, and conversions with the visitor's marketing consent.

Google Tag Manager

Control of tags and their triggering based on analytics_storage, ad_storage, or other states.

Cookie banner

Integration of the cookie banner with Consent Mode v2 so that the visitor's choice has a real technical impact.

What Consent Mode v2 solves

Google needs to know what the visitor agreed to

Consent Mode v2 passes information to Google tools about whether the visitor has allowed analytical or marketing cookies. These states are used, for example, for Google Analytics 4, Google Ads, remarketing, conversion tracking, or ad personalization.

analytics_storage

Controls analytical cookies and Google Analytics.

ad_storage

Controls advertising cookies and remarketing.

ad_user_data

Information about consent for processing advertising data.

ad_personalization

Consent for personalized advertising.

Consent Mode v2

Illustrative image created by AI.

Technical setup

Consent Mode v2 is not just about checking a box in a plugin

A website may use Google Analytics, Google Ads, GTM, Meta Pixel, remarketing, or custom scripts. Therefore, it is necessary to verify where the scripts are loaded from and if they truly react to changes in consent.

Consent Mode v2 must be correctly integrated with the cookie banner, otherwise the website may send incorrect information to Google tools or track visitors before consent is given.

  • integration of the cookie banner with Google tools
  • verification of analytics_storage and ad_storage
  • Google Analytics 4, Google Ads, and GTM
  • verification of behavior after consent rejection and acceptance
Process

How Consent Mode v2 setup works

First, it is necessary to find out what Google tools the website uses and where the tracking scripts are loaded from. Only then can the communication between the cookie banner and Google systems be set up correctly.

01

Tracking audit

I will review Google Analytics, Google Ads, GTM, remarketing, and other scripts used on the website.

02

Cookie banner integration

The cookie banner will start passing consent states to Google tools based on the visitor's choice.

03

Script modification

Tracking scripts will be modified to respect analytics_storage or ad_storage.

04

Functionality verification

I will test the behavior after both rejection and acceptance of consent and verify the correct passing of states.

Frequently asked questions about Consent Mode v2

  • What is Google Consent Mode v2?

    Google Consent Mode v2 is a way for a website to pass information to Google tools regarding the visitor's consent state for analytics, advertising, and related data processing.

  • Why is Consent Mode v2 needed?

    Consent Mode v2 is important for websites that use Google Analytics, Google Ads, remarketing, or conversion tracking, and simultaneously operate with the visitor's cookie consent.

  • Can Consent Mode v2 be integrated into a cookie banner?

    Yes. Based on the visitor's choice, the cookie banner can pass the analytics_storage, ad_storage, ad_user_data, or ad_personalization states to Google tools.

  • Can you set up Consent Mode v2 for WordPress?

    Yes. Consent Mode v2 can be configured for a WordPress website in connection with the cookie banner, Google Analytics, Google Ads, or Google Tag Manager.

  • Can you set up Consent Mode v2 for Laravel?

    Yes. Consent Mode v2 can also be configured for a Laravel application or a custom website based on specific frontend logic.

  • What does analytics_storage mean?

    analytics_storage is the consent state for analytical cookies and Google Analytics.

  • What does ad_storage mean?

    ad_storage is the consent state for advertising cookies, remarketing, and advertising measurement.

  • Will you check if Consent Mode v2 works correctly?

    Yes. It is possible to check consent states, script behavior, and whether the website sends data before consent is granted.

Do you want to set up Consent Mode v2 correctly?

Write to me about which Google tools you use, how your cookie banner is handled, and where the tracking scripts are loaded from. I will review Consent Mode v2 and set up the correct passing of consent states.

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