SOLVED

Re: Honoring do-no-track cookies using OneTrust

Go to solution
Dan_Stevens_
Level 10 - Champion Alumni

Honoring do-no-track cookies using OneTrust

We are doing a POC to block Marketo lead tracking when performance cookies are blocked on the site. There is documentation available for this on https://developers.marketo.com/javascript-api/lead-tracking/ where we are asked to add querystring parameter “marketo_opt_out=true” to the URL to opt a user out. This is not a feasible solution for our website as we will need to refresh the page with the new query string. We will need to opt-out a user if the performance (tracking) cookies are disabled. We are looking for some documentation which includes some Javascript  which we can use to opt a user out, e.g., calling some marketo.optout() function if performance cookies are blocked.

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Honoring do-no-track cookies using OneTrust

Hi Dan,

 

The way OneTrust is designed shouldn’t require you to use the Marketo-specific feature.


Rather, OneTrust expects you to set up scripts with a non-executable type, like

<script type="text/not-a-script-type"></script>

This makes them HTML5 data blocks. They don’t run as-is.

 

Then depending on the end user’s opt-in settings, the script tags are reinjected as standard scripts (with no type override).

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Honoring do-no-track cookies using OneTrust

Hi Dan,

 

The way OneTrust is designed shouldn’t require you to use the Marketo-specific feature.


Rather, OneTrust expects you to set up scripts with a non-executable type, like

<script type="text/not-a-script-type"></script>

This makes them HTML5 data blocks. They don’t run as-is.

 

Then depending on the end user’s opt-in settings, the script tags are reinjected as standard scripts (with no type override).

Dan_Stevens_
Level 10 - Champion Alumni

Re: Honoring do-no-track cookies using OneTrust

Thanks Sandy!