Skip to main content

browser-tracker.trackstructevent

Home > @snowplow/browser-tracker > trackStructEvent

trackStructEvent() function

Track a structured event A classic style of event tracking, allows for easier movement between analytics systems. A loosely typed event, creating a Self Describing event is preferred, but useful for interoperability.

Signature:
declare function trackStructEvent(event: StructuredEvent & CommonEventProperties, trackers?: Array<string>): void;

Parameters

ParameterTypeDescription
eventStructuredEvent & CommonEventPropertiesThe Structured Event properties
trackersArray<string>The tracker identifiers which the event will be sent to
Returns:

void