If you've followed along with our article on setting up Google Consent Mode, then you'll be able to test whether it's correctly implemented by watching the video below or following the steps outlined:

  1. Open a new Incognito window in your browser of choice

  2. Your consent pop-up should appear once the page has loaded. Right click and select "Inspect"

  3. Click on the "Console" tab and type "dataLayer" (without quotes). Hit Enter. You should now see events in the dataLayer.

  4. Click on the event called "consent". You should see the default state of consent which is denied for both analytics_storage and ad_storage.

  5. Accept cookies on the consent pop-up.

  6. In the Console, type "dataLayer" and hit enter (again, without quotes).

  7. Find the "consent" event again. You should see that the update object has been pushed to the dataLayer and analytics_storage and ad_storage are now set to "granted"

Google Consent Mode is of course only useful when cookies are declined - this means that if you repeat the same process, analytics_storage and ad_storage will both remain denied. Google Consent Mode will then use pings instead of setting a cookie.

Did this answer your question?