How to add an embed form to your Shopify site

Estimated 4 minute read
|
Updated Dec 19, 2024, 9:03 AM 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 integrations 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

First, create and publish your embed form in Klaviyo. Once you’ve done so, follow these next steps to paste your form’s embed code onto the page of your Shopify site where you want the form to display.

  1. If you have not already, copy the embed code for your embed form. You can access the form’s embed code by opening the form in the editor and clicking into the Targeting & behavior section.
    The embed code for an example sign-up form highlighted from the Targeting and behaviors tab of the form editor in Klaviyo.
  2. Navigate to your Shopify dashboard.
  3. Select Online Store > Themes.
  4. Click Customize.
    The Themes menu on an example Shopify dashboard showing the Customize button highlighted to click.
  5. 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.
  6. 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
  7. Click on the newly created Klaviyo Embedded Form section in the left menu.
  8. Paste the embed code you copied from Klaviyo into the designated textbox.
    The Klaviyo Embedded Form selected within a Shopify theme editor showing an example form's embed code ID pasted in the text box.
  9. 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.
  10. 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