Sirdata CMP
Configurez votre CMP
Sirdata API
Semantic API
A propos de Sirdata
Search…
English
Sirdata CMP
INSTALL
Web & Mobile web
AMP
CMP API
How it works
Examples
Working with iframes
Advanced features
Passive mode
Set language per user
Manually display the CMP
Script management
Remote Tags Management without a Tag Manager
Remote Tags Management with a Tag Manager
Tag Management with Google Tag Manager
Local script Management
Advanced configuration
Examples
Share the TC String
Tag Management setup service
Analytics
Google Analytics
F.A.Q.
Others Products
Links
Configure your CMP
Sirdata API
Semantic API
About Sirdata
Powered By
GitBook
AMP
1) Add the following tag on your page, inside the </head> tag
<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) Add then the following tag on your page, near the </body> tag and set your Partner ID and your Config ID (you may retrieve them from your account)
<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>
Don't forget to replace
PARTNER_ID
et
CONFIGID with your credentials. Please find them in
your account
.
3) Finally, you must also add this link on all pages or in the Privacy Page so the users can display the CMP at any time
<button id="promptConsentUI" class="btn" on="tap:consent.prompt(consent=sirdata)" role="button">My consent choices</button>
INSTALL - Previous
Web & Mobile web
Next - CMP API
How it works
Last modified
1yr ago
Copy link