snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/node-tracker/markdown/node-tracker.buildselfdescribingevent.md

Summary

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

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [buildSelfDescribingEvent](./node-tracker.buildselfdescribingevent.md)

## buildSelfDescribingEvent() function

Build a self-describing event 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 buildSelfDescribingEvent(event: SelfDescribingEvent): PayloadBuilder;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  event | SelfDescribingEvent | Contains the properties and schema location for the event |

<b>Returns:</b>

PayloadBuilder

PayloadBuilder to be sent to