Complete reference for the Ionic SDK, which uses @screeb/sdk-angular internally.
โจ New to Screeb? Start with the Install guide.
Inject the Screeb service and call these methods. All methods return a Promise.
| 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. | ๐ |
| 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. | ๐ |
| 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. | ๐ |
| Method | Description | More |
|---|
eventTrack(eventName: string, eventProperties?: PropertyRecord) | Tracks a user event. | ๐ |
| Method | Description | More |
|---|
surveyStart(surveyId: string, distributionId: string, allowMultipleResponses: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string, selectors?: string | string[]) | Starts a survey by its ID. | ๐ |
surveyClose() | Interrupts a running survey. | ๐ |
| Method | Description | More |
|---|
messageStart(messageId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksMessageStart, language?: string) | Starts a message by its ID. | ๐ |
messageClose() | Interrupts a running message. | ๐ |
| Method | Description | More |
|---|
sessionReplayStart() | Starts a session replay. | ๐ |
sessionReplayStop() | Interrupts a running session replay. | ๐ |
| Method | Description | More |
|---|
debug() | Prints the actual state information of Screeb tag. | ๐ |
targetingDebug() | Prints the current state of the targeting engine. | ๐ |
| Method | Description | More |
|---|
ScreebMaskText<T extends Element>(element: T): T | Marks an element as sensitive in Screeb session replay. | ๐ |
ScreebNoCapture<T extends Element>(element: T): T | Excludes an element from Screeb session replay capture. | |