Group assignation
You can assign a group 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: '-', '_', '.', ' ' (space), '/', and ':'.
Screeb.assignGroup(type: "company", name: "Apple")
Screeb.assignGroup(type: "plan", name: "Growth")
Default group typeโ
Group type can be omitted:
Screeb.assignGroup(type: nil, name: "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.
Unassign groupโ
At any time, you can unassign a user from a segment;
Screeb.unassignGroup(type: nil, name: "cohort-42")
Attributesโ
In order to bring context to your targeting and segmentation, some properties can be added to the group.
Requirements:- Property names must be limited to 128 characters
- No more than 1000 attributes
- Supported types for values: string, number, boolean and Date.
Screeb.assignGroup(type: "company", name: "Apple", properties:ย [
ย ย ย "iosGroupProp1": AnyEncodable("prop1"),
ย ย ย "iosGroupProp2": AnyEncodable(75)
])