Event tracking
Track actions performed by your users, optionally with properties.
Requirements:
- Event names must be less than 128 characters.
- Authorized characters: alphanumeric,
-,_,.,,/,:.
import * as Screeb from "@screeb/sdk-browser";
Screeb.eventTrack("Product added to cart");
With attributes
Screeb.eventTrack("Product added to cart", {
product_name: "Red bike 2021",
category: "sport",
color: "red",
price: 299,
count: 1,
user_logged: false,
added_at: new Date(),
});
Property requirements:
- Names limited to 128 characters
- No more than 1000 attributes
- Supported types:
string,number,boolean,Date