Skip to content
ShopPilotStart free trial

How to add a Klaviyo sign-up form to your website

By 13 min read

The Display settings of a Klaviyo popup form, with exit intent, a 5 second delay and a 30% scroll trigger switched on.

The most common Klaviyo form question goes like this: "My form is published, so why can't I see it?"

Often nothing is wrong. Klaviyo's default setting hides a new popup from anyone who is already a profile in your account. You are a profile in your own account. So you open your store, wait, and nothing happens, while your visitors see it just fine.

This guide goes through the job in the order you do it: pick the form type, pick the list, set when it shows, switch it on for your website, test it. Then come the checklists for a form that won't show, a form that won't submit, and a list full of bots. The setup takes about 30 minutes. I built a test form in my own Klaviyo account and clicked through every setting, so the labels below are the ones you will see.

Form typeWhat it doesWhen I'd use it
PopupPops up in the middle of the screen.Your first form. It collects the most sign-ups.
FlyoutSlides in from the side.When a popup feels too pushy. Fewer sign-ups.
Full pageFills the whole screen.Rarely. Easy to overdo.
EmbedSits inside a page, for example the footer. Needs a line of code.Your second form, for people who closed the popup.
BannerA bar at the top or bottom.Announcing a sale, not collecting emails.
Back in stock"Tell me when it's back".Sold-out products only.

My opinion: start with a popup, then add an embedded form in your footer. The popup does the heavy lifting and needs no code on your site. The footer form is a permanent place to sign up, and Klaviyo calls it a best practice for list growth (Klaviyo's embed guide).

Step 1: Create the form

  1. In Klaviyo, click Website in the left bar, then Sign-up forms.
  2. If you have no forms yet, you see a template gallery. Click Create blank form. Otherwise click Create form.
  3. Type a Form name that says what it does, like "Welcome popup 10%".
  4. Under Choose a form type, pick Popup.
  5. Under Which list should subscribers be added to?, pick your main email list (Step 2 explains this choice).
  6. Leave Apply your brand styles on and click Save and design.

The form opens in the editor as a Draft, which visitors never see. A blank popup comes with steps already built, in a bar across the top: a Teaser (a small tab that reopens the form), a "Yes please / No thanks" step, an Email Opt-In step and a Success step. Click a step to edit it.

Step 2: Choose the list and understand opt-in

A list is a group of people who signed up for something. Your form adds each new subscriber to one list, and your welcome flow starts when someone joins it.

The list really lives on the form's submit button:

  1. Click the Email Opt-In step, then its button (on mine, Claim discount).
  2. On the left, check that Action is Submit form. Close form closes the popup and saves nothing.
  3. Check List to Submit. That's the list people join.
The button settings in the Klaviyo form editor, with Action set to Submit form and the list chosen under List to Submit.

Now the part that confuses almost everyone. Each list has an opt-in process, set on the list, not the form. Go to Audience, Lists & segments, open the list, then Settings and Consent:

  • Double opt-in (marked "Recommended"): the person gets a confirmation email and joins the list only after clicking its link.
  • Single opt-in: the person joins the moment they submit.

This decides who gets your welcome email. Klaviyo says only people who confirm are added to the list "and get queued for a welcome series" (Klaviyo's double opt-in guide). Someone who signs up for 10% off and never confirms never gets the code.

My opinion: keep double opt-in on the list your popup feeds. You lose a few people who never confirm, and in return you keep out typos and bots, which love discount popups. Single opt-in is right for a different group: people who ticked the box at Shopify checkout. They are real buyers, and they already confirmed their address by ordering. If both groups would land on the same list, keep two lists, or give the one list the setting that fits where most of your sign-ups come from. I explain that choice, and the route Shopify's own footer form takes, in how to sync Shopify subscribers to Klaviyo. Whichever you pick, make sure your welcome flow starts from the list this form feeds, as in my guide to the first Klaviyo flows.

Step 3: Set who sees it, when, and how often

Click the Targeting & behavior icon in the editor's left bar (the third icon). It has two tabs.

Targeting decides who sees it. Audience defaults to Don't show to existing Klaviyo profiles. Keep that for a welcome popup, but remember it's the setting that hides the form from you. Below it are URLs rules (Only show on certain URLs, Don't show on certain URLs, with * as a wildcard), plus location, UTM and cart rules.

Display decides when. Under Timing, my blank popup had three rules switched on: When visitor is exiting the page, After time delay (5 seconds) and After visitor has scrolled a certain amount (30%). The switch Only display if all selected conditions are met was off, which means any one rule is enough. So by default the popup shows after 5 seconds on almost every visit.

Under Frequency, If visitor closes form, show again after was 1 day, and Don't show again if form was submitted was ticked. Under Devices you choose all devices, desktop only or mobile only. The picture at the top of this guide shows the Timing rules with these defaults.

SettingMy valueWhy
AudienceDon't show to existing Klaviyo profilesSubscribers already said yes.
Don't show on certain URLsYour cart and account pagesDon't interrupt someone about to pay or log in.
Exiting the pageOnThe least annoying moment. They were leaving anyway.
Time delay10 secondsFive seconds is before anyone has read your page.
Scrolled a certain amountOffWith the delay on, it adds little.
Show again after closing14 daysOne day means returning visitors close the same popup again and again.
Don't show again if submittedTickedNever ask someone who said yes.
DevicesAll devicesThen check the mobile preview. A tiny close button on a phone costs sales.

Step 4: Switch it on for your website (the step people miss)

Klaviyo forms need Klaviyo's code, called onsite tracking or Klaviyo.js, on every page of your site. Without it, a published form doesn't exist on your website.

On Shopify: the app embed

On Shopify, the code comes from an app embed, a switch in your theme that lets an app run on your storefront. Installing the Klaviyo app is not enough.

  1. In Shopify admin, go to Online Store, then Themes.
  2. Next to your live theme, click Edit theme (older screens say Customize).
  3. In the top left corner of the theme editor, click the App embeds icon (four small squares).
  4. Klaviyo Onsite Javascript must be switched on. If you switch it on, click Save.
Shopify's theme editor with the App embeds panel open and the Klaviyo Onsite Javascript embed switched on.

The catch: the switch belongs to one theme. Publish a new theme and you have to switch it on again (Klaviyo's Shopify onsite tracking guide). Many "my popup disappeared overnight" posts are really "I published a new theme".

You can also check from Klaviyo: on the Sign-up forms page, click Enable forms on website. Mine says "You've enabled onsite tracking".

On other platforms

From Klaviyo's guide to enabling forms:

PlatformHow Klaviyo.js gets on your site
WooCommerce (WordPress)Added automatically by the WooCommerce integration.
Wix, BigCommerce, SquareTick Automatically add Klaviyo onsite javascript (Recommended) in the integration settings. It's on by default.
WordPress without WooCommerce, custom sitesPaste the snippet into your site's code, following Klaviyo's developer guide.

On any platform, only one Klaviyo account's code should be on the site. An old agency account's code left behind can break your forms.

Step 5: Add the embedded form

A popup is finished after Step 4. An embedded form also has to be placed on a page.

  1. Create a form with the type Embed. You can also switch a form's type under Edit styles (the second icon in the editor), then Form type.
  2. Open Targeting & behavior, then Display. Under Embed code is one line like <div class="klaviyo-form-AbC123"></div>. The part after klaviyo-form- is the form ID.
  3. Publish it (Step 6), then place it:
    • Shopify: in the theme editor, pick the template or the footer, click Add section, Apps, Klaviyo Embedded Form. Paste only the form ID and click Save. It won't show in the preview until you save (Klaviyo's Shopify embed guide).
    • Everywhere else: paste the whole <div> line where you want the form, for example a WordPress Custom HTML block or a Wix HTML element. It's an empty box that Klaviyo.js fills, so Step 4 must be done first.

For a footer form, ask for the email address only. Every extra field costs sign-ups.

Step 6: Publish and test it like a stranger

  1. Click Publish or schedule, then Publish now, and confirm.
  2. Open your store in a private (incognito) window, where Klaviyo doesn't recognise you.
  3. Wait for your trigger, then sign up with an address you have never used on this form. With Gmail, you+test1@gmail.com counts as new.
  4. If the list is double opt-in, click the confirmation link, then check the list.

Why your Klaviyo form isn't showing: the checklist

Go in this order. The first three solve most cases. They follow Klaviyo's troubleshooting guide.

  1. Is it published? On Sign-up forms, Status must say Live. Editing means changes aren't published yet.
  2. Are you testing as yourself? You're a known profile, and if you closed the popup once, Frequency hides it. Use a private window.
  3. Is the code on the site? On Shopify, the app embed must be on in your live theme.
  4. Do your targeting rules match? Check Audience, URL, location and cart rules, and Devices. If Only display if all selected conditions are met is on, every timing rule must happen.
  5. Embedded form: is the code or form ID exact, and saved?
  6. Is the site live? A store behind a password page won't behave like the real thing.
  7. Is more than one Klaviyo account's code on the site?
  8. EU, UK or Swiss visitors? Shopify's privacy settings can stop Klaviyo recognising visitors before consent. Forms targeting known profiles or list members then don't show.
  9. Ad blocker? Many block Klaviyo's script. Test in a browser without extensions.
  10. Still nothing? Custom CSS can hide the form. That's a job for a developer.

Why submissions fail or don't reach the list

  • Nobody confirmed. With double opt-in, a submission isn't a subscriber until the link is clicked. This is the usual reason form numbers beat list numbers.
  • The button doesn't submit. Action must be Submit form, with List to Submit set.
  • The list was deleted. Pick a new list on the button and publish again.
  • "An error occurred when submitting" while you test. A store owner on the Klaviyo forum traced it to their own ad blocker. Retest without extensions before changing anything.
  • Bots. Klaviyo blocks some suspicious submissions before they reach your list. More below.

How to stop fake sign-ups and bots

You notice it when your list grows faster than your traffic. One agency on the Klaviyo forum saw 2,500 new emails but only 24 popup sign-ups. This is list bombing: bots submitting forms with fake or stolen addresses. It hurts your sender reputation, and more active profiles can mean a bigger Klaviyo bill.

What helps, according to Klaviyo's guide to list bombing:

  1. Double opt-in. Bots don't click confirmation links, so they never join the list. This is the strongest protection you control.
  2. Klaviyo's built-in CAPTCHA. It's on automatically for Klaviyo forms that collect email or SMS or give out a unique coupon. Only visitors flagged as suspicious must solve it. There's no switch to find.
  3. IP blocking. Klaviyo flags or blocks IP addresses that submit many forms quickly. It limits an attack once it has started; it doesn't prevent one.
  4. A honeypot field, on custom-coded forms only. A honeypot is a field humans can't see. Bots fill it in and give themselves away.

What doesn't help:

  • Blocking a domain. Bots sign up with addresses at the big mailbox providers, the same ones your real customers use.
  • Deleting profiles one by one. Build a segment from the pattern (same form, same hours, odd names), review it, then suppress those profiles so they get no marketing email.
  • Hiding your form. Klaviyo says bots also abandon Shopify checkouts with real people's emails. Those never touch your popup.

If bots already pushed your bounce rate up, clean the list before your next campaign. Why marketing emails go to spam explains why that matters.

Frequently asked questions

Do I need to add code to Shopify for a Klaviyo popup?

No. Switch on the Klaviyo Onsite Javascript app embed in your live theme and publish the popup in Klaviyo. Only embedded forms need the Klaviyo Embedded Form app block with the form ID.

Why are there more form submissions than new list members?

Usually double opt-in: people submitted but never confirmed. Repeat sign-ups and blocked bot submissions widen the gap.

Can I change the list of a live form?

Yes. Click the submit button, change List to Submit, then Publish or schedule and Publish now. Make sure your welcome flow starts from the new list too.

Should I use single or double opt-in?

For a popup or any other public form, double opt-in. Single opt-in gets more people on the list and sends the welcome email instantly, but if bots find your form, you'll pay for it in fake profiles. Single opt-in is right for people who ticked the box at Shopify checkout, because they are real buyers who already confirmed their address by ordering.

Your first audit is five minutes away.

Start free trial

14 days free$19.95/monthCancel anytime