Google Consent Mode Troubleshooting with Mandatly:

The purpose of this guide is to assist you in troubleshooting any issues encountered during the implementation of GCM v2 with Mandatly CMP.


Check if GCM is configured properly:

First, follow the below steps to verify that GCM is configured correctly for your website:        

  1. Login to your Mandatly account -> Cookie Compliance.
  2. Head to Websites -> click on the website URL.
  3. Navigate to Advanced Settings tab -> Google Consent Mode v2 section.
  4. Check if the “Enable Google Consent Mode” toggle is enabled.
  5. For Advanced Consent mode, also verify that the “Execute Google Tags Before Consent” toggle is enabled.

  6. For implementation via Google Community Template, ensure that the “Enable Google Consent Mode” checkbox is enabled.
  7. For Advanced Consent mode, also verify that the “Execute Google Tags Before Consent” checkbox is enabled.
  8. The Website GUID of the website has been entered correctly.


Following are some of the most common issues faced after implementation of GCM v2:

  1. Consent Not Set:

If the consent is not set either during the website page load (when "Execute Google Tags before Consent" is ON) or after user interaction(when "Execute Google Tags before Consent" is OFF) with the cookie banner, refer to the steps below to troubleshoot the issue:


  • Login to your Mandatly account -> Cookie Compliance.
  • Head to Websites -> click on the website URL.
  • Navigate to Advanced Settings tab -> Google Consent Mode v2 section.
  • Check if the “Enable Google Consent Mode” toggle is enabled.


  • For implementation via Google Community Template, please verify if the “Enable Google Consent Mode” checkbox is enabled.

     


  1. Default Consent Not Set:

If the default consent is not set either during the website page load or after the user interaction (when "Execute Google Tags before Consent" is OFF) with the cookie banner, refer to the steps below to troubleshoot the issue:


  • Login to your Mandatly account -> Cookie Compliance.
  • Head to Websites -> click on the website URL.
  • Navigate to Advanced Settings tab -> Google Consent Mode v2 section.
  • Check if the “Enable Google Consent Mode” toggle is enabled.
  • For setting the default consent prior the explicit consent of visitors, you need to enable the Advanced Consent mode, using “Execute Google Tags Before Consent” toggle.


  • For implementation via Google Community Template, please verify if the “Execute Google Tags Before Consent” checkbox is enabled.


  1. Default Consent Set Late:

If the default consent is set after Google tags are fired, it is set late, refer to the steps below to troubleshoot the issue:


This error occurs when other tags are read or fired prior to the firing of the default consent.

  • For manual implementation, insert the default consent script in the website's <head> section as the first script before all other scripts. This code should be inserted on every page followed by the CMP script.
  • For implementation via Google Community Template, ensure that the trigger in Mandatly CMP Tag is set as “Consent Initialization - All Pages”.


Note: Do not implement any other tag with the Consent Initialization - All Pages trigger, this helps the implementation of Mandatly CMP as first tag before any other tag.


Relevant Resources: