Add NPS surveys to your Shopify store in under 60 seconds. Perfect for e-commerce customer feedback and improving your online store experience.
Choose the method that works best for your Shopify setup
Add the widget directly to your theme for maximum control and customization.
Add this code before the closing </body> tag in your theme.liquid file:
<!-- NPSpack Widget -->
<script>
(function() {
var script = document.createElement('script');
script.src = 'https://widget.npspack.com/widget.js';
script.setAttribute('data-site-id', 'YOUR_SITE_ID');
script.setAttribute('data-trigger', 'auto');
script.setAttribute('data-delay', '30000');
document.head.appendChild(script);
})();
</script>
Replace YOUR_SITE_ID
with your actual site ID from your NPSpack dashboard.
Create a reusable section for more flexibility across different templates.
Create a new file in your sections folder:
{% comment %}
NPSpack Widget Section
{% endcomment %}
{% schema %}
{
"name": "NPSpack Widget",
"settings": [
{
"type": "text",
"id": "site_id",
"label": "Site ID",
"info": "Your NPSpack site ID from the dashboard"
},
{
"type": "select",
"id": "trigger",
"label": "Trigger Type",
"options": [
{"value": "auto", "label": "Automatic"},
{"value": "manual", "label": "Manual"},
{"value": "exit", "label": "Exit Intent"}
],
"default": "auto"
},
{
"type": "number",
"id": "delay",
"label": "Delay (milliseconds)",
"default": 30000
}
]
}
{% endschema %}
Add this line to any template where you want the widget:
{% section 'npspack-widget' %}
Customize the widget behavior for your Shopify store
Our support team is here to help you get set up quickly