Skip to main content

browser-tracker.addplugin

Home > @snowplow/browser-tracker > addPlugin

addPlugin() function

Add a plugin into the plugin collection after trackers have already been initialised

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

Parameters

ParameterTypeDescription
configurationBrowserPluginConfigurationThe plugin to add
trackersArray<string>The tracker identifiers which the plugin will be added to
Returns:

void