1. Help Center
  2. Cookie Consent
  3. Activate Google Consent Mode in CMP

How to activate Google Consent Mode

To activate Google Consent Mode in Seers Consent Management Provider (CMP)

How to install Google Consent Mode

You need a Google Analytics code to activate Google Consent Mode on your website.

Step 1:

Find the Google Analytics code in the header on the website or get it from your Google Analytics account.

The code looks like this:

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-x></script>

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());

  gtag('config', 'UA-xxxxxxxxx-x');

</script>

Step 2:

Insert Google Consent Mode code (below in bold) in the Google Analytics Code.

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-x"></script>

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

gtag(‘set’, ‘url_passthrough’ , true);

gtag('consent', 'default', {

  'ad_storage': 'denied',

  'analytics_storage': 'denied',

  ‘wait_for_update’ :500

});

gtag(‘set’, ‘ads_data_redaction’ , true);

  gtag('js', new Date());

  gtag('config', 'UA-xxxxxxxxx-x');

</script>

Note:

  1. To activate Google Consent Mode, you must have Seers’ CMP code installed on your website.

Seers CMP Code looks like this:

<script data-key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" data-name="CookieXray" src="https://seersco.com/script/cb.js" type="text/javascript"></script>


  1. Remember to enable the toggle button to “YES” to activate Google Consent Mode in the “settings” panel of the Seers CMP.
  2. Also, you must change the Google Analytics code, as described in Step 2.

To read more about Google consent mode click here