On a standard Shopify theme you don’t need to add any code: turn on the SalesPop app embed instead. See Turn on the SalesPop app embed.
Add the SalesPop script by hand only if your theme can’t use the app embed, for example when the Theme app extension card on your Dashboard says Unavailable.
How to add the script to your theme
In Shopify, go to Online Store → Themes.
On your published theme, click the … button, then Edit code.
Open
layout/theme.liquid.Paste this line just before the closing
</body>tag, then click Save:
<script type="text/javascript" async src="https://sp-micro-next.b-cdn.net/sp-micro.umd.js"></script>
Pops start showing on your store once storefront notifications are enabled and at least one pop is on. The script updates on its own, so new SalesPop features reach your store without any changes.
Good to know: custom and headless storefronts
Headless storefronts aren’t supported: the script needs the Shopify storefront code that your theme loads on each page. A headless store built with Hydrogen or another framework doesn’t load it, so pops can’t show there.
The Dashboard may still say Inactive: with the script added by hand, the Theme app extension card can still show Inactive. That’s expected.
No double pops: if you later turn on the app embed as well, SalesPop loads only once.
Need a hand with your storefront?
Our team is happy to help. Book a 1:1 video call with the SalesPop support team and we’ll walk through it with you.
