Skip to main content

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

ParameterTypeDescription
configurationActivityTrackingConfiguration & ActivityTrackingConfigurationCallbackThe activity tracking callback configuration
trackersArray<string>The tracker identifiers which will be configured
Returns:

void