Introduction¶
Consent Manager provides a JavaScript API that allows the user to:
Get compliance types
Get new compliance types
Set initial compliance settings
Set compliance settings
Get compliance settings
Send data subject request
New in version 12.0: Open consent form
New in version 15.3: Track consent stats
JavaScript API is implemented by providing global JavaScript objects queue responsible for executing command:
-
ppms.cm.
api
(command, ...args)¶ Parameters: - command (string) – Command name
- args – Command arguments. The number of arguments and their function depend on command.
Returns: Commands are expected to be run asynchronously and return no value
Return type: undefined
Consent Manager is fully integrated with Tag Manager. If you already have asynchronous snippet installed, then you are able use Consent Manager’s JavaScript API.