Info
Content

Detecting the users regulation / legislation

In order to understand whether or not the consent layer needs to be shown, app-developers can fetch the regulation / legislation via a JSON api:

https://consentmanager.mgr.consensu.org/delivery/regulation.php?id=CMP-ID

(Replace CMP-ID with the ID of your CMP. This can be found in Menu > Get Code)

The API will respond with a JSON with the following content:

{"regulation":1}

or in case of an error:

{"error":"... description ..."}

The API will respond with the following regulation values:

Value Description
0 An unknown regulation / legislation applies to this user. The consent layer should not be shown.
1 GDPR applies to this user. The consent layer for GDPR should be shown. The preference icon should be shown.
2 CCPA applies to this user. The consent layer for CCPA can be shown. The Do-not-sell link should be shown.
3 LGPD applies to this user. The consent layer for LGPD should be shown. The preference icon should be shown.

 

Back to top