Consents API
Running on pageload
If you would like to run any of the below functions on page load, make sure to wrap it with the adn.calls
function:
Trigger the popup
In order to trigger the popup you can use this function:
The init function will offer two positions listed below, replace {POSITION} in the text above in order to trigger the appropriate popup:
Value
Action
messageBox
Will trigger a box in the bottom corner of the page. Example below
overlay
Will trigger an overlay over the page. Example below
Save all purposes
Value
Action
true
Sets all purposes and vendors to accepted.
false
Sets all purposes and vendors to rejected.
Callback for Save button
The consentData
variable will return this object:
Last updated