Documentation Index

Fetch the complete documentation index at: https://docs.mapp.com/llms.txt

Use this file to discover all available pages before exploring further.

How can an Opt-out be set up for Mapp Intelligence tracking?

Prev Next

To comply with data protection regulations and give your website visitors more control, you should provide an opt-out option for Mapp Intelligence tracking.

Warning

Website operators are responsible for complying with applicable data protection and telecommunications privacy laws when implementing tracking. Requirements differ by jurisdiction — consult your legal or data protection team to confirm what applies to your website.

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(5*12*30*24*60); // 5 years in minutes
		});
	}
</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>

Placeholder

Description

Example

[TrackDomain]

Your Mapp Intelligence Track Domain

q3.webtrekk.net

[TrackId]

Your Mapp Intelligence Track ID

123456789012345

[encoded URL of data privacy page]

URL-encoded link to your privacy or confirmation 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:

Note

In addition to providing the opt-out mechanism described above, make sure your website includes a privacy statement that explains what data is collected and how visitors can opt out.