Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.86 KB

consentmanager.md

File metadata and controls

50 lines (40 loc) · 1.86 KB

ConsentManager

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

Example

<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)" role="button">
      Manage
    </button>
  </div>
</amp-consent>

Configuration

Attribute Type Mandatory Description
id String yes Your ConsentManager CMP ID. Can be found in your account under Menu > Get Code
params String no Additional parameters that can be used in order to configure the CMP layout

Visit the ConsentManager Website and our Documentation for more information.