Skip to main content

Sending Events

Track contact actions and behavior by sending events to Positive User. Events are queued locally and sent as soon as an internet connection is available.


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 Map<String, Object> for attributes. Supported value types:

TypeExample
String"checkout"
Int3
Booleantrue
ISO 8601 date string"2024-09-28T12:51:33.137Z"

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