Prerequisites
Before using the AppSloth Retention Modal component, make sure you’ve:- Set up AppSloth in your project
- Installed the required shadcn/ui components:
Adding the Retention Modal Component
The AppSloth Retention Modal component provides a customizable retention flow for your application. It includes features like multi-step feedback collection, custom offer presentation, and detailed analytics tracking. Adding the Retention Modal component to your application is straightforward:The Retention Modal is typically used in subscription management or account
settings pages where users might consider canceling their service.
How It Works
The Retention Modal provides a comprehensive retention flow:- Feedback Collection: Gathers user feedback through predefined options and free-form text
- Retention Offer: Optional step to present a special offer to retain the customer
- Analytics Tracking: Automatically tracks all retention-related events
- Customizable UI: Extensive styling and configuration options
- Flexible Callbacks: Custom handlers for feedback, offers, and cancellation
Customization Options
The Retention Modal component is highly customizable through props:Button Customization
Customize the trigger button:Feedback Page Customization
Customize the feedback collection page:Offer Page Customization
Configure the retention offer page:Custom Event Handling
Implement custom handlers for various events:Component Props
Viewing Retention Analytics
All retention-related events are tracked and can be analyzed in your AppSloth Dashboard:- Log into your AppSloth Dashboard
- Navigate to the “Retention” section
- Analyze your retention metrics:
- View churn rates
- Analyze feedback patterns
- Track offer acceptance rates
- Monitor retention effectiveness
Next Steps
Now that you’ve added the AppSloth Retention Modal to your application, explore more features:Banners
Create eye-catching banners to highlight important announcements
Feedback
Collect and manage user feedback to improve your product
Inbox
Send targeted in-app messages and alerts to your users
