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.

<ScreebProvider
websiteId="<YOUR-CHANNEL-ID>"
autoInit
shouldLoad={process.env.NODE_ENV === "production"}
>
{children}
</ScreebProvider>

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.

With ScreebProvider, changing the userId prop identifies the new user, and removing it resets the 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.

"use client";
import type { ReactNode } from "react";
import { ScreebProvider } from "@screeb/sdk-react";
export function ScreebRoot({ children }: { children: ReactNode }) {
return (
<ScreebProvider websiteId="<YOUR-CHANNEL-ID>" autoInit>
{children}
</ScreebProvider>
);
}

useScreeb() returns functions that keep the same identity across renders, so you can pass them to your own helpers or use them in effects. Code outside React can import @screeb/sdk-browser: the provider runs on it, so both talk to the same Screeb session. In the Next.js App Router, components that call useScreeb() need the "use client" directive.