Track Customer Events
Send events to Gameball when users perform important actions within your app.Event Structure
The unique identifier of the customer performing the event.
Event data where keys are event names and values are nested properties/metadata.
Customer’s email address.
Customer’s mobile number.
Optional session token to override the global token for this specific request.
In React Native SDK, passing a sessionToken parameter updates the global session token. Pass
undefined to clear the global token, or omit it to use the current global token.Validation Rules
Event requires:customerIdcannot be empty or whitespaceeventsobject must contain at least one event- Event names should be meaningful and descriptive
- Event metadata values can be string, number, boolean, or nested objects
Best Practices
1
Use Clear Event Names
Make event names human-readable and consistent (e.g.,
purchase_completed, review_submitted).2
Send After Action Completion
Send events when an action is fully completed (e.g., after payment confirmation).
3
Include Relevant Metadata
Add metadata that will be useful for segmentation and campaign targeting.
4
Keep Keys Consistent
Use consistent metadata keys across similar events.
Common Event Examples
Purchase Event
Review Event
Events are the foundation of Gameball’s reward and engagement system. Configure how events trigger rewards and actions in your Gameball dashboard.