Skip to content
Open Screeb

Get quick answers on anonymous users, test environments, user switching, channel ids and platform support.

Short answers to the questions developers ask most often. When something does not work, see Troubleshooting.

You can. Screeb creates an anonymous user when the SDK starts, and surveys work for that user. If you identify them later, Screeb attaches the anonymous activity to the identified user. Anonymous users count toward your monthly user quota, like identified ones.

Skip loading or initializing Screeb outside production. Otherwise every test run creates new anonymous users.

import { environment } from "../environments/environment";
ScreebModule.forRoot({
websiteId: "<YOUR-CHANNEL-ID>",
shouldLoad: environment.production,
autoInit: environment.production,
});

With shouldLoad off, Screeb methods reject with a warning instead of running: catch the rejection, or skip the calls in that environment.

Initialize Screeb once, when the app starts, and keep it running for the whole session. To change the user, change the identity instead of initializing again: see the next answer.

Reset the identity when the user logs out, then identify the next user when they log in. Between the two, Screeb tracks an anonymous user. See Identity.

The channel id is a UUID shown in the installation settings of your Screeb workspace: see Install Screeb on your website or web app or Install Screeb in your mobile app. The same channel id works on the web, iOS and Android, so an app on several platforms uses one channel id.

Start with the debug calls of Troubleshooting, then go through My survey or message is not displayed for the causes set in Screeb itself.

You set colors, fonts, size and position in the survey editor in Screeb, not in code. The SDK applies them on its own.

Hiding sensitive content from session replay

Section titled “Hiding sensitive content from session replay”

Mark the elements or views to mask or exclude: see Privacy helpers.

Screeb runs in the browser only. The React, Vue and Svelte packages never load the tag on the server; the Browser and Angular packages have no such guard, so load Screeb in the browser only.

const isBrowser = typeof window !== "undefined";
ScreebModule.forRoot({
websiteId: "<YOUR-CHANNEL-ID>",
shouldLoad: isBrowser,
autoInit: isBrowser,
});

Setting Screeb up in a standalone Angular app

Section titled “Setting Screeb up in a standalone Angular app”

The package exposes ScreebModule.forRoot() and the Screeb service. In a standalone app, add the module with importProvidersFrom(ScreebModule.forRoot({ ... })) in your providers, then inject Screeb where you need it. autoInit is off by default: set it to true, or call init() yourself.