# FAQ

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](https://developers.screeb.app/sdk-react/troubleshooting).

## Using Screeb without identifying users

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.

## Keeping Screeb out of tests and CI

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

```tsx
<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.

## Initializing more than once

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.

## Switching to another user

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](https://developers.screeb.app/sdk-react/identity).

With `ScreebProvider`, changing the `userId` prop identifies the new user, and removing it resets the identity.

## Finding the channel id

The channel id is a UUID shown in the installation settings of your Screeb workspace: see [Install Screeb on your website or web app](https://help.screeb.app/install/install-web) or [Install Screeb in your mobile app](https://help.screeb.app/install/install-mobile). The same channel id works on the web, iOS and Android, so an app on several platforms uses one channel id.

## A survey does not show

Start with the debug calls of [Troubleshooting](https://developers.screeb.app/sdk-react/troubleshooting), then go through [My survey or message is not displayed](https://help.screeb.app/troubleshooting/survey-not-displayed) for the causes set in Screeb itself.

## Changing how surveys look

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

Mark the elements or views to mask or exclude: see [Privacy helpers](https://developers.screeb.app/sdk-react/privacy-helpers).

## Server-side rendering

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.

```tsx
"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>
  );
}
```

## Calling Screeb outside a component

`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.
