We have added two fields to the payloads of the Webhook and the Export API, that are useful when working with event variants in Avo
  • eventType
  • variantName
Each event variant is represented by a standalone event in the JSON payload. It will have the same name, as the base event. Additionally, it will have the
variantName
field included, with the event variant name defined in the Avo Tracking Plan.
You can distinguish an event, that is generated from a variant, from a base/standalone event, by checking the
eventType
field. The
eventType
of events that are generated from variants is
variant
, while regular events have it as
event
.