Events
Track an event
This endpoint allows you to track events on your platform, sending data to Umami for analytics. The request requires an eventName, and you can optionally provide eventData, url, and referrer. The store must be identified by the x-store-id header. The endpoint formats the URL for tracking and sends the event to Umami, ensuring session continuity through forwarded headers like IP and User-Agent.
POST
Track an event
Previous
Retrieve metrics by date rangeThis endpoint provides metrics such as revenue, order counts, and subscription statistics for a specified date range. The `x-store-id` header is required for authentication. Default date range is the last 30 days if not specified. The response includes gross and net revenue, number of orders, new customers, and Monthly Recurring Revenue (MRR) along with Annual Recurring Revenue (ARR).
Next
Track an event