Skip to main content

Add Occasionly to Shopify

Add your Occasionly popup to a Shopify store. Copy your line, paste it into theme.liquid just above the closing body tag, save, then check your store.

3 min read

Watch how, 37 seconds. The same steps are written below. This video has a voiceover. The same steps are written on the page.

What you are doing

You will paste one line into your Shopify theme. That line adds your popup and your floating tab to your store. You only do it once. It doesn't change anything else on your store, and you can remove it any time.

These are the same steps your dashboard shows on the Popup page, under Add it to your store.

Before you start

  • Sign in to Occasionly and open Popup in the dashboard.
  • Under Where's your store?, pick Shopify.
  • If your store is on Shopify's Starter plan, you can't edit your theme code, so ask Shopify about upgrading or use your sign-up link instead (see Use Occasionly without a website).

The Add it to your store card on the Popup page, with Shopify picked and the three steps showing

The steps

Copy your line

On the Popup page, click Copy line next to step 01. Your line is a single line of code that starts with <script and ends with </script>. It already has your store's details in it, so copy it from your dashboard rather than from this page.

Open your theme code

In Shopify, open Online Store, then Themes. Click the three dots button next to your theme, then Edit code, and open theme.liquid.

Paste and save

Press Cmd+F (Ctrl+F on Windows) and search for </body>. Click at the start of that line, paste your line just above it, then press Save.

Check your store

Back in your dashboard, click Check my store. We look for your popup on the website address you saved in Settings, under Where do customers order from you?

  • If we find it, you will see Live on your store. If your popup is switched off, it tells you to switch it on. The switch is at the top of the Popup page.
  • If we can't find it, you will see We can't see it yet, with two things to check. Check you pressed Save, and Publish if your site has it, then wait a minute and check again. Check the whole line was pasted, from <script at the start to </script> at the end.
  • If the line on your store is for a different store, copy your line again from the Popup page and paste it in its place.

Changes can take a few minutes to reach your store.

If someone else looks after your store

Under the steps on the Popup page, click Send these steps to whoever looks after my website. Type their email address and click Send the steps. We email them your line and the steps for Shopify. If they reply, it comes to you.

What to do next

Open your store in a private window and see the popup yourself. Get your first sign-ups shows you how.

See it in your shop's name

Type your shop's name and choose a colour to see the sign-up form and the reminder email as your customers would.

Free to start, with reminders for up to 50 customers.

More guides

All guides