Skip to content

Commit

Permalink
✨Adding ConsentManager CMP to amp-consent (#29848)
Browse files Browse the repository at this point in the history
* Initial changes

* Update consentmanager.md

* Update cmps.js

* Update cmps.js

* Update consentmanager.md

Co-authored-by: Carsten Dietz <carsten.dietz@adspirit.de>
Co-authored-by: Micajuine Ho <micajuineho@google.com>
  • Loading branch information
3 people committed Sep 10, 2020
1 parent c9d13b7 commit a237a6d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/amp-consent/cmp-vendors.amp.html
Expand Up @@ -96,6 +96,7 @@
<!-- This should be in alphabetical order. _ping_ should be the first -->
<option>_ping_</option>
<option>appconsent</option>
<option>ConsentManager</option>
<option>didomi</option>
<option>iubenda</option>
<option>sirdata</option>
Expand Down Expand Up @@ -159,6 +160,22 @@ <h3>Image that is NOT blocked by consent</h3>
</amp-consent>
<!-- End appconsent example -->


<!-- ConsentManager example -->
<amp-consent id="ConsentManager" layout="nodisplay" type="ConsentManager">
<script type="application/json">
{
"postPromptUI": "postPromptUI",
"clientConfig": { "id": "1" }
}
</script>
<div id="postPromptUI">
Post Prompt UI
<button on="tap:consent.prompt(consent=ConsentManager)" role="button">Manage</button>
</div>
</amp-consent>
<!-- End appconsent example -->

<!-- didomi example -->
<amp-consent id='didomi' layout='nodisplay' type='didomi'>
<script type="application/json">
Expand Down
7 changes: 7 additions & 0 deletions extensions/amp-consent/0.1/cmps.js
Expand Up @@ -42,6 +42,13 @@ CMP_CONFIG['appconsent'] = {
'promptUISrc': 'https://cdn.appconsent.io/loader.html',
};

CMP_CONFIG['ConsentManager'] = {
'consentInstanceId': 'ConsentManager',
'checkConsentHref':
'https://consentmanager.mgr.consensu.org/delivery/ampcheck.php',
'promptUISrc': 'https://consentmanager.mgr.consensu.org/delivery/ampui.php',
};

CMP_CONFIG['didomi'] = {
'consentInstanceId': 'didomi',
'checkConsentHref': 'https://api.privacy-center.org/amp/check-consent',
Expand Down
1 change: 1 addition & 0 deletions extensions/amp-consent/amp-consent.md
Expand Up @@ -615,6 +615,7 @@ Join in on the discussion where we are discussing [upcoming potential features](
## Supported Consent Management Platforms

- AppConsent : [Website](https://appconsent.io/en) - [Documentation](./cmps/appconsent.md)
- ConsentManager : [Website](https://www.consentmanager.net/) - [Documentation](https://help.consentmanager.net/books/cmp/page/using-the-cmp-with-amp-websites)
- Didomi : [Website](https://www.didomi.io/) - [Documentation](https://developers.didomi.io/cmp/amp)
- iubenda : [Website](https://www.iubenda.com/) - [Documentation](./cmps/iubenda.md)
- Sirdata : [Website](http://www.sirdata.com/) - [Documentation](https://cmp.sirdata.com/#/docs)
Expand Down
50 changes: 50 additions & 0 deletions extensions/amp-consent/cmps/consentmanager.md
@@ -0,0 +1,50 @@
<!---
Copyright 2019 The AMP HTML Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

# 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)" 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](https://www.consentmanager.net/) and our [Documentation](https://help.consentmanager.net/books/cmp/page/using-the-cmp-with-amp-websites) for more information.

0 comments on commit a237a6d

Please sign in to comment.