Skip to main content

Install Appconsent with Google Tag Manager

On this page you will find the method to implement AppConsent CMP with the solution of tag management system "Google Tag Manager"


caution

Before proceeding, we assume that you have an installation of GTM on your website.

If you note familiar with Google Tag Manager, please find the official documentation of Google here.

You can have one CMP implementation per site. If you wish to use Google Tag Manager rather than code-based implementation, make sure you don't have another AppConsent implementation on your site.

Import tag template AppConsent

To import the tag template AppConsent in your Google Tag Manager account :

  1. Go to your container
  2. Then, in the left-hand side panel, click on Templates
  3. Then, click on Search Gallery

Google Tag Manager import template

  1. Then, in the search bar in right-hand side panel, search Sfbx AppConsent CMP Setup
  2. Find the template named Sfbx AppConsent CMP Setup
  3. Add it in your container

Google Tag Manager import template

caution

The tag template named Sfbx - AppConsent CMP - Default Consent Mode is now deprecated. You no longer need to import it into your container.

Creation and configuration of the tag

To create the tag, you need :

  1. Click on Tags menu in the left-hand panel
  2. Then, click on the New button

Google Tag Manager import template

On the configuration display that appears :

  1. Name the tag in top left text field
  2. Then click on Tag configuration section
  3. In right-hand side panel, select the tag template Sfbx Appconsent CMP Setup in Custom section

Google Tag Manager import template

  1. Once you have selected the template, add the appkey of the notice and configure the tag to suit your needs

Google Tag Manager import template

Finally, you need to tell GTM when to trigger the tag. To do this :

  1. Click on Triggering section

Google Tag Manager import template

  1. Then select the Consent Initialization - All pages trigger in the right-hand side panel

Google Tag Manager import template

  1. Once the trigger has been added, click Save to save the tag