Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust

Nimmi_George
Level 1

Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust

Hi All,

In one of our marketo landing page templates, we use 'AddThis', which is in fact dropping a cookie. We are in the process of integrating one trust in our marketo landing pages. We have tried the JS Type Rewrite method proposed by one trust for controlling the 'AddThis' cookie. But we are not able to control the same. Has anyone successfully tried the JS Type Rewrite of one trust to control cookies inserted by code. Could you check attached snapshot and suggest if anything more is to be done?JS Type rewrite codeJS Type rewrite code

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust

Need a link to your page.

 

That script isn't executing while the type is non-executable text/plain. It has to be getting reinjected by OneTrust erroneously, or else getting redundantly loaded somewhere else you haven't looked, like GTM.

Nimmi_George
Level 1

Re: Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust

Hi Sanford, Thanks for replying. Sorry, would not be able to share the link. The solution provided by one trust for controlling cookies inserted by client side code is JS Type Rewriting. This is the URL for the same, for your reference - https://community.cookiepro.com/s/article/UUID-730ad441-6c4d-7877-7f85-36f1e801e8caClient side cookie management - JS type rewriteClient side cookie management - JS type rewrite

SanfordWhiteman
Level 10 - Community Moderator

Re: Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust

I'm aware of how it works... in fact I consulted with OneTrust when they were building out their code a few years ago.

 

Rest assured that if you have changed the MIME type in your markup, that code is not executing on its own. It can only be exec'd if your OneTrust config rewrites it back to an executable type. So the problem is in your config, which we can't see.

Nimmi_George
Level 1

Re: Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust

Thank you Sanford. Is there a specific one trust config file where this can be checked. Is it part of One Trust admin portal? If so, I can get this checked by our One Trust Admin.