browser-tracker.enableactivitytrackingcallback
Home > @snowplow/browser-tracker > enableActivityTrackingCallback
enableActivityTrackingCallback() function
Enables page activity tracking (replaces collector ping with callback).
Signature:declare function enableActivityTrackingCallback(configuration: ActivityTrackingConfiguration & ActivityTrackingConfigurationCallback, trackers?: Array<string>): void;
Parameters
Parameter | Type | Description |
---|---|---|
configuration | ActivityTrackingConfiguration & ActivityTrackingConfigurationCallback | The activity tracking callback configuration |
trackers | Array<string> | The tracker identifiers which will be configured |
void