Opt-Out Implementation
    • 1 Minute to read
    • Dark
      Light

    Opt-Out Implementation

    • Dark
      Light

    Article summary

    To ensure compliance with privacy regulations and to support user trust, you should provide an opt-out option for Mapp Intelligence tracking on your website.

    Mapp Intelligence is designed with data protection in mind: All tracking data is stored securely and remains under your control. Nevertheless, offering an opt-out is not only a legal requirement in many regions – it also signals transparency and respect for user choices.

    We recommend implementing the opt-out using a dual approach:

    • Client-side opt-out: A cookie is set via JavaScript on click.

    • Server-side opt-out: A redirect to the tracking domain ensures that the opt-out is also recognized server-side.

    This combination ensures maximum reliability, even in environments where one method may fail (e.g., due to browser restrictions).


    1 Client-Side Opt-Out

    Add the following JavaScript function to your website. It sets the opt-out cookie for a duration of five years:

    <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>

    2 Server-Side Opt-Out

    Place the following link somewhere on your website (e.g., in your privacy policy). This link sets the opt-out cookie via the tracking server:

    <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>

    Replace the placeholders:

    Placeholder

    Description

    Example

    [TrackDomain]

    Your Mapp Intelligence Track Domain

    q3.webtrekk.net

    [TrackId]

    Your Mapp Intelligence Track ID

    123456789012345

    [encoded URL of your privacy page]

    URL-encoded link to your privacy or confirmation page


    Was this article helpful?

    What's Next
    ESC

    AI Assistant, facilitating knowledge discovery through conversational intelligence