For our requirement ,
Consent is set via AEM and alloy.js is redirectly integrated via AEM only.
3 datastream IDs are set for different consent.
- AEP
- AEP & Target
- Target
if an user lands on the web page the first time and in consent banner user accept the consent for AEP & target, Datastream ID appears fine in the interact call in networks.
if user reverted the changes and change the consent with only AEP selected and target as unselected, we are getting two interacts call one with old id (both aep and target selected) and other with the correct one (only aep selected).
We have used Datastream override method for consent change and used alloy version of 2.19.2
How to get the correct datastream id alone and avoiding the previous call.