Back to Amphtml

DIDOMI

extensions/amp-consent/cmps/didomi.md

latest732 B
Original Source

DIDOMI

Collect and enforce user consent with the Didomi Consent Management Platform. Use the Didomi Console to create and configure your consent notices.

Example

html
<amp-consent id="didomi" layout="nodisplay" type="didomi">
  <script type="application/json">
    {
      "postPromptUI": "postPromptUI",
      "clientConfig": {"config": {"app": {"apiKey": "Your-API-Key"}}}}
    }
  </script>
  <div id="postPromptUI">
    Post Prompt UI
    <button on="tap:didomi.prompt(consent=didomi)">Manage</button>
  </div>
</amp-consent>

Configuration

Visit the Didomi Console and our Documentation for more information.