snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.trackselfdescribingevent.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; [trackSelfDescribingEvent](./browser-tracker.trackselfdescribingevent.md)

## trackSelfDescribingEvent() function

Track a self-describing event happening on this page. A custom event type, allowing for an event to be tracked using your own custom schema and a data object which conforms to the supplied schema

<b>Signature:</b>

```typescript
declare function trackSelfDescribingEvent(event: SelfDescribingEvent & CommonEventProperties, trackers?: Array<string>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  event | SelfDescribingEvent &amp; CommonEventProperties | The event information |
|  trackers | Array&lt;string&gt; | The tracker identifiers which the event will be sent to |

<b>Returns:</b>

void