How do I update my Net Affinity Website tracking to Advanced Consent Mode (Consent Mode V2) with Cookiebot?

Please note: this guide applies to clients who are not contracted for marketing services with Net Affinity or avail of our Meta Search only marketing bundle. Net Affinity handles this integration for all marketing clients (except Meta Search only). 

Please ensure you have followed the essential Google Tag Manager set up first before proceeding with these instructions.

These instructions are for Net Affinity bespoke or template sites only. 

  1. Please visit the Admin Interface of your website by visiting the /admin path of your domain e.g. (
  2. Go to Settings > Site Settings > Integrations Tab (on some CMSes, the tab is named TEXTAREA Tab or GTM Tab. If you have trouble finding it or accessing it, please reach out to your client owner)
  3. Once you’re on the page where Google Tag Manager scripts are in place, please see the script underneath the instructions.
  4. Update the GTM ID and Cookiebot ID parts within the script. GTM ID is the ID of your GTM Container.
  5. Copy the script and replace it with the head part of the GTM script which has already been placed on your website.
  6. Save
  7. Please continue following the instructions for the Advanced Consent Mode implementation.


Script prepared for v2 Consent Mode (Advanced Consent Mode):


<!-- Google Consent Mode -->


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

  function gtag() {



  gtag("consent", "default", {

    ad_personalization: "denied",

    ad_storage: "denied",

    ad_user_data: "denied",

    analytics_storage: "denied",

    functionality_storage: "denied",

    personalization_storage: "denied",

    security_storage: "granted",

    wait_for_update: 500


  gtag("set", "ads_data_redaction", true);

  gtag("set", "url_passthrough", true);


<!-- End Google Consent Mode-->



<!-- Google Tag Manager -->



    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],




<!-- End Google Tag Manager -->



<!-- Cookiebot CMP-->









<!-- End Cookiebot CMP -->