browser-tracker.trackselfdescribingevent
Home > @snowplow/browser-tracker > trackSelfDescribingEvent
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
Signature:declare function trackSelfDescribingEvent<T = Record<string, unknown>>(event: SelfDescribingEvent<T> & CommonEventProperties, trackers?: Array<string>): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | SelfDescribingEvent<T> & CommonEventProperties | The event information |
trackers | Array<string> | The tracker identifiers which the event will be sent to |
void