Troubleshooting
Check if the SDK is loaded correctlyโ
Call debug() in your browser console or in code:
import * as Screeb from "@screeb/sdk-browser";
Screeb.debug();
You will see contextual information about the running user session (channel id, user id, session duration...).
Debug targeting rulesโ
Screeb.targetingDebug();
You will get a list of available surveys and their targeting rules. Rules with a green dot ๐ข are validated; red dot ๐ด rules are not.
Debug message conditionsโ
Screeb.debug();
You will get contextual information about active messages and their conditions, including the checks that currently pass or fail.
Common issuesโ
- SDK not loading: Check that
Screeb.load()is called beforeScreeb.init(). - No surveys showing: Verify your channel id and check targeting rules with
Screeb.targetingDebug(). - Anonymous users only: Make sure
Screeb.identity(...)is called after user login.