TugusDeveloper Docs
Server-Side

Payload Reference

All fields that can be sent in the event payload to the collect endpoint.

All fields that can be sent in the event payload to /collect/{api_key}.

FieldTypeRequiredDescription
eventstringRequiredEvent name (e.g. purchase)
valuefloatOptionalMonetary value of the event
currencystringOptionalISO 4217 (e.g. EUR)
order_idstringOptionalFor deduplication of purchase events
content_idstringOptionalProduct SKU or content identifier
content_namestringOptionalProduct name or page label
contentsarrayOptionalCart items (see E-Commerce Events)
user.emailstringOptionalHashed with SHA-256
user.phonestringOptionalE.164 format, hashed
user.first_namestringOptionalFirst name, hashed
client_idstringOptionalBrowser client ID for event matching
event_idstringOptionalCustom event ID for deduplication