Google Consent Mode v2 Integration

Our Cookie Banner Widget is fully compatible with Google Consent Mode v2. Follow this guide to ensure compliance with Google's requirements.

What is Google Consent Mode v2?

Google Consent Mode v2 is a framework that adjusts how Google tags behave based on user consent. Since March 2024, it's mandatory for websites using Google Ads or Analytics in the EU/EEA.

✅ Our widget handles:

  • ad_storage - Advertising cookies
  • ad_user_data - User data for ads
  • ad_personalization - Ad personalization
  • analytics_storage - Analytics cookies
  • functionality_storage - Functional cookies
  • personalization_storage - Personalization

Integration Steps

1

Add the Widget Script FIRST

The widget script must load before any Google tags. Add it in your <head>:

<!-- PrivacyChecker Cookie Banner - MUST be first -->
<script src="https://privacychecker.pro/widget.js" 
        data-widget-id="YOUR_WIDGET_ID"></script>

<!-- Then your Google Tag -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXX');
</script>
2

For Google Tag Manager

If using GTM, enable "Consent Overview" in your container settings:

  1. Go to GTM → Admin → Container Settings
  2. Enable "Enable consent overview"
  3. For each tag, set the required consent types
3

Verify Integration

Check that consent mode is working:

  1. Open Chrome DevTools → Console
  2. Type dataLayer and press Enter
  3. Look for consent entries with "default" and "update"

Category Mapping

Our widget categories map to Google consent types:

Widget CategoryGoogle Consent Types
Necessarysecurity_storage (always granted)
Analyticsanalytics_storage
Marketingad_storage, ad_user_data, ad_personalization
Functionalfunctionality_storage, personalization_storage

Ready to get compliant?

Configure your Cookie Banner Widget in your dashboard.

Configure Widget →