Server-Side Events
Jimo supports server-side event tracking, allowing you to push events directly from your backend. This enables enhanced user tracking, segmentation and data synchronization with Jimo's analytics.
How It Works
Server-side events are sent via an API endpoint. The endpoint supports two types of events: track and identify. These events allow you to either update user attributes (identify) or register user actions (track).
API Endpoint
URL:
https://karabor-harbour.usejimo.com/sse/webhookAuthentication: Pass your API key in the request headers under x-api-key. You can find your API key in the Jimo dashboard under Integrations > Server-Side Events.
Event Types
Identify Events
Identify events allow you to update user traits and attributes.
Required Fields:
userId(string) – The user’s unique identifier (same asidentifyTokenused in Jimo).type(string) – Must be set toidentify.timestamp(string, ISO-8601 UTC) – Timestamp of the event.traits(object) – Key-value pairs of attributes to update for the user.
Example Request:
{
"userId": "12345",
"type": "identify",
"timestamp": "2024-01-01T12:00:00Z",
"traits": {
"plan": "premium",
"signup_date": "2023-06-15"
}
}Track Events
Track events allow you to register user interactions and custom events.
Required Fields:
userId(string) – The user’s unique identifier (same asidentifyTokenused in Jimo).type(string) – Must be set totrack.timestamp(string, ISO-8601 UTC) – Timestamp of the event.event(string) – The name of the event being tracked.properties(object, optional) – Key-value pairs containing additional event metadata.
Example Request:
{
"userId": "12345",
"type": "track",
"timestamp": "2024-01-01T12:05:00Z",
"event": "button_clicked",
"properties": {
"button_name": "Subscribe",
"page": "pricing"
}
}Implementation Notes
Ensure your
userIdmatches the value used in Jimo for consistent tracking.Use ISO-8601 UTC timestamps to avoid timezone inconsistencies.
The
propertiesfield intrackevents is optional but recommended for better insights.
Need Help?
If you encounter any issues or have questions about integrating server-side events, feel free to contact our support team. We’ll be happy to assist you in setting up and optimizing your event tracking!
Last updated
Was this helpful?