setEventProperties method is used to send custom events to Zeotap along with specified event properties and name.
Syntax
Parameters
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.