# AMP

**1) Ajoutez le tag suivant dans votre page, dans la balise \</head>**

```
<script async custom-element="amp-consent" src="https://cdn.ampproject.org/v0/amp-consent-0.1.js"></script>
<meta name="amp-consent-blocking" content="amp-analytics,amp-ad">
```

**2) Ajoutez ensuite le tag suivant dans votre page, près de la balise \</body> en précisant votre Partner ID et votre Config ID**

```
<amp-consent id="consent" layout="nodisplay" type="sirdata">
<script type="application/json">
{
    "postPromptUI": "promptConsentUI",
    "clientConfig": {
        "type": "TCF_V2",
        "info": {
            "pa": PARTNER_ID,
            "c": "CONFIG_ID"
        }
    }
}
</script>
</amp-consent>
```

{% hint style="warning" %}
Attention à bien remplacer *PARTNER\_ID* et *CONFIG\_ID par vos identifiants. Retrouvez-les dans* [*votre compte*](https://cmp.sirdata.io)*.*
{% endhint %}

**3) Enfin, vous devez également ajouter un lien permettant aux utilisateurs de réafficher la CMP à tout moment sur toute vos pages ou sur la page de vie privée**

```
<button id="promptConsentUI" class="btn" on="tap:consent.prompt(consent=sirdata)" role="button">My consent choices</button>
```


---

# 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/install-1/amp-1.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.
