Skip to main content

Embed a signup form on your website

Put a list's signup form on your own site, such as a Shopify shop or any HTML page, with a short piece of code.

Your list's signup form can live on your own website as well as on its hosted page. It looks like your brand, speaks your subscribers' language, and works like the hosted page: double opt-in, the same limits against spam and floods, and proof of consent. The extra human check some hosted pages show is not part of the embedded form.

Get the code

  1. Open Lists and choose Edit on the list.
  2. Under Signup form, choose Create signup form if the list does not have one yet.
  3. Under Embed on your website, choose Script (recommended) or Iframe, then Copy code.

The Script code is three lines: a placeholder where the form appears, the script that draws it, and a plain link for visitors whose browser has scripts switched off. Use Iframe if your site builder removes scripts from pasted code.

Shopify

  1. In Shopify admin, go to Online Store → Themes and choose Customize on your theme.
  2. Open the page where the form should go, choose Add section and pick Custom Liquid.
  3. Paste the code into the section's Liquid code box.
  4. Choose Save.

The form appears in the section. To show it in the footer of every page, add the Custom Liquid section to the footer area instead.

Any other website

Paste the code into the page's HTML where the form should appear. In site builders, use their HTML or embed block, for example Custom HTML in WordPress. You can put the same code on several pages.

If your site sends a Content Security Policy, allow the address in the code (the part before /join/) under script-src and connect-src for the script, or under frame-src for the iframe.

What it looks like

  • The form uses your brand kit: your logo at the top (as on the hosted page), button colour and shape, link colour, text colours, content background and fonts. Text on the button stays readable even with a light brand colour.
  • The list's Public description is shown under its name, so write it for your subscribers.
  • It is shown in the list's language, or your team's (see Double opt-in lists and signup forms), with your consent text and privacy link under the button.
  • It is at most 480 pixels wide and fits narrow phone screens. The iframe has a fixed height of 540 pixels; change height in the code if your list has a long description.
  • Your website's own styles do not change the form, and the form does not change your website.

After someone subscribes

The form says "Check your inbox", and the person receives the same confirmation e-mail as from the hosted page, in your name. They are not added as an active subscriber until they click the link. New signups show as Pending on the list until then.

Turn off on the list stops the embedded form too. If you create the signup form again later, it gets new code, so replace the code on your site.

Not available yet

Popups and slide-in forms are not available. Embed the form on a page, or link to the hosted page from a button or banner.