Integration with Onetrust for cookies is unstable
Hi everyone,
I have implemented the Opt-In feature on the portal. I have one trust script to block the cookies, and it allows cookies to be created based on the selection of cookie consent by the user. Need help/guidance as if what might be going wrong here.
As per the documents, one trust script needs to load first and then, launch script containing scripts for optIn. Now, the one trust script loads first, and then the rules to create cookies. In launch, based on the cookie consent, if analytical consent is given, I am executing below code:
adobe.optIn.approve(adobe.OptInCategories.ANALYTICS, true);
adobe.optIn.approve(adobe.OptInCategories.ECID, true);
adobe.optIn.complete();
On pages, I can see that 1 out of 10 hits - value for adobe analytics(AA) is false, whereas the script was executed in this case as well.
When I run this in the console of the browser, adobe.optIn.permissions, I get to see that value is false for AA.

Thanks in advance!