Group assignation
Assign users to segments (cohorts), optionally with properties.
import { Screeb } from "@screeb/sdk-angular";
constructor(private screeb: Screeb) {}
await this.screeb.identityGroupAssign("company", "Apple");
await this.screeb.identityGroupAssign("plan", "Growth");
Default group typeโ
await this.screeb.identityGroupAssign("cohort-42"); // no type
Group id vs group nameโ
await this.screeb.identityGroupAssign("company", "nuR4eecu", { name: "Apple" });
Unassign groupโ
await this.screeb.identityGroupUnassign("company", "Apple");
With attributesโ
await this.screeb.identityGroupAssign("company", "Apple", {
address_line_1: "Apple Campus",
city: "Cupertino",
country: "United States",
});