Allow user tracking

wf.allowUserTracking(options)

Enables user tracking for the current user.

Syntax

1wf.allowUserTracking(options?: { reload?: boolean; activate?: boolean }): void

Parameters

  • options: object – Controls activation behavior. All properties are optional.
    • reload: boolean – Reloads the page after activating tracking. Default: false
    • activate: boolean – Activates tracking immediately. Default: true

Returns

This method doesn’t return a value to the caller.

Example

1// Ensure Browser APIs are ready before calling
2wf.ready(() => {
3 // Enable user tracking and activate immediately
4 wf.allowUserTracking({ activate: true });
5});