Onboarding System in ShadcnKit
Understand and utilize the integrated user onboarding system in your ShadcnKit project
Onboarding System in ShadcnKit
ShadcnKit comes with a built-in, customizable onboarding system that helps you gather valuable information from new users. This system is designed to be user-friendly, fully integrated with your project, and provides insights through an admin dashboard.
Key Features
- Multi-step Questionnaire: Engaging interface for collecting user information.
- Customizable Questions: Easily modify or add questions to suit your needs.
- D1 Database Integration: All responses are stored in your Cloudflare D1 database.
- Admin Dashboard: Visualize and analyze onboarding data with charts and tables.
- Localization Support: Multi-language support for global applications.
How It Works
-
User Flow:
- New user signs up
- Redirected to onboarding questionnaire
- Answers questions about experience, use case, etc.
- Responses saved to database
- User directed to main application
-
Data Collection:
- Responses stored in
onboardingResponses
table in D1 database - Includes user ID, timestamp, and answers to each question
- Responses stored in
-
Admin View:
- Dedicated dashboard for viewing onboarding data
- Charts showing distribution of responses
- Table view of individual responses
- Filters and sorting options for data analysis
Key Components
app/[locale]/onboarding/page.tsx
: Main onboarding pagecomponents/OnboardingClient.tsx
: Client-side onboarding interfaceapp/api/onboarding/route.ts
: API route for saving onboarding responsesapp/[locale]/dashboard/admin/onboardings/page.tsx
: Admin dashboard for onboarding data
Benefits of the Onboarding System
- User Understanding: Gain insights into your user base from the start.
- Personalization: Use collected data to tailor user experience.
- Product Development: Inform feature priorities based on user needs.
- Marketing Insights: Understand how users find your product.
- Engagement: Start user interaction immediately after sign-up.
Customization
You can easily customize the onboarding system:
- Modify questions in
components/OnboardingClient.tsx
- Adjust database schema in
db/schema.ts
if adding new fields - Update admin charts in
components/dashboard/onboarding/
to reflect new data points
Data Visualization
The admin dashboard provides several charts:
- Experience level distribution
- Primary use case breakdown
- User acquisition sources
These visualizations help you quickly understand your user base at a glance.
Extensibility
The onboarding system is designed to be easily extended:
- Add new questions to gather more specific data
- Create custom charts for specialized insights
- Integrate with other parts of your application for personalized experiences
By leveraging ShadcnKit’s onboarding system, you can create a smooth introduction for new users while gathering valuable data to improve your product and user experience.