plunk_track_event
Track an event for a contact, creating the contact if needed, to drive automation workflows and audience segments.
Instructions
Track an event for a contact (creates the contact if missing). Used to drive workflows and segment filters. Requires PLUNK_PUBLIC_KEY (pk_*) to be set — /v1/track is gated by the public key, not the secret key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Event/contact data. Use {value, persistent: false} to scope to workflows only. | |
| Yes | Contact email. Contact is auto-created if missing. | ||
| event | Yes | Event name, e.g. 'user-signup' | |
| subscribed | No | Subscription state to apply. Omit to preserve the contact's current state (new contacts default to subscribed). Pass false to track an event without resubscribing an unsubscribed contact. |