How-to · Updated December 2026

How to embed a Klaviyo signup form on Shopify or any website

An embedded form sits inside the page, usually in the footer or on a landing page, rather than popping up. Adding one takes a few minutes once Klaviyo's onsite code is on your site.

In short: build and publish an embedded form in Klaviyo, make sure Klaviyo's onsite code is running on your site, then place the form. On Shopify that's an app block in the theme editor. Elsewhere it's a small snippet of HTML.

Step 1: create and publish the form

  1. In Klaviyo, go to Sign-up forms and create a new form.
  2. Choose the Embed type rather than pop-up or flyout.
  3. Pick the list new subscribers should join. This is what triggers your welcome series.
  4. Design it in the editor: fields, button text, success message.
  5. Publish it. A form left in draft won't appear on your site, even with the code in place.

Step 2: make sure onsite tracking is running

Embedded forms are loaded by Klaviyo's onsite JavaScript. On Shopify, turn on the Klaviyo app embed under Online Store → Themes → Customise → App embeds. On other platforms, add the onsite snippet from your Klaviyo account settings to every page, usually in the site header. Our Wix integration guide covers this for Wix stores.

Step 3: place the form

Shopify (Online Store 2.0 themes)

  1. Open the theme editor and go to the page or section where the form should sit, such as the footer.
  2. Add a block or section and choose Klaviyo's signup form block from the app blocks list.
  3. Enter the form ID from Klaviyo (shown in the form's embed settings) and save.

Any other site

Copy the embed code from the form in Klaviyo. It's a single empty div with a class containing the form ID, for example <div class="klaviyo-form-AbC123"></div>. Paste it where you want the form:

  • WordPress: a Custom HTML block in the editor, or a widget for footers.
  • Webflow: an Embed element on the page or in a symbol.
  • Squarespace: a Code block.
  • Custom sites: directly in your template.

When the form doesn't show

Work through these in order:

  1. Is the form published? Check its status in Klaviyo.
  2. Is the onsite code loading? Open your browser's developer tools, go to the network tab and look for a request to Klaviyo's script. On Shopify, check the app embed is switched on for the live theme, not just a draft theme.
  3. Does the form ID match? A typo in the class name means nothing renders.
  4. Do targeting rules allow it? Embedded forms can still have device or URL targeting. Check nothing excludes the page you're testing.
  5. Is a cookie banner blocking scripts? If your consent tool blocks marketing scripts until someone accepts, the form may only appear after consent. Test after accepting cookies.

Klaviyo keeps a list of form troubleshooting steps in its help centre, searchable by platform.

Getting more signups from an embedded form

  • Say what people get. "Early access to new drops and 10% off your first order" beats "Subscribe to our newsletter".
  • Keep it to one field for footers. Ask for more in the welcome series instead.
  • Use it on high-intent pages. Blog posts, size guides and FAQ pages often converts better than the homepage footer.
  • Pair it with a pop-up, not instead of one. Embedded forms catch people who've already scrolled; pop-ups catch people early.
  • Use unique codes if you offer a discount, so it doesn't leak. See our guide to Klaviyo unique coupon codes.

Consent

Make it clear what people are signing up for and how often you'll email them. If you add an SMS field, it needs its own explicit consent wording. The ICO's guidance on electronic mail marketing is the reference for UK brands, its short and worth ten minutes.

Questions people ask

Why is my Klaviyo embedded form not showing?

The usual causes are that the form isn't published, Klaviyo's onsite tracking isn't installed or enabled, the embed code has the wrong form ID, or the form's targeting rules exclude the page or device you're testing on.

Can I embed a Klaviyo form without Shopify?

Yes. Install Klaviyo's onsite JavaScript on your site, then paste the form's embed code wherever you want it to appear. It works on WordPress, Webflow, Wix, Squarespace and custom sites.

Can I style a Klaviyo embedded form?

Most styling is done in Klaviyo's form editor: fonts, colours, spacing and button styles. For finer control, you can add custom CSS on your site that targets the form's container.

Do embedded forms count towards Klaviyo form reporting?

Yes. Views, submissions and submit rate are tracked for embedded forms in the same way as pop-ups.

Keep reading

Bring us the ambition. We’ll build the system behind it.