Shopify Integration
Integrate Reflect feedback widget into your Shopify store. The widget is hosted on a CDN and can be easily integrated by editing your theme files.
Quick Start
Add Widget to Your Shopify Store
- Go to your Shopify admin panel
- Navigate to Online Store → Themes
- Find your active theme and click Actions → Edit code
- In the left sidebar, locate and open the
theme.liquidfile (usually under Layout) - Scroll to the bottom and find the closing
</body>tag - Paste the following code just before the
</body>tag:
<!-- Reflect Feedback Widget -->
<script>
window.reflectConfig = { key: "widget_eee5d255e1bc48d8", position: "bottom_right" };
</script>
<script async src="https://cdn.reflectfeedback.com/widgets/widget_eee5d255e1bc48d8/widget.js"></script>
- Click Save
- Visit your store to see the widget in action
tip
Replace widget_eee5d255e1bc48d8 with your actual widget key from the Reflect dashboard.
Important
Always backup your theme before making changes. Consider creating a duplicate theme for testing first.
That's it! The widget will now appear on all pages of your Shopify store.
Best Practices
Create a Theme Backup
Before editing your theme:
- In Themes, click Actions on your active theme
- Select Duplicate
- You now have a backup you can restore if needed
Test Before Going Live
- Duplicate your theme
- Add the widget code to the duplicate
- Preview the duplicate theme
- If everything looks good, publish the duplicate theme
Troubleshooting
Widget not appearing
- Check your widget key: Ensure you've replaced the example key with your actual widget key
- Verify placement: Make sure the code is placed just before
</body>intheme.liquid - Clear cache: Clear your browser cache and try in an incognito window
- Check for errors: Open browser developer tools (F12) and look for JavaScript errors in the console
- Theme compatibility: Some heavily customized themes might require different placement
Widget conflicts with Shopify apps
If you experience conflicts with other Shopify apps:
- Check the console for JavaScript errors
- Try adjusting the widget position (e.g., change from
bottom_righttobottom_left) - Contact Reflect support if issues persist
Changes not appearing
- Save the file: Make sure you clicked "Save" after adding the code
- Hard refresh: Press Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac)
- Clear Shopify cache: Theme changes can take a few minutes to propagate