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