send-consent-data

Title

jentis.consent.engine.send-consent-data

Description

Triggered whenever the SDK needs to store consent data persistently on the server.

Usage

jentis.consent.engine.addEventListener('jentis.consent.engine.send-consent-data', function (e) {
    console.log("Consent data to send:", e.detail.moreInfo);
});

Event Data (e.detail.moreInfo)

An object containing the consent ID, timestamp, vendors, and changes:

{
  "consentid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "lastupdate": 36473882736,
  "vendors": {
    "ga": true,
    "adw": false,
    "fb": true
  },
  "vendorsChanged": {
    "ga": true
  }
}

Last updated

Was this helpful?