Back to Amphtml

ConsentManager

extensions/amp-consent/cmps/consentmanager.md

latest1.3 KB
Original Source

ConsentManager

Collect and enforce user consent with the ConsentManager CMP. Login to your ConsentManager.net account in order to create a CMP.

Example

html
<amp-consent id="ConsentManager" layout="nodisplay" type="ConsentManager">
  <script type="application/json">
    {
      "postPromptUI": "postPromptUI",
      "clientConfig": {
        "id": "your CMP ID",
        "params": "optional configuration parameters"
      }
    }
  </script>
  <div id="postPromptUI">
    Post Prompt UI
    <button on="tap:consent.prompt(consent=ConsentManager)">
      Manage
    </button>
  </div>
</amp-consent>

Configuration

AttributeTypeMandatoryDescription
idStringyesYour ConsentManager CMP ID. Can be found in your account under Menu > Get Code
paramsStringnoAdditional parameters that can be used in order to configure the CMP layout

Visit the ConsentManager Website and our Documentation for more information.