Need advice on AEP Datastream ID changing/switching for an action
Need advice on the AEP Datastream ID switching.
Three Datastream IDs were created that are for the below services.
1. Datastream ID 1st - for Target service only
2. Datastream ID 2nd - for AEP service only
3. Datastream ID 3rd - for (Target + AEP) service
These 3 datastream IDs were created for a consent point of view on the web page. The consent banner has options for enabling and disabling Target and AEP.
Based on the consent given, the AEM team applied logic for appearing relevant Datastream ID on the page.
Let me explain the issue with one scenario -
1. A user lands on the web page the first time and consent banner appears and user accepts for TARGET only.
for the scenario Datastream ID appearing correct(Target enabled Datastream ID) in server call. fine
2. After few minutes the same customer goes to cookie page and change consent again (e.g. disabled TARGET and enable AEP).
As soon as the consent button is clicked after changing the consent option (e.g. disabled TARGET and enabled AEP) the previous Datastream id is apprearing still on the page but after loading the page manually, ID is correctly showing. issue
Kindly advise for any method for changing/switching Datastream ID as soon as consent button is clicked with different options.
NOTE: Page is not loading after clicking on consent banner. we are not using Adobe Launch. alloy.js directly set into the page.
Thanks