Widget Installation
Install and configure the Saylo feedback widget on your website to start collecting user feedback.
What you'll get
- Easy-to-install feedback widget
- Customizable appearance and behavior
- Real-time feedback collection
- Integration with your dashboard
Setup
Step 1: Get your installation code
- Go to your Saylo dashboard
- Navigate to Settings → Widget
- Generate an API key if you don't have one
- Copy the installation code provided
Step 2: Add to your website
Add the code to your website's <head>
section:
<script defer src="https://saylo.io/widget.js" data-project-id="YOUR_PROJECT_ID" data-token="YOUR_API_TOKEN"></script>
Step 3: Test the widget
- Refresh your website
- Look for the feedback widget (usually bottom-right corner)
- Click the widget to test the feedback form
- Submit a test feedback
- Check your dashboard to confirm it appears
Configuration
API Key setup
- Go to Settings → Widget
- Click "Generate API Key" if you don't have one
- Copy the generated token
- Use the token in your installation code
Widget customization
Configure your widget appearance:
- Colors: Customize primary and secondary colors
- Position: Set widget position (bottom-right, bottom-left, etc.)
- Text: Customize button text and labels
- Categories: Set up feedback categories
Platform-specific installation
WordPress
- Go to your WordPress admin
- Navigate to Appearance → Theme Editor
- Edit your theme's
header.php
file - Add the installation code before the closing
</head>
tag - Save the file
Shopify
- Go to your Shopify admin
- Navigate to Online Store → Themes
- Click "Actions" → "Edit code"
- Open
theme.liquid
- Add the installation code in the
<head>
section
React/Next.js
Add the script to your _document.js
or _app.js
:
import Head from 'next/head'
export default function MyApp({ Component, pageProps }) {
return (
<>
<Head>
<script
defer
src="https://saylo.io/widget.js"
data-project-id="YOUR_PROJECT_ID"
data-token="YOUR_API_TOKEN"
/>
</Head>
<Component {...pageProps} />
</>
)
}
Testing
Local testing
- Install the widget on your local development environment
- Test the widget appearance and functionality
- Verify feedback submission works
- Check that data appears in your dashboard
Production testing
- Deploy to staging/production
- Test on different devices and browsers
- Verify widget appears correctly
- Test feedback submission
- Check dashboard integration
Best practices
Widget placement
- Bottom-right: Most common and expected location
- Bottom-left: Alternative for right-to-left languages
- Top-right: For important announcements
- Center: For modal popups
User experience
- Clear Call-to-Action: Use clear, action-oriented text
- Minimal Intrusion: Don't interfere with user experience
- Fast Loading: Ensure widget loads quickly
- Mobile Friendly: Test on mobile devices
Troubleshooting
Widget not appearing
- Check your project ID is correct
- Verify your API token is valid
- Check for JavaScript errors in browser console
- Ensure the widget script loads successfully
Styling issues
- Check for CSS conflicts with your theme
- Verify widget colors are set correctly
- Test on different screen sizes
- Check browser compatibility
Form submission issues
- Verify network connectivity
- Check browser console for errors
- Ensure API token has proper permissions
- Test with different browsers
Need help?
Contact our support team through your dashboard or visit our help center for additional resources.