OneTrust Pending Interact Calls
Hello Guys,
We have oneTrust implemented with one of our client and By default we have “Pending” as Default Consent in WebSDK Extension within Launch.
Now, Within one of the Rule, we check whether C0002 is added to OneTrustActiveGroups object and then accordingly we either opt-in or OptOut.
Below is the custom code written for the same:
(function () {
if (typeof window.alloy !== "function") {
console.warn("Adobe Web SDK (alloy) not available");
return;
}
var groups = String(window.OnetrustActiveGroups)
.split(",")
.map(function (s) { return s.trim(); })
.filter(Boolean);
var allowed = groups.includes("C0002");
window.alloy("setConsent", {
consent: [{
standard: "Adobe",
version: "2.0",
value: {
collect: { val: allowed ? "y" : "n" }
}
}]
}).then(function () {
console.log("Adobe consent set to:", allowed ? "IN" : "OUT");
});
})();
Now how do we handle pending interact calls with this scenario since when user is accepting the cookies, we are not seeing those pending interact calls.