Documentation Index
Fetch the complete documentation index at: https://docs.nippy.la/llms.txt
Use this file to discover all available pages before exploring further.
track() records a business event and evaluates whether any campaign rule should trigger a mechanic.
Usage
Parameters
User identifier from your system. Example:
user-123.Campaign ID that should evaluate the event. Example:
camp-abc.Event type configured in the rule. Example:
card.purchase.completed.Event data used by rule conditions. Example:
{ "value": 500 }.ISO 8601 timestamp for when the event occurred.
Response
Mechanics triggered by the event. Empty when no rule matched.
ID of the triggered spin.
Campaign ID that triggered the spin.
Rule ID that triggered the spin.
track() does not return the spin result. The result arrives through the spin.completed webhook.
