Event occurred
Record a custom event.
This event tracks a domain-specific event.
When should I track this event?
Track this event whenever you want to record that something happened for later analysis or personalization.
Implementation
Here is an example of how to track this event:
example.js
JavaScript
123456789
import croct from '@croct/plug';croct.track('eventOccurred', {name: 'userRatedProduct',details: {productId: '12345',rating: 5}});
Input properties
These are the supported properties:
- namestring
The name of the event.
The value must be between 1 and 50 characters long.
- details(optional)object
The details of the event.
The following restrictions apply to the properties:
- It allows up to 10 properties
- Keys must be strings up to 300 characters long, starting with a letter or underscore, followed by letters, digits, or underscores
- Values can be strings up to 300 characters long, numbers, booleans, and null.
Processed properties
This event has no processed properties.
Payload examples
Below are some payload examples for this event:
123
{"name": "userRatedProduct"}