Please note that using this function will significantly decrease data quality.

When using anonymous tracking, the SDK will not generate an everID, which prevents user recognition in Intelligence. Users can also optionally suppress any parameter when anonymous tracking is enabled (such as the customer or orderID). Tracking users anonymously can also impact both session detection (causing session breaks) and user recognition in-between sessions.

You can choose to enable anonymous tracking in Global Configuration. This option means using anonymous tracking by default without offering an opt-in or opt-out. It is possible to control anonymous tracking during runtime.


Field Possible ValuesDescriptionDefault

enabled: Boolean

true, false

Enables anonymous tracking. When enabled, the requests are sent without the everID.disabled
suppressParams: Set<String>Set<String>Optionally, you can suppress additional parameters when anonymous tracking is enabled.empty
generateNewEverId: Booleantrue, falseYou can keep the already generated everID in the database so that it can be re-used if the user changes their settings.True (new everID is generated)


abstract fun anonymousTracking(enabled: Boolean,
suppressParams: Set<String>,
generateNewEverId: Boolean)
Enables and disables anonymous tracking.


Enable Anonymous Tracking

You can enable anonymous tracking via a function in your application:

 Webtrekk.getInstance().anonymousTracking(enabled=true,suppressParams= setOf("cd", "uc703", "uc1"), generateNewEverId = false)
 Set<String> mySet = new HashSet<>(Arrays.asList("cd", "uc703", "uc1"));
 Webtrekk.getInstance().anonymousTracking(true, mySet,  false);

Disable Anonymous Tracking 

You can disable anonymous tracking via a function in your application:

Webtrekk.getInstance().anonymousTracking(enabled=false, generateNewEverId = false)
Set<String> mySet = new HashSet<>();
Webtrekk.getInstance().anonymousTracking(false, mySet,  false);

What is Anonymized (aka Cookieless) Tracking?