Reference
Complete reference for @screeb/sdk-angular.
โจ New to Screeb? Start with the Install guide.
Methods by capabilityโ
Inject the Screeb service and call these methods. All methods return a Promise.
Lifecycleโ
| Method | Description | More |
|---|---|---|
init(websiteId: string, userId?: string, userProperties?: PropertyRecord, hooks?: HooksInit, language?: string, spaNavigationHandler?: SpaNavigationHandler) | Initializes Screeb tag. | ๐ |
load(options?: ScreebOptions) | Appends Screeb tag into your dom. | ๐ |
close() | Shutdowns current Screeb session. | ๐ |
Identityโ
| Method | Description | More |
|---|---|---|
identity(userId: string, userProperties?: PropertyRecord) | Change the current user identity. | ๐ |
identityProperties(userProperties: PropertyRecord) | Adds properties to the current user identity. | ๐ |
identityReset() | Resets the current user identity. | ๐ |
identityGet() | Retrieves the current user identity. | ๐ |
Groupsโ
| Method | Description | More |
|---|---|---|
identityGroupAssign(groupName: string, groupType?: string, groupProperties?: PropertyRecord) | Assigns the current user to a group. | ๐ |
identityGroupUnassign(groupName: string, groupType?: string) | Unassigns the current user to a group. |