Issues with JS Rewrite for controlling cookies in Marketo Landing Pages using One Trust | Community
Skip to main content
Nimmi_George
New Participant
May 8, 2020
Question

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

  • May 8, 2020
  • 1 reply
  • 2666 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
May 8, 2020

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
New Participant
May 11, 2020

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 - community.cookiepro.com/s/article/UUID-730ad441-6c4d-7877-7f85-36f1e801e8caClient side cookie management - JS type rewrite

SanfordWhiteman
New Participant
May 11, 2020

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.