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.