Shopify feedback widget for store QA
Last updated:
How do I add a feedback widget to Shopify?
A Shopify feedback widget is one script tag in your theme layout. It is useful for store QA before a launch or a theme change.
Steps
- In the dashboard, create a project. Add
your-store.myshopify.comand your custom domain to Allowed domains. Copy the project key. - In Shopify admin, open Online Store, then Themes. On the theme you want, choose Edit code. Use a duplicate theme for testing.
- Open
layout/theme.liquidand paste this just before</body>:
<script src="https://commentpin.com/widget.js" data-project="YOUR_PROJECT_KEY" defer></script>
- Save, preview the theme and send a test report.
Use the website QA checklist for what to test. See website QA, the install docs, or the WordPress guide.
Frequently asked questions
- Where do I add the code in Shopify?
- In your theme's layout/theme.liquid file, just before the closing body tag.
- Can I test on an unpublished theme?
- Yes. Edit the code of a duplicate theme and use its preview. Add the preview domain to the allowed domains if it differs.
- Which domains do I allow?
- Your your-store.myshopify.com domain and any custom domain the store uses.
- Does it work on checkout pages?
- No. Shopify's theme layout applies to non-checkout pages, so the widget does not appear in checkout.
- Can I show it only during QA?
- Yes. Add it to a duplicate theme used only for testing.