Skip to content

Javascript SDK Troubleshooting

Samuel Berthe edited this page Mar 9, 2022 · 12 revisions

Missed Login or Signup

When you call the identity or alias command from the client-side, right after user registration, the visitor can be redirected to a new page with limited access.

In that case, Screeb recommends making those calls from the welcome page.

Debug targeting rules

Since the targeting engine built by Screeb runs in the background, you may not understand which rules prevent your survey from being displayed to a user.

Open the developer console and call the following Screeb command: $screeb('targeting.debug');.

You will get a list of available surveys and the associated targeting rules:

image

The rules with a green dot 🟢 are the ones that have been validated for this user. The rules with a red dot 🔴 are not validated and maybe the reason why your survey is not displayed.

Clone this wiki locally