How to check if Google Consent Mode is activated?

How to check if Google Consent Mode is activated?

Nelson
Written by NelsonLast update 3 months ago

Google Consent Mode includes API to control the tag of cookie storage based on user consent choices. It allows to collect website analytics and use all other Google products while maintaining necessary data privacy standards.

The easiest way to implement Google Consent Mode on your website is by using a CookieScript Google Tag Manager (GTM) Tag template.

First, create your GTM account and a website container in GTM, and install the GTM container to your website, where you could add your tags. Read the guide on how to create a GTM account and install the GTM container.

Second, install CookieScript. You can install the CookieScript using GTM Tag Template or as a Custom HTML Tag. Read the guide on how to install CookieScript with GTM.

Third, implement Google Consent Mode with a CookieScript GTM Tag template by including APIs to control tag cookie storage based on user consent choices without disabling Google services. Read the guide on how to implement Google Consent Mode.

After you implemented Google Consent Mode, follow these steps to check if Google Consent Mode is activated:

  1. Check (at your GTM account) if the cookie banner is activated.

  2. Check (at your CookieScript settings) if Google Consent Mode is enabled. Google Consent Mode is an optional feature and should be enabled in CookieScript settings. Go to your CookieScript account > Banner settings > Behaviour tab > Enable Google Consent Mode.

  3. Check (at your GTM account) if the trigger is set in the right way. The trigger must be Consent Initialization on all pages.

  4. Press the shield (at your GTM account) to check if all settings are set in the right way. The shield should be turned on. In the Tag Manager, click Admin > Container Settings. Under Additional Settings, select Enable consent overview. Consent overview is the above-mentioned shield.

  5. Check (at your GTM account) if the selected categories of cookies on the GTM preview mode window correspond to your website. Read the guide on how to use a GTM preview mode.

  6. If some category of cookies is not present on the GTM preview mode window, create an arbitrary cookie with that category, otherwise Google Consent Mode will not work properly.

See the checklist for the correct implementation of Google Ads and Google Consent Mode:

  1. Google Consent Mode is enabled in settings.
    See the guide about how to enable Google Consent Mode.

  2. CookieScript is installed in GTM using the latest template from gallery.
    See the guide about how to update the GTM template.

  3. CookieScript trigger is set to Consent Initialization (AND no other tags in that trigger)

  4. GA trigger is set to Initialization

  5. Clear browser Cache

  6. Use preview mode to see how it works. Link to debugger info.

Did this answer your question?