Shopify Embed Guide
Add PraiseLane testimonials to your Shopify store via theme code or the Online Store editor.
Setup Steps
Go to Online Store > Themes
In your Shopify admin, navigate to Online Store > Themes and click "Edit code" on your active theme.
Edit theme.liquid
Open the layout/theme.liquid file. Add the PraiseLane script before the closing </body> tag.
<!-- PraiseLane Testimonials -->
<script
src="https://yourapp.com/embed.min.js"
data-project="your-project-slug"
defer>
</script>
</body>This adds testimonial notifications to every page in your store.
For specific pages only
To add testimonials to a specific page (e.g., product page), edit the relevant template file instead. For product pages, edit templates/product.liquid or the product section.
{% comment %} PraiseLane Testimonials {% endcomment %}
<script
src="https://yourapp.com/embed.min.js"
data-project="your-project-slug"
defer>
</script>Add collection form to a page
To collect testimonials from customers, add the collection widget to a custom page or the order confirmation page.
<!-- PraiseLane Collection Form -->
<script
src="https://yourapp.com/collect-embed.js"
data-project="your-project-slug"
data-mode="inline">
</script>Configure allowed domains
Add your Shopify domain (yourstore.myshopify.com and your custom domain) to the allowed domains in PraiseLane settings.
Is My Embed Working?
Run through this checklist to verify your embed is set up correctly:
- Script is added before </body> in theme.liquid
- Both Shopify domains are in allowed domains
- Theme changes are saved
- At least one approved testimonial exists
- Widget renders in the theme preview
- No JavaScript console errors
Troubleshooting
Widget conflicts with Shopify theme scripts
PraiseLane widgets are self-contained and should not conflict. If you see issues, check for JavaScript errors in the console.
Widget not showing on custom domain
Make sure both your myshopify.com domain AND custom domain are in the allowed domains list.
Collection form not appearing on thank you page
Shopify checkout pages have restrictions on custom scripts. Use the "Additional scripts" field in Settings > Checkout for the order confirmation page.