Group assignation
Assign users to segments (cohorts), optionally with properties.
import { ScreebModule, ScreebService } from "@screeb/sdk-angular";
constructor(private screeb: ScreebService) {}
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",
});