Analytics API - Track
Track your account or users' product activity with the /track endpoint
Replace {subdomain}
in the endpoint below with your Vitally subdomain.
You can find your subdomain in the URL used to log into Vitally (i.e., https://yoursubdomain.vitally.io
Create a product event
POST
https://{subdomain}.api.vitally.io/analytics/v1/track
This endpoint will create a product event in Vitally based on the (optional) messageId
parameter.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Set to |
Content-Type* | string | Set to |
Request Body
Name | Type | Description |
---|---|---|
userId | string | Required if |
accountId | string | Required if neither |
event* | string | The name of the product event (e.g. "Button Clicked", "Integration Enabled", etc) |
properties* | object | A JSON object containing the properties of the event. Required but can be left empty if no properties needed. |
timestamp | string | Required if |
messageId | string | Required if |
organizationId | string | Required if neither |
Expand the POST box above for full specs
Example
An example curl request describing a product event would look like:
Last updated