Block cookies automatically dropped by Launch | Community
Skip to main content
atarian2049
November 19, 2025
Question

Block cookies automatically dropped by Launch

  • November 19, 2025
  • 1 reply
  • 104 views

Greetings.

 

I'm having a dickens of a time trying to stop cookies like "mbox", "s_sq", "s_plt", "s_pltp", and others from dropping upon the loading of Adobe Launch in a website before the user selects whether they wish to use cookies through OneTrust. It looks like the cookies are created and dropped when the minified Launch JS file is loaded from adobedtm. The Launch JS is necessary for the page to run properly from the outset, so I just need to stop the cookies from dropping. If anyone has any recommendations, I'd love to hear them.

1 reply

Amruthesh_AG
Community Advisor
Community Advisor
November 20, 2025

@atarian2049  are you implemented analytics tracking websdk or AppMeasurement.js? 

 

you can use below code 

adobe.optIn.denyAll();
var consentlist= window.OnetrustActiveGroups;

if(consentlist){
if (consentlist.indexOf(",C0002,") > -1 ) {
adobe.optIn.approve(adobe.OptInCategories.ANALYTICS,true);
adobe.optIn.approve(adobe.OptInCategories.TARGET,true);
adobe.optIn.approve(adobe.OptInCategories.ECID,true);
adobe.optIn.complete();
}
}

 

atarian2049
November 20, 2025

I'm using AppMeasurement.js (along with VisitorAPI and MediaSDK). Is the OT Check a custom code block as well? I don't see that as a standard condition type. I'm guessing the custom code in the actions is where you implemented the written code above the images, correct?

atarian2049
November 20, 2025

Also, wouldn't the cookies have already dropped just from using the Launch JS file by the time it gets to the rules in the code?