> For the complete documentation index, see [llms.txt](https://docs.sfbx.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sfbx.io/configuration/step-3-notice-implementation-web-app-tv/google-gtm/install-appconsent-with-google-tag-manager.md).

# 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"

***

{% hint style="danger" %}
**ATTENTION**

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](https://support.google.com/tagmanager/answer/6102821?hl=en\&authuser=1)**.**

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.
{% endhint %}

## 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**

<figure><img src="/files/9rL9lwdDlZWD5WeX6ANu" alt=""><figcaption></figcaption></figure>

4. Then, in the search bar in right-hand side panel, search **Sfbx AppConsent CMP Setup**
5. Find the template named **Sfbx AppConsent CMP Setup**
6. Add it in your container

<figure><img src="/files/h6hnDjnQuyC2NWAh8I1l" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**ATTENTION**

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

## 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

<figure><img src="/files/wDXHm48lZj2zUvNWfZPn" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/qqkRzk1zWTUnc9toyv3h" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/z6MGcMrCaylAN3ninvG7" alt=""><figcaption></figcaption></figure>

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

1. Click on **Triggering** section

<figure><img src="/files/R3P8OcjGtxBBWX4aQvcu" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/ikxhjAoxK1m5UNzKHFTI" alt=""><figcaption></figcaption></figure>

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