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

  • New in version 18.11: Clear consent settings

JavaScript API is implemented by providing a global JavaScript objects queue responsible for executing commands:

ppms.cm.api(command, ...args)
Parameters:
  • command (string) – Command name
  • args – Command arguments. The number of arguments and their function depend on the 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 an asynchronous snippet installed, then you are able to use the Consent Manager’s JavaScript API.