Set up Axeptio to obtain user consent

To capture valuable insights while protecting user privacy, you need to collect consent from your website users. We recommend you use a Consent Management Platform (CMP) or work with your Content Management System (CMS) to collect consent and send it to Google.

Step 1: Set up a consent banner

  1. Sign up for an Axeptio account.
  2. Configure your banner using the “Getting Started” wizard.
  3. Make sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).

For additional information on banner setup, review the steps on How to Add a Cookie Banner to Your Website.

Step 2: Set up consent mode

Using Google Tag Manager

  1. Open Tag Manager and navigate to your container.
  2. In “Tags”, click New, and name the tag.
  3. Click Tag Configuration, then click Discover more tag types in the Community Template Gallery. From the gallery, search for “Axeptio CMP”, then install “Axeptio CMP” by axeptio.
  4. Configure the default settings you would like to use under “Default Consent Mode settings”.
  5. Add a row for global settings, and leave “Regions” blank. You can add additional rows for region-specific settings by using comma-separated ISO 3166-2 country codes in the “Region” box.
  6. Click Add, then click Triggering.
  7. Select “Consent Initialization - All Pages”, then click Save.
  8. Click Preview in the top right corner to test your container. 
  9. Publish your container.

Using Other Platforms or Directly Editing Website Code

  1. Open Axeptio, then go to your cookies configuration, and click the button “Integration on your website” instructions to find CMP code snippet.
  2. If you use a website builder, review their documentation to find out how to implement code in the “head tag” of each page. Otherwise, skip to step 3.
  3. In the <head> tag of each page (review step 2 if you use a website builder), paste the following code followed by the CMP script you copied in step 1 at the very top of the <head> tag. Note that this is critical in order to ensure the CMP functions properly.

<script>

// Define dataLayer and the gtag function.

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

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

 

// IMPORTANT - DO NOT COPY/PASTE WITHOUT MODIFYING REGION LIST

// Set default consent for specific regions according to your requirements

gtag('consent', 'default', {

  'ad_storage': 'denied',

  'ad_user_data': 'denied',

  'ad_personalization': 'denied',

  'analytics_storage': 'denied',

 'regions':[<list of ISO 3166-2 region codes>]

});

// Set default consent for all other regions according to your requirements

gtag('consent', 'default', {

  'ad_storage': 'denied',

  'ad_user_data': 'denied',

  'ad_personalization': 'denied',

  'analytics_storage': 'denied'

});

 

</script>

<!--Banner script here!--> 

Testing using Tag Assistant

Learn more about how to Troubleshoot consent mode with Google Tag Manager.

Was this helpful?

How can we improve it?
true
Search
Clear search
Close search
Google apps
Main menu
18237887114584881089
true
Search Help Center
true
true
true
true
true
69256
false
false