# Via the Sirdata CMP

## 1) Activation of Basic Google Consent Mode

The first and simplest way to activate Google's Advanced Consent Mode is also the easiest.

Simply log in to your [Sirdata CMP account](https://cmp.sirdata.io/) and go to the [configuration section](https://cmp.sirdata.io/cmp).

Click on the edit icon of your CMP, or the one installed on the relevant site if you have multiple (button![](https://cmp.docs.sirdata.net/~gitbook/image?url=https%3A%2F%2F2240931758-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MUspPnkTFMlMDdGxvAb-2584506019%252Fuploads%252FGm3XzWRglUiidyqJ5k5m%252Fimage.png%3Falt%3Dmedia%26token%3D8f5eaa78-e1a3-4d6d-bb5f-97bcc4fd0315\&width=300\&dpr=4\&quality=100\&sign=68ef50f6\&sv=1) located on the right in your configuration table), then select "**Edit Add-ons**":

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FbJHM8fB3pic6QOSzzwe2%2Fimage.png?alt=media&#x26;token=08049e91-c691-40b2-b69f-34a70e957e94" alt=""><figcaption></figcaption></figure>

Move the slider for the "**Activation of Google Consent Mode**" option to the right :&#x20;

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F47Th6vCOSnDCtzL8kuqK%2Fimage.png?alt=media&#x26;token=14b4d437-3f04-42ee-bfcf-b7edbcfdba61" alt=""><figcaption></figcaption></figure>

Click on ![](https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FYCTXQ6gAkXFZ1KsSppGn%2Fimage.png?alt=media\&token=d3024107-09ae-47f0-be7b-67459b73d920)

## 2) Configuration of Google Consent Mode

The integration of Consent Mode via this option is a universal integration in which the default signals are:

* *ad\_storage='denied'*
* *analytics\_storage='denied'*
* *functionality\_storage='denied'*
* *personalization\_storage='denied'*
* *security\_storage='denied'*

After the user's consent, an update signal '*granted*' is sent for the concerned signals.

In case of withdrawal of consent, an update signal '*denied*' is sent for the concerned signals.

In all cases, the tags will wait for a choice signal sent by the CMP for 1 second before triggering any potential cookie-based or cookieless pings (command '*wait\_for\_update: 1000*').

{% hint style="info" %}
Please visit the official [Google Consent Mode](https://support.google.com/analytics/answer/9976101?hl=en) page for more information
{% endhint %}

{% hint style="danger" %}
**WARNING**: Google Consent Mode does not cover given aspects related to the GDPR, such as the legal basis for processing personal data or potential data transfer to the United-States when they are based on the Standard Contractual Clauses of the European Union for example.

Please refer to the section dedicated to [Sirdata Analytics Helper](https://helper.docs.sirdata.net/v/english/) if your desire is to secure data transfers to Google Analytics in the United-States.
{% endhint %}

{% hint style="info" %}
If you wish to manage this default behavior and/or the update behavior differently, refer to the "[Activation via Google Tag Manager](https://cmp.docs.sirdata.net/en/consent-transmission-standards/google-consent-mode/activation-via-google-tag-manager)" section.
{% endhint %}

## 3) Conditioning Google Tags

To activate the Basic Google Consent Mode, you need to condition your Google scripts.

Example for Google Adsense :&#x20;

{% code title="Tag before conditioning" %}

```
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
```

{% endcode %}

{% code title="Tag modified with conditioning" %}

```
script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
```

{% endcode %}

Example for Google Analytics:

{% code title="Tag before conditioning" %}

```
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-XXXXXXXXXX');
    </script>
```

{% endcode %}

{% code title="Tag modified with conditioning" %}

```
<script async 
  data-cmp-src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"
  data-cmp-extravendor="8"
  data-cmp-purposes="1,8,9"
  data-cmp-purposes-li="10">

</script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-XXXXXXXXXX');
    </script>
```

{% endcode %}
