Skip to main content

node-tracker.buildstructevent

Home > @snowplow/node-tracker > buildStructEvent

buildStructEvent() function

Build 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 buildStructEvent(event: StructuredEvent): PayloadBuilder;

Parameters

ParameterTypeDescription
eventStructuredEventContains the properties for the Structured event
Returns:

PayloadBuilder

PayloadBuilder to be sent to