snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.addplugin.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [addPlugin](./browser-tracker.addplugin.md)

## addPlugin() function

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

<b>Signature:</b>

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

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  configuration | BrowserPluginConfiguration | The plugin to add |
|  trackers | Array&lt;string&gt; | The tracker identifiers which the plugin will be added to |

<b>Returns:</b>

void