Skip to main content

browser-tracker.enableactivitytracking

Home > @snowplow/browser-tracker > enableActivityTracking

enableActivityTracking() function

Enables page activity tracking (sends page pings to the Collector regularly).

Signature:
declare function enableActivityTracking(configuration: ActivityTrackingConfiguration, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
configurationActivityTrackingConfigurationThe activity tracking configuration
trackersArray<string>The tracker identifiers which will be configured
Returns:

void