--- title: "Anonymous Tracking" slug: "smart-pixel-anonymous-tracking" updated: 2026-07-03T11:24:06Z published: 2026-07-03T11:24:06Z canonical: "docs.mapp.com/smart-pixel-anonymous-tracking" --- > ## 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. # Anonymous Tracking ## 1 Overview Anonymous tracking allows you to collect website data without storing any user-identifiable information, such as cookies or personal IDs. This setup can help you comply with privacy regulations while still gaining insights into user behavior. With the Smart Pixel, anonymous tracking works by: - Preventing the setting of user-identifiable cookies (e.g., eid, sid) - Suppressing specific query parameters that could contain identifiable data - Indicating anonymous requests in the tracking call via the nc=1 parameter > [!NOTE] > **Note:** This will limit your ability to analyze returning users. Cohort analyses, customer journeys, or any cross-session reports won’t be available. --- ## 2 Configuration Before using anonymous tracking, enable the relevant options in the advanced configuration. ```javascript wtSmart.advanced.add({  userIdentification: {    enableAnonymousFunction: true,    anonymousCookieName: 'miCookieOptOut',    anonymousOptIn: false,    suppressParameter: ['cd', 'uc5', 'uc7']  } }); ``` | **Configuration Option** | **Description** | **Default** | | --- | --- | --- | | enableAnonymousFunction | Enables the opt-out of user-identifiable tracking. When enabled, users can switch between anonymous and identifiable tracking. | false | | anonymousCookieName | Optional custom name for the anonymous tracking cookie. | miCookieOptOut | | anonymousOptIn | Enables anonymous tracking by default. The pixel won’t set any identifiable cookie unless the user opts in. | false | | suppressParameter | Defines which tracking parameters are suppressed when anonymous tracking is active. | Empty array | --- ## 3 Switching Tracking Modes ### 3.1 Default Behavior: Track Identifiable Users (anonymousOptIn = false) User-identifiable tracking is used by default. Users can opt out by setting the anonymous cookie. Opt-Out of User-Identifiable TrackingOpt-In to User-Identifiable Tracking ```javascript // Set anonymous tracking cookie (duration in minutes, optional) wtSmart.utils.optout.setAnonymousCookie(); ``` This activates anonymous tracking. The default duration is 5 years but can be changed. ```javascript // Delete the anonymous tracking cookie wtSmart.utils.optout.deleteAnonymousCookie(); ``` This reactivates user-identifiable tracking. **Example** ```xml      Title of the document                                        //opt-out of user-identifiable tracking             

Opt-out of user identifiers for 5 years

                   //opt-in to user-identifiable tracking             

Opt- in to tracking with user identifiers

     ``` ### 3.2 Anonymous by Default: Track Only After Consent (anonymousOptIn = true) Anonymous tracking is used by default. Users must opt in to enable user-identifiable tracking. Opt-In to User-Identifiable TrackingOpt-Out of User-Identifiable Tracking ```javascript // Set user-identifiable tracking cookie (duration optional) wtSmart.utils.optout.setAnonymousCookie(); ``` ```javascript // Delete the user-identifiable tracking cookie wtSmart.utils.optout.deleteAnonymousCookie(); ``` This reactivates user-identifiable tracking. **Example** ```xml      Title of the document                                        //Agree to user-identifiable tracking             

Agree to user identifiers for 5 years

                   //opt-out of user-identifiable tracking             

Return to default tracking without user identifiers

     ``` --- ## 4 How to Test Anonymous Tracking If anonymous tracking is enabled, verify it as follows: - In **Storage → Cookies**, `miCookieOptOut` is set to `1` - No user-identifiable cookie (e.g., `eid`) is stored - In **Network**, the request includes `nc=1` and omits `eid` - Any configured parameters (e.g., `cd`, `uc5`) are not sent > [!NOTE] > Note > > Looking for the full opt-out setup, including the server-side redirect and other integration methods? See [How can an Opt-out be set up for Mapp Intelligence tracking?](/v1/docs/how-can-an-opt-out-be-set-up-for-mapp-intelligence-tracking)