Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 979 Bytes

File metadata and controls

25 lines (15 loc) · 979 Bytes

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

Returns:

void