Expand my Community achievements bar.

Join expert-led sessions on Real-Time CDP & Journey Optimizer designed to boost your impact.
SOLVED

Consents in AEP web SDK extension

Avatar

Level 2

Hello All,

Currently the below cookies are getting collected even before the user provides his consent through the one trust cookie banner . This is working due to the configuration in the AEP web SDK extension which is In - collect events that occur before the user provides consent preferences. How can we modify this setting via the custom data element option so that these cookies will occur only after the user provides his consent on the one trust cookie banner.

 

Sankaran_2-1749727787132.png

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You will need to configure the "Consent" section in the Web SDK extension's configuration:

yuhuisg_0-1749737982027.png

 

You will need to have a custom data element that returns "in", "out" or "pending". Setting to "out" or "pending" should prevent the cookies from being written before the user has granted consent, as documented at https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/configure/defaultcon...

I haven't worked with OneTrust nor any consent management system. But that CMS should set a cookie after the user grants consent. You can then use that cookie to run the "Set Consent" action later.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

You will need to configure the "Consent" section in the Web SDK extension's configuration:

yuhuisg_0-1749737982027.png

 

You will need to have a custom data element that returns "in", "out" or "pending". Setting to "out" or "pending" should prevent the cookies from being written before the user has granted consent, as documented at https://experienceleague.adobe.com/en/docs/experience-platform/web-sdk/commands/configure/defaultcon...

I haven't worked with OneTrust nor any consent management system. But that CMS should set a cookie after the user grants consent. You can then use that cookie to run the "Set Consent" action later.

Avatar

Level 2

Thanks @yuhuisg for the detailed response. I will look into this.