You will learn

Learn how to add a Klaviyo embed form to your BigCommerce site, which requires creating the form in Klaviyo and then pasting its embed code into your site’s files where you want it to appear (e.g., the footer).

This guide shows how to replace the BigCommerce default sign-up form with a Klaviyo embed form.

Before you begin

To display a Klaviyo embed form on your BigCommerce site, integrate with BigCommerce and install Klaviyo’s onsite JavaScript (Klaviyo.js). This script enables sign-up forms and onsite tracking. If you checked the setting Automatically add Klaviyo onsite javascript (Recommended) when integrating with BigCommerce, you’re all set.

If not:

  1. In Klaviyo, select Integrations in the left navigation.
An example account name selected in Klaviyo showing the Integrations tab being selected from the navigation menu.
An example account name selected in Klaviyo showing the Integrations tab being selected from the navigation menu.
  1. Click BigCommerce, then select the Settings tab.
  2. Check the setting Automatically add Klaviyo onsite javascript (Recommended).
  3. Click Save.

The example in this article uses BigCommerce’s default Cornerstone theme. Keep in mind that your theme may differ, along with the names of some files or locations of code snippets. If you switch themes later, add the embed code to the new theme too.

Adding the form's embed code to your site

First, create and publish an embed form in Klaviyo. This section will go over the next steps of pasting your form's embed code on your BigCommerce site so it displays and syncs data properly.

  1. If you have not already copied the embed code, open the form in the editor, select Targeting & behavior > Display, and copy the code under Embed code.
An example form's embed code highlighted to copy from the Display menu of the Targeting and behaviors tab within the form editor.
An example form's embed code highlighted to copy from the Display menu of the Targeting and behaviors tab within the form editor.
  1. Navigate to your website and locate the default BigCommerce sign-up form. If you’re using a Cornerstone theme, it’s in the footer of the site.
A BigCommerce storefront showing sample products and an email subscription form in the site footer
A BigCommerce storefront showing sample products and an email subscription form in the site footer
  • If you do not see a default form on your website:
    • Open your BigCommerce dashboard.
    • Navigate to Marketing > Email Marketing.
    • Check the box labeled Allow newsletter subscriptions. This enables you to collect email consent from visitors on your website, and also adds a default email sign-up box on your BigCommerce site. If this box is already checked and you still don’t see a default form, then your theme may not include one.
  1. Open your BigCommerce dashboard, then navigate to Storefront > Themes.
  2. From the Current Theme section, click the Advanced dropdown then choose Edit Theme Files.
BigCommerce dashboard showing Current Theme with Advanced Settings dropdown open and Edit Theme Files highlighted in blue.
BigCommerce dashboard showing Current Theme with Advanced Settings dropdown open and Edit Theme Files highlighted in blue.
  • If you’re using a default theme, you will not be able to select this option. Instead:
    • Click Make a Copy, name it, then select Save a Copy.
    • Once it’s added to the Themes section, select the 3 dots, then choose Edit Theme Files. Note that any edits you make will only apply to the theme you're editing, and you'll need to apply the theme to your website to see the changes reflected.
  1. In the left sidebar, open the file corresponding to where the default form appeared on your site. If the default form was located in the footer, like in the example, navigate to templates > components > common, and click the footer.html file.
  2. Use the find shortcut (Command+F on Mac or Control+F on Windows) to search the word “newsletter” within the footer file.
The find shortcut command searching the term
The find shortcut command searching the term
  1. Within the code beneath it, find the reference to the form. In the example, the form is referenced in a different file path: {{> components/common/subscription-form}}.
The file path for the newsletter form referenced within an example site's footer file.
The file path for the newsletter form referenced within an example site's footer file.
  1. In the left sidebar, follow the file path referenced in the code (in this example, select components > common > subscription-form). You’ll see the actual components of the default form from here.
    • In this example, the default form’s heading and introductory text match the rest of the site’s styles. Keep that text outside the <form> element when replacing the form.
  2. Highlight the entire <form> element, including the opening <form ...> tag, the closing </form> tag, and everything between them. Paste the embed code you copied from Klaviyo to replace it. Klaviyo creates its own form, so do not leave the embed code inside the original form tags.
The subscription-form file for an example website showing the default form input highlighted within the form tags.
The subscription-form file for an example website showing the default form input highlighted within the form tags.
  1. Click Save and apply file to apply these changes to your website.
    • If the button only says Save file, then the file you just edited is not your Current Theme yet. You’ll need to click Save file, then scroll up and select Edit Theme Files > Save > Use as Active Theme in the top right corner to apply the theme to your website.

Once you’ve pasted the embed code, saved, and applied the changes in BigCommerce, navigate back to your website and refresh the page. Your Klaviyo embed form will display on your site and begin adding new subscribers to the Klaviyo list linked to the form.

Test your form

  1. Submit the form on your website using an email address that is not already on the form’s connected list.
  2. If the list uses double opt-in, open the confirmation email and confirm the subscription. New email subscribers join the list after confirming.
  3. In Klaviyo, check that the email address has been added to the list connected to your form.

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

Next steps

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

Additional resources

  • How to create an email welcome series

    Learn how to create a sequence of emails sent directly after someone subscribes to hear from your brand. This is a critical moment in the customer lifecycle because it's your opportunity to introduce new, interested prospects to your business and product offering. With a welcome series, you should capitalize on this display of interest.

  • How to disable notification emails sent by BigCommerce

    Learn how to disable different types of notification emails sent by BigCommerce. If you are currently sending certain emails with BigCommerce - such as abandoned cart or order status emails - and plan to start sending them via Klaviyo, you will need to disable these emails in BigCommerce to avoid sending them twice.

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.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
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