setEventProperties method is used to send custom events to Zeotap along with specified event properties and name.
Syntax
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| eventName | String | Yes | The name of the event to track |
| eventProperties | Map<String, Object> | No | Key-value pairs of event properties |
| callback | SDKCallback | No | Callback function to handle response |
Usage Examples
Event Name Only
Event name only in payload
Basic Event Tracking
Event with properties in payload
Event with Callback
Best Practices
Event Naming
- Use descriptive, snake_case names:
product_viewed,checkout_completed - Be consistent across your application
- Avoid special characters and spaces
Property Structure
Related Methods
- setInstantEventProperties - Send events immediately bypassing the queue
- setPageProperties - Set page/screen context
- setUserProperties - Set user attributes
For more examples and advanced usage patterns, see our Examples Guide.