Skip to main content

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

ParameterTypeDescription
eventSelfDescribingEvent<T> & CommonEventPropertiesThe event information
trackersArray<string>The tracker identifiers which the event will be sent to
Returns:

void