To comply with data protection regulations and give your website visitors more control, you should provide an opt-out option for Mapp Intelligence tracking.
This page focuses on web-based tracking using the standard Mapp Intelligence Pixel. We recommend a dual opt-out approach that combines:
a client-side opt-out (via function call, e.g. triggered by onclick)
a server-side opt-out (via redirect to your Track Domain)
This ensures maximum reliability – if one method fails (e.g. due to browser restrictions), the other still applies.
The implementation depends on your tracking method (e.g., Smart Pixel, Tag Integration, or Pixel Version 4). Please refer to the relevant examples below.
Smart Pixel
<script type="text/javascript">
function wtOptOut() {
window.wtSmart = window.wtSmart || [];
window.wtSmart.push(function(wtSmart) {
wtSmart.utils.optout.set(10*12*30*24*60);
});
}
</script><a id="optout"
title="OptOut click"
href=https://[TrackDomain]/[TrackId]/optout.php?redirect=[encoded URL of data privacy page]
onclick="wtOptOut();"
>Click here to opt-out from tracking</a>Note that you have to replace the following elements in the link:
Track Domain
Track ID
encoded URL of data privacy page
Tag Integration
<script type="text/javascript">
window.wts = window.wts || [];
if (typeof window.wts.get === 'function') {
wts.get('setCookie')('webtrekkOptOut', 1, 10*12*30*24*60);
}
</script><a id="optout"
title="OptOut click"
href=https://[TrackDomain]/[TrackId]/optout.php?redirect=[encoded URL of data privacy page]
onclick="wtOptOut();"
>Click here to opt-out from tracking</a>Note that you have to replace the following elements in the link:
Track Domain
Track ID
encoded URL of data privacy page
Pixel Version 4
<script type="text/javascript">
function wtOptOut() {
if (typeof window.wt.setCookie === 'function') {
window.wt.setCookie('webtrekkOptOut', 1, 10*12*30*24*60);
}
}
</script><a id="optout"
title="OptOut click"
href=https://[TrackDomain]/[TrackId]/optout.php?redirect=[encoded URL of data privacy page]
onclick="wtOptOut();"
>Click here to opt-out from tracking</a>Note that you have to replace the following elements in the link:
Track Domain
Track ID
encoded URL of data privacy page
If you’re using other types of integration, such as mobile SDKs, the opt-out needs to be handled differently. Please refer to the respective documentation: