--- title: "Opt-Out Integration" slug: "opt-out-integration" updated: 2024-12-02T10:28:17Z published: 2024-12-02T10:28:17Z canonical: "docs.mapp.com/opt-out-integration" --- > ## 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. # Opt-Out Integration To comply with data privacy requirements and offer your users control over tracking, you must integrate an **opt-out option** for Mapp Intelligence tracking on your website. This guide provides code examples for both **Tracking Pixel v4/v5** and the **Smart Pixel**. Choose the appropriate implementation based on your tracking setup. --- ## General Recommendations 1. **Place the Script in the Right Spot**: Add the opt-out script to your website in a location where it will reliably execute (e.g., within the or just before the closing tag). 2. **Test the Integration**: Verify the opt-out functionality by checking if the respective cookie (webtrekkOptOut for v4/v5 or Smart Pixel’s opt-out cookie) is properly set and that tracking stops for opted-out users. 3. **User Interface**: Provide a clear and accessible button or link in your privacy settings or footer for users to activate the opt-out functionality. --- ## Opt-Out for Smart Pixel For the **Smart Pixel**, use the following script to enable opt-out functionality: ```xml ``` **Key Notes:** - The opt-out mechanism is handled via the Smart Pixel’s wtSmart library. - It sets a **long-term opt-out** option valid for approximately **10 years** (10*12*30*24*60 minutes). - This ensures that no data is tracked for users who opt out. --- ## Opt-Out for Tracking Pixel v4/v5 ```xml ``` **Key Notes:** - The script sets a **cookie** named webtrekkOptOut with a value of 1. - The cookie’s validity is configured for approximately **10 years** (10*12*30*24*60 minutes). - This prevents the Tracking Pixel from collecting user data after the opt-out is activated.