Skip to main content
Cool Popup works with all Shopify themes. To install it, add the snippet to your theme’s theme.liquid layout file so it loads on every page of your store.

Installation steps

1

Go to your theme code editor

From your Shopify admin, go to Online Store → Themes.
2

Open your active theme

Click the three-dot menu next to your active theme and select Edit code.
3

Open theme.liquid

Under the Layout folder, click theme.liquid.
4

Paste the Cool Popup snippet

Find the closing </head> tag and paste the snippet on the line just before it.
<script src="https://cdn.coolpopup.com/popup.js" data-id="YOUR_SITE_ID" async></script>
5

Save

Click Save in the top-right corner.

Finding your Site ID

Replace YOUR_SITE_ID with the value from Dashboard → Settings → Installation in your Cool Popup dashboard.
This installation method works with all Shopify themes, including Dawn, Debut, and any custom theme.
  • Cart abandonment popups — recover visitors who are about to leave without purchasing
  • Discount code offers — show a timed popup with an exclusive discount to drive conversions
  • Email list building — capture emails with a newsletter signup popup
  • Free shipping announcements — notify shoppers when they’re close to the free shipping threshold
If you’re using a Shopify 2.0 theme, you can also add the snippet as a custom liquid section through the theme customizer. This lets you manage the script without touching code files directly.