-
Notifications
You must be signed in to change notification settings - Fork 0
Flutter SDK Group assignation
Samuel Berthe edited this page Sep 16, 2022
·
2 revisions
You can assign groups to your users, along with properties describing the group.
Requirements:
- Group type and group name must be less than 128 characters long.
- Authorized characters are alphanumeric (uppercase included) and you can insert the following special characters: '-' , '_' and ' ' (space).
PluginScreeb.assignGroup("company", "Apple");
PluginScreeb.assignGroup("plan", "Growth");
Group type can be omitted:
PluginScreeb.assignGroup(null, "cohort-42");
From the Screeb platform, to customize the conditions the surveys are displayed for a visitor, you can apply custom targeting rules using group membership.
It is recommended to identify groups by using an immutable group id instead of a group name.
PluginScreeb.assignGroup("company", "nuR4eecu", { name: "Apple" });
At any time, you can unassign a user from a segment;
PluginScreeb.unassignGroup(null, "cohort-42");
In order to bring context to your event handling, some properties can be added to the event.
Requirements:
- Property names must be limited to 128 characters
- No more than 1000 attributes
- Supported types for values: string, number, boolean and Date.
PluginScreeb.assignGroup("company", "nuR4eecu", {
name: "Apple",
employes: "100.000+",
})