|
1 |
| -<!-- Do not edit this file. It is automatically generated by API Documenter. --> |
2 |
| - |
3 |
| -[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [CorePlugin](./browser-tracker.coreplugin.md) |
4 |
| - |
5 |
| -## CorePlugin interface |
6 |
| - |
7 |
| -Interface which defines Core Plugins |
8 |
| - |
9 |
| -<b>Signature:</b> |
10 |
| - |
11 |
| -```typescript |
12 |
| -interface CorePlugin |
13 |
| -``` |
14 |
| - |
15 |
| -## Properties |
16 |
| - |
17 |
| -| Property | Type | Description | |
18 |
| -| --- | --- | --- | |
19 |
| -| [activateCorePlugin?](./browser-tracker.coreplugin.activatecoreplugin.md) | (core: TrackerCore) => void | <i>(Optional)</i> Called when the plugin is initialised during the trackerCore construction | |
20 |
| -| [afterTrack?](./browser-tracker.coreplugin.aftertrack.md) | (payload: Payload) => void | <i>(Optional)</i> Called just after the trackerCore callback fires | |
21 |
| -| [beforeTrack?](./browser-tracker.coreplugin.beforetrack.md) | (payloadBuilder: PayloadBuilder) => void | <i>(Optional)</i> Called before the <code>filter</code> method is called and before the trackerCore callback fires (if the filter passes) | |
22 |
| -| [contexts?](./browser-tracker.coreplugin.contexts.md) | () => SelfDescribingJson\[\] | <i>(Optional)</i> Called when constructing the context for each event Useful for adding additional context to events | |
23 |
| -| [filter?](./browser-tracker.coreplugin.filter.md) | (payload: Payload) => boolean | <i>(Optional)</i> Called before the payload is sent to the callback to decide whether to send the payload or skip it | |
24 |
| -| [logger?](./browser-tracker.coreplugin.logger.md) | (logger: Logger) => void | <i>(Optional)</i> Passed a logger instance which can be used to send log information to the active logger | |
25 |
| - |
| 1 | +<!-- Do not edit this file. It is automatically generated by API Documenter. --> |
| 2 | + |
| 3 | +[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [CorePlugin](./browser-tracker.coreplugin.md) |
| 4 | + |
| 5 | +## CorePlugin interface |
| 6 | + |
| 7 | +Interface which defines Core Plugins |
| 8 | + |
| 9 | +<b>Signature:</b> |
| 10 | + |
| 11 | +```typescript |
| 12 | +interface CorePlugin |
| 13 | +``` |
| 14 | + |
| 15 | +## Properties |
| 16 | + |
| 17 | +| Property | Type | Description | |
| 18 | +| --- | --- | --- | |
| 19 | +| [activateCorePlugin?](./browser-tracker.coreplugin.activatecoreplugin.md) | (core: TrackerCore) => void | <i>(Optional)</i> Called when the plugin is initialised during the trackerCore construction | |
| 20 | +| [afterTrack?](./browser-tracker.coreplugin.aftertrack.md) | (payload: Payload) => void | <i>(Optional)</i> Called just after the trackerCore callback fires | |
| 21 | +| [beforeTrack?](./browser-tracker.coreplugin.beforetrack.md) | (payloadBuilder: PayloadBuilder) => void | <i>(Optional)</i> Called before the <code>filter</code> method is called and before the trackerCore callback fires (if the filter passes) | |
| 22 | +| [contexts?](./browser-tracker.coreplugin.contexts.md) | () => SelfDescribingJson\[\] | <i>(Optional)</i> Called when constructing the context for each event Useful for adding additional context to events | |
| 23 | +| [filter?](./browser-tracker.coreplugin.filter.md) | (payload: Payload) => boolean | <i>(Optional)</i> Called before the payload is sent to the callback to decide whether to send the payload or skip it | |
| 24 | +| [logger?](./browser-tracker.coreplugin.logger.md) | (logger: Logger) => void | <i>(Optional)</i> Passed a logger instance which can be used to send log information to the active logger | |
| 25 | + |
0 commit comments