Using the Events API, you can start to send multiple events for each user to be used within the Campaigns feature. These events will become accessible when creating campaigns as either Triggers or Goals.
Recommended Events
To get you started, here's some recommended events to track depending on your business, although you can created as many ass you need to fit into your specific needs:
SaaS
- sign_in
- sign_out
- sign_up
- trial_start
Ecommerce
- add_to_cart
- purchase
- email_submit
- search
- item_view
Create an Event for a User
- Event Name: The name of the event that is being tracked – Field is required
- User ID: User ID of your user that is the unique identifier in your application, and needed to be added for every event – Field is required
- Properties: Custom event properties for each event – Multiple are supported, and optional
curl -X POST http://app.cloudmattr.com/api/v1/events \
-H "Accept: application/json" -H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY"
{
"event_name": "purchase",
"user_id": "8d3df345-af53-4eba-ba57-fb96954ba7c9",
"occurred_at": "2021-01-01T15:50+00Z",
"properties": {
"amount": 199.00,
"transaction_id": "22445643221"
}
}