Widget Installation
The Windback cancellation widget captures cancel reasons and shows retention offers when customers try to cancel. It drops into any web app with a single script tag.Script Tag Setup
Add the following script tag to your cancellation page or app layout:How It Works
1
Widget Loads
The script loads asynchronously and initializes the Windback widget. It does not block page rendering.
2
Customer Triggers Cancel
When the customer clicks your cancel button, call
window.Windback.show() to open the widget modal.3
Reason Collection
The widget presents a list of cancel reasons. The customer selects one and optionally adds free-text feedback.
4
Retention Offer
Based on the selected reason, the widget may show a targeted retention offer (discount, pause, downgrade) configured in your dashboard.
5
Data Sent to Windback
The cancel reason, feedback, and offer response are sent to Windback. A churn event is created and AI recovery begins.
Configuration Attributes
Set these attributes on the<script> tag to configure the widget:
Triggering the Widget
The widget exposes a globalwindow.Windback object. Call show() to open the cancellation modal:
Allowed Origins
The widget validates the origin of the page it is loaded on. By default, all origins are allowed. To restrict which domains can use your public key:- Go to Settings > API Keys
- Add allowed origins (e.g.,
https://app.yourcompany.com) - The widget will refuse to load on unlisted origins
localhost origins are always allowed in development for convenience.Graceful Degradation
The widget is designed to never break your cancellation flow:The widget will never prevent a customer from canceling. It is purely informational and incentive-based. Always ensure your cancel flow completes even if the widget fails.