# 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="/files/BBrj5xFUanBckGfPhgPe" alt=""><figcaption></figcaption></figure>

Move the slider for the "**Activation of Google Consent Mode**" option to the right :

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

Click on ![](/files/3FFYeab8sHMDi5xfhTYs)

## 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](/en/consent-transmission-standards/google-consent-mode/activation-via-google-tag-manager.md)" section.
{% endhint %}

## 3) Conditioning Google Tags

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

Example for Google Adsense :

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmp.docs.sirdata.net/en/consent-transmission-standards/google-consent-mode/activation-of-basic-google-consent-mode/via-the-sirdata-cmp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
