How to add an embed form to your Shopify site

Estimated 4 minute read
|
Updated Apr 30, 2025, 9:55 PM EST
You will learn

You will learn

Learn how to add a Klaviyo embed form to your Shopify site. This involves creating a form in Klaviyo and then pasting its embed code into your site’s files where you want it to appear, such as in the footer.

Already using a Shopify sign-up form? If you chose to sync Shopify subscribers to Klaviyo when integrating, then any new subscribers will sync automatically.

Before you begin

Before you begin

Before creating the embed form in Klaviyo, you must integrate with Shopify and enable sign-up form functionality (also called "onsite tracking"). For Shopify stores, the app embed must be enabled for sign-up forms to display and sync data properly. 

To verify the app embed is enabled:

  1. Navigate to your Shopify integration settings page
  2. Scroll to the Onsite Tracking section.
    • If you see a green banner stating The Klaviyo app embed is enabled on your Shopify store, you’re all set. Continue to the next section of the article to add the embed form to your site.
      The Onsite tracking section of an example account's Shopify Integrations settings page showing a green banner stating that the app embed is enabled.
    • If a yellow banner shows Klaviyo app embed is turned off. After turning it on, select ‘Save’ in the Shopify theme editor to apply the change.

The example in this article uses a Shopify 2.0 theme. Your theme may differ, which could affect the names of some files or locations of code snippets.

Add an embed form to your site

Add an embed form to your site

Looking to embed a form on a Shopify thank you or order status page? Shopify no longer natively supports this functionality, but you can use Klaviyo's SMS app block feature to collect SMS consent on Shopify checkout (Shopify Plus only), thank you, or order status pages. 

  1. Create your embed form.
  2. In the form editor, select Targeting and behavior > Display
  3. Under Embed Code, copy the form ID from within the code as shown below:
  4. Publish your form. 
  5. Navigate to your Shopify dashboard.
  6. Select Online Store > Themes.
  7. Click Customize.
    The Themes menu on an example Shopify dashboard showing the Customize button highlighted to click.
  8. From the top menu bar, choose the page template where you wish to add the form (e.g., your Home page or Password page).
    A Shopify store admin showing the page templates dropdown open at the top and Home page selected to edit in the theme editor.
  9. In the left-hand menu under Apps, select Add section > Apps > Klaviyo Embedded Form
    • If you only want this form to appear on this specific page, do this in the Template section. 
      A Shopify store's hope page open in the theme editor and showing a Klaviyo Embedded Form app in the Template section.
    • If you want the form to persist across every page on your website, do this in the Footer section. Note that having an embed form in your site’s footer is also a Klaviyo best practice for list growth.
      A Shopify store's hope page open in the theme editor and showing a Klaviyo Embedded Form app in the Footer section
  10. Click on the newly created Klaviyo Embedded Form section in the left menu.
  11. Paste the form ID you copied from Klaviyo into the designated textbox.
  12. Click Save to add your embed form to the page template. Note that the embed form won’t appear in the preview until after you save.
  13. Optional: After saving, you can rearrange the Klaviyo Embedded Form app by clicking and dragging it within the menu. 

Once you’ve pasted the embed code and saved the changes in Shopify, navigate back to your website and refresh the page. Site visitors will see your form and have the option to join your list by completing it.

If you don’t see your form, see troubleshooting embed forms.

Next steps

Next steps

Next, create a welcome series flow to make an immediate impact on your new subscribers.

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type