Skip to main content
On Shopify, add the site script once in your theme so popups can show on every page, and use a Custom Liquid block wherever you want an embedded form.
Before you start: for popups, add your store’s addresses under Contacts > Forms > Websites: your custom domain and, if visitors use it, your your-store.myshopify.com address. Copy the website’s install snippet. For an embedded form, publish it and copy its embed code from the Share tab.

Install the site script

This route doesn’t touch your theme’s code, so theme updates keep it.
1

Open the theme editor

In Shopify admin, go to Online Store > Themes and select Customize on your live theme.
2

Add a Custom Liquid section to the footer

In the footer area, which appears on every page, select Add section and choose Custom Liquid.
3

Paste the snippet and save

Paste the install snippet into the Custom Liquid box, then select Save:
The footer group isn’t shown on every template in every theme. If popups don’t appear on some pages, such as checkout, that’s because Shopify doesn’t let themes add scripts there.

Embed a form

  1. In the theme editor, open the page or template where the form goes.
  2. Select Add section (or Add block inside a section) and choose Custom Liquid.
  3. Paste the form’s embed code and select Save:

Popups

Create the popups the site script shows.

Embed a form

Embed variants, layouts and prefill.