$sleek.showPopup() to trigger one.
string
default:"feedback"
required
Which popup to show. See Popup types. Append an ID with a dot to target a specific record, for example
survey.812 or update.4471.string | false
Replaces the popup’s headline. Pass
false (or omit it) to use the wording configured in your workspace.object
Extra values for the popup, appended to its route as a query string. The recognized keys depend on the type.
showPopup() returns false and does nothing while the full widget is already open, so a popup can never cover a session the visitor is in the middle of. Call $sleek.close() first if you need it to appear regardless.Popup types
Satisfaction (CSAT)
string
A grouping key stored with the rating. Ratings without one are grouped under
default. Use a stable, low-cardinality value such as checkout, onboarding, or support so each group has enough responses to read.Promoter (NPS)
The NPS popup is wider than the others, since it renders the full 0 to 10 scale.Feedback
Changelog subscription
Thechangelog popup asks the visitor whether they want new changelog entries by email, and subscribes them on the spot. It is the right prompt after someone has read a release note, not a way to display one.
Announcement
update.{ID} renders one changelog entry as a card, with its image, type, title, and call to action. This is the form Sleekplan itself uses to announce a release to a visitor.
string
A comma-separated list of additional changelog IDs to show beneath the main entry. At most three are rendered.
Survey
Automatic announcements
Separately from anything you trigger, the widget can open an announcement popup on its own when a changelog entry marked as an announcement is newer than what the visitor has seen. This is what makes release notes reach users who never open the widget, and it is configured per changelog entry in the dashboard, not from the SDK. Two things bound it: only entries from the last 30 days are eligible, and once one has been shown, no further announcement appears for a short cool-down period. To suppress automatic announcements on specific pages, set the session flag before the SDK loads:skip_notifications for badge counts.
Trigger popups at the right moment
Popups work best tied to something the visitor just did rather than fired on page load.After a key action is completed
After a key action is completed
After a time-based delay
After a time-based delay
On the first visit after a release
On the first visit after a release
React to the outcome
Every popup emits events you can listen for, so you can record the answer in your own system or stop asking the same person again.popup_init and popup_state_change.
Configuration
Suppress automatic announcements and badge counts per page.
Events
Listen for votes, comments, and popup state changes.
