Skip to content
Open Screeb

Track what your users do in your product, with properties, so you can trigger surveys and messages on their actions.

Track the actions your users perform: a plan upgrade, a product added to the cart, an export. In Screeb, you then target surveys and messages on these events, for example on how many times a user did it or when they last did it. What events are on the Screeb side is explained in Understanding user events.

import { Component } from "@angular/core";
import { Screeb } from "@screeb/sdk-angular";
@Component({
selector: "app-upgrade",
standalone: true,
template: `<button (click)="onUpgrade()">Upgrade</button>`,
})
export class UpgradeComponent {
constructor(private screeb: Screeb) {}
onUpgrade() {
this.screeb.eventTrack("plan_upgraded");
}
}

Event names are less than 128 characters. They contain letters, digits, spaces and the characters -, _, ., / and :. Keep each name stable: a renamed event is a new event for Screeb.

Properties give the context of the event. You can use them in targeting rules and as hidden fields in your surveys.

await this.screeb.eventTrack("Product added to cart", {
product_name: "Red bike 2021",
category: "sport",
price: 299,
count: 1,
user_logged: false,
added_at: new Date(),
});

An event has at most 1000 properties. Property names are 128 characters at most. Values are strings, numbers, booleans or dates.