Back to Amphtml

Usercentrics

extensions/amp-consent/cmps/usercentrics.md

latest947 B
Original Source

Usercentrics

Collect user consent with Usercentrics CMP.

Example

html
<amp-consent id="consent" layout="nodisplay" type="Usercentrics">
  <script type="application/json">
    {
      "postPromptUI": "postPromptUI",
      "clientConfig": {
        "id": "i3_E5TN2b"
      }
    }
  </script>
  <div id="postPromptUI">
    Post Prompt UI
    <button on="tap:consent.prompt(consent=Usercentrics)">
      Manage
    </button>
  </div>
</amp-consent>

Configuration

AttributeTypeMandatoryDescription
idStringyesSettings id, provided via Admin Interface

In order to retrieve your settings id, please use the Usercentrics Admin Interface.

Support

Please get in contact with Usercentrics if you need further support.