Skip Sleekplan widget login for anonymous surveys

lauren ·

For anonymous surveys, the login screen in the Sleekplan widget adds friction. Auto-skip the login for non-authenticated users by listening for the sleek:user_auth_required event and programmatically clicking the skip link inside the widget iframe.

Mockup of authentication flow

Steps:

  • Listen for the sleek:user_auth_required event
  • After a short delay, locate the widget iframe and click the skip link if it exists
  • Use a small guard to avoid errors when the widget isn't ready

Authentication flow with skip option

Example script (place after you load the widget):

document.getElementById('sleek-widget').contentWindow.document.querySelector('.login-skip > a').click()
}, 100)}, false);```

Notes:
- If the widget changes its internal selectors, update the querySelector accordingly.
- This only affects anonymous sessions; authenticated users are unaffected.
Rocket

Looking for an all-in-one Feedback tool for your Product?

Sleekplan helps you to collect user feedback, keep a public changelog and structure your roadmap for free!