We are migrating from GTM to Adobe Tags and one of the things we are having trouble with is when sending the setConsent through alloy. We send both the consents and the identityMap with the user's values, ECID, userID, Email Hash. In the events we see that everything is sent correctly and there are no errors. When we look at the profile we see that all the data from the sent consent is associated with the respective ECID and this is mapped within the idSpecific but these are not reflected in the general object. The call we make to set the setConsent is as follows:
alloy("setConsent", {
consent: [{
standard: "Adobe",
version: "2.0",
value: {
collect: {
val: "y"
},
personalize: {
content: {
val: customization ? "y" : "n"
}
},
marketing: {
any: {
val: advertising ? "y" : "n"
},
preferred: "none"
},
metadata: {
time: collectedAt
}
}
}],
identityMap: {
"userId": [{
"id": user_id,
"authenticatedState": "authenticated",
"primary": true
}],
"Email_LC_SHA256": [{
"id": user_email,
"authenticatedState": "authenticated",
"primary": false
}],
"ECID": [{
"id": id,
"authenticatedState": "ambiguous",
"primary": false
}
]
}
});
If we were not going to need this data we would not care about this operation, but we need to establish a consent policy that collects the consent of collect with the value Y.
Ideally, the last incoming ECID would establish the general values of the consent in the main object, which does not happen, but in case that it cannot be done, within consent policies we would like to recover some way for each ECID the value of collect.val.y (to give an example), but as the ECID is in between we don't know if there is a way to indicate which one in the following way or something similar:
We appreciate any help you can give.