visitorId
fun visitorId(enforcedSettings: (VisitorIdSettingsBuilder) -> VisitorIdSettingsBuilder? = defaultSettings()): ModuleFactory
Collects the current visitor id, and manages Visitor Switching when a new identity is detected.
Note. This module is automatically added. This method is provided to allow customizing ordering of modules if required.
The module is enabled unless it is explicitly disabled by local, remote or enforced settings. Disabling it removes the visitor id from the events and makes every VisitorIdManager operation fail.
Parameters
enforcedSettings
Visitor ID settings that should override any from any other settings source. Pass null to initialize this module only when some Local or Remote settings are provided. Omitting this parameter will initialize the module with its default settings.