Overview

ValueNotesData typeDefault valueRequired
secureCookie

When set to true , the "secure" flag will be added to all client-side Mapp Intelligence cookies.

Booleanfalse-
optOutNameDefines an alternative name for the Mapp Intelligence opt-out cookie.StringwebtrekkOptOut-
requestObfuscation

When set to true the option, the pixel randomly mixes the parameters of the request to make it harder for adblockers to identify and block Mapp Intelligence track requests.

Booleanfalse-
forceOldEverId

When set to true the ever IDs from previous pixel versions will be migrated and used.

Booleanfalse-
execCDBActivates/deactivates the Cross Device Bridge.Booleantrue-
useCDBCacheActivates/deactivates the image cache for the Cross Device Bridge.Booleanfalse-
sendViaSDKActivates/deactivates the Web-to-App tracking functionality, e.g., when tracking web views in mobile applications.Booleanfalse-
sendViaServer.activatedActivates/deactivates the pixel configuration to support server-to-server tracking. This can be used in connection with Mapp's server-to-server libraries.Booleanfalse-
sendViaServer.serverDomainIndicates the domain where the server-to-server library is hosted. If left empty, the pixel sends the requests to the Mapp Intelligence track server directly and not to the server-to-server library.String--
sendViaServer.serverPathIndicates the path where the server-to-server library is saved on your server. If left empty, the requests are sent directly to the Mapp Intelligence track server and not to the server-to-server library.String--
sendViaServer.droppedRequests

Discard pixel requests:

  • 0: None

  • 1: Orders

  • 2: Products

  • 3: All page requests

Indicate the type of requests that have to be discarded by the pixel. It is possible to narrow the requests further if you indicate specific content IDs under "Discard specific requests".

Number--
sendViaServer.blacklist

Indicates specific page requests that need to be discarded by the pixel. Please note:

  • Suppose you would like only to discard a specific order or product request. In that case, you need to set discard pixel requests to orders or products, respectively, and indicate the particular content ID of the order or product to be dumped here.
  • If you like only to discard a specific page request, you need to set discard pixel requests to all page requests and indicate the content ID to be dumped here.
String[] / RegExp[]--
useHashForDefaultPageNameIncludes the URL hash in the default page name.Booleanfalse-
useParamsForDefaultPageNameIncludes specific URL parameter(s) in the default page name.String[][]-
requestQueue.activated

When set to true, the offline tracking queue functionality is activated.

Booleanfalse-
requestQueue.ttlSpecifies the maximum time a request can remain in the queue until it is deleted.Number5 * 60 * 1000-
requestQueue.resendIntervalDefines the millisecond interval between resending requests if an error occurred during send out or a request could not have been sent.Number5 * 1000-
requestQueue.sizeDefines the maximum number of requests saved in the queue.Number100-
requestQueue.retriesSpecifies the maximum number of retries before the request is deleted or no more requests are sent for the entire session. -1 specifies an unlimited number of retries.Number-1-
requestQueue.retriesOption

Specifies the option of retries:

  • 1: The limit is set for each request
  • 2: The limit is set for the entire session
Number1-
requestLimit.activatedActivates/deactivates the request limitation. The maximum number of permissible requests is limited to reduce the risk of sending many requests in error. This could be caused by an incorrect pixel implementation or by bot traffic. As soon as the standard limit of 1000 requests (pages and actions) every 30 minutes is exceeded, no further requests are sent by the pixel for the remaining time.Booleanfalse-
requestLimit.amountThe maximum number of requests permitted to be sent in the specified time period.Number1000-
requestLimit.durationTime interval in seconds for sending the maximum X number of requests.Number30*60-
userIdentification.enableAnonymousFunctionEnable if you want to allow users to opt out of user-identifiable cookies and parameters when tracking. By default, this function will still track with user-identifiable cookies, but users can opt-out using the respective function.Booleanfalse-
userIdentification.anonymousCookieNameAn alternative name for the anonymous tracking cookie. If you do not provide a name, miCookieOptOut will be used.StringmiCookieOptOut-
userIdentification.anonymousOptInEnable if you want to use anonymous tracking by default. Enabling this option will not set any user-identifiable cookie until the user actively agrees to its usage.Booleanfalse-
userIdentification.suppressParameterIt can exclude additional parameters if the user sets the user-identifiable opt-out cookie. Please indicate the respective parameters in the array.String[][]-
userIdentification.temporarySessionIdIn order to keep the session and the user during a single session, we offer the possibility to set a temporary session ID that keeps the session together but is not permanently stored on a device.String--
userIdentification.saveTemporarySessionIdIf you enable this option, the temporary session ID will be stored in the session storage, so you don't have to set it on every pageBooleanfalse-

Implementation Example

import { WebtrekkSmartPixelReact, WebtrekkAdvancedData } from "@webtrekk-smart-pixel/react";
JS
import { WebtrekkSmartPixelReact, WebtrekkAdvancedData } from "@webtrekk-smart-pixel/next";
JS
WebtrekkSmartPixelReact.advanced({
    secureCookie: false,
    optOutName: "webtrekkOptOut",
    requestObfuscation: false,
    forceOldEverId: false,
    execCDB: true,
    useCDBCache: false,
    sendViaSDK: false,
    sendViaServer: {
        activated: false,
        serverDomain: '',
        serverPath: '',
        droppedRequests: 0,
        blacklist: [/.+/]
    },
    useHashForDefaultPageName: true,
    useParamsForDefaultPageName: ['param1', 'param2'],
    requestQueue: {
        activated: false,
        ttl: 5 * 60 * 1000,
        resendInterval: 5 * 1000,
        size: 100,
        retries: -1,
        retriesOption: 1
    },
    requestLimit: {
        activated: false,
        amount: 1000,
        duration: 30 * 60
    },
    userIdentification: {
        enableAnonymousFunction: false,
        anonymousOptIn: 'miCookieOptOut',
        anonymousCookieName: false,
        suppressParameter: []
    }
});
JS
render()
{
    return (
        <div>
            <WebtrekkAdvancedData
                secureCookie={ false }
                optOutName="webtrekkOptOut"
                requestObfuscation={ false }
                forceOldEverId={ false }
                execCDB={ true }
                useCDBCache={ false }
                sendViaSDK: { false },
                sendViaServer: { {
                    activated: false,
                    serverDomain: '',
                    serverPath: '',
                    droppedRequests: 0,
                    blacklist: [/.+/]
                } },
                useHashForDefaultPageName: { true },
                useParamsForDefaultPageName: { ['param1', 'param2'] },
                requestQueue={ {
                    activated: false,
                    ttl: 5 * 60 * 1000,
                    resendInterval: 5 * 1000,
                    size: 100,
                    retries: -1,
                    retriesOption: 1
                } },
                requestLimit: { {
                    activated: false,
                    amount: 1000,
                    duration: 30 * 60
                } },
                userIdentification: { {
                    enableAnonymousFunction: false,
                    anonymousOptIn: 'miCookieOptOut',
                    anonymousCookieName: false,
                    suppressParameter: []
                } }
            />
        </div>
    );
}
JS