Listening to the Consent JavaScript SDK
Synchronous (Generic) Listener
document.addEventListener('<eventname>', function (e) {
console.log(e.detail.<more info>);
});Asynchronous (Specific) Listener
jentis.consent.engine.addEventListener('<eventname>', function (e) {
console.log(e.detail.<more info>);
});Best Practice: Writing a Listener That Works in Both Cases
Last updated
Was this helpful?