Event tracking
Track actions performed by your users, optionally with properties.
Requirements:
- Event names must be less than 128 characters.
- Authorized characters: alphanumeric,
-,_,.,,/,:.
import { Screeb } from "@screeb/sdk-angular";
constructor(private screeb: Screeb) {}
await this.screeb.eventTrack("Product added to cart");
With attributes
await this.screeb.eventTrack("Product added to cart", {
product_name: "Red bike 2021",
category: "sport",
price: 299,
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