Use Do Not Track Script code to suppress Collect Tracking Code on your website when a subscriber opts out of tracking. Collect Tracking Code doesn’t use browser settings to determine whether to track user activity.
This code suppresses all tracking activities, including:
- trackCart
- trackConversion
- trackEvent
- trackPageView
- trackRating
Use this code in place of the standard Set Org ID script:
<script type="text/javascript">
_etmc.push(["setOrgId", "123456"]);
_etmc.push(["doNotTrack"]);
_etmc.push(["trackPageView"]);
</script>
For information about managing privacy settings programmatically, see Personalization Builder API.