Skip to content

Classic in-product widget

The classic path is the in-product survey widget for NPS, CSAT, CES, and PMF. Same integrity model as agent-native: server show-tokens, server suppression, issue-time caps.

  1. Create a survey in the UserVane dashboard (type, question, presentation, trigger, targeting, sample %).
  2. Allowlist your app origins under project settings.
  3. Install @uservane/browser or @uservane/react with the publishable key.

See Widget quickstart.

ModeBehavior
autoAfter page idle, fixed delay (default 8s server-side config), once per eligible show
manualOnly when you call UserVane.survey("slug") or React survey("slug")

Targeting predicates and audience sample % are evaluated client-side from the bootstrap payload. Absolute caps and quiet periods are server-side at token issue.

Call identify with a stable userId from your auth session when available. That id is the respondent identity for tokens and suppression. Traits support targeting and later segmentation; do not put secrets in traits (they ride on public bootstrap).

corner, inline, and banner as configured on the survey. Free plan may show a small “Powered by UserVane” badge (showBadge).

  • Never re-prompt after answer or dismiss for the life of that survey (server suppression).
  • Cross-survey quiet period so multiple surveys do not chain-interrupt the same person.
  • Fail closed if bootstrap fails: no half-drawn widget.