Skip to content

Android SDK Group assignation

Samuel Berthe edited this page Jul 1, 2022 · 7 revisions

You can assign 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).
screeb.assignGroup("Apple", "company")
screeb.assignGroup("Growth", "plan")

Default group type

Group type can be omitted:

screeb.assignGroup("cohort-42", nil)

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("cohort-42", null)

Attributes

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.
screeb.assignGroup("Apple", "company", GroupProperties().apply {
    this["param1"] = "content"
    this["param2"] = 24
})
Clone this wiki locally