Skip to main content

Sending Events

Track contact actions and behavior by sending events to Positive User. Events require an identified contact - call ping() first if you haven't done so yet. See Contact Data.


Event types​

TypeWhen to use
Custom eventsAnything specific to your app - button taps, feature usage, form submissions
Product eventsE-commerce actions - add to cart, purchase, view, refund, and more
Screen eventsScreen visits and navigation

Event attribute types​

All event methods accept a params dictionary. Supported value types:

TypeExample
String"checkout"
Int3
Double49.99
Booltrue
ISO 8601 date string"2024-09-28T12:51:33.137Z"

The SDK automatically attaches the contact identifier and a timestamp to every event.