Getting started with BigCommerce
You will learn
Learn how to enable the BigCommerce integration in Klaviyo, add Viewed Product tracking, and confirm that all onsite tracking is working properly for your store.
When you integrate with BigCommerce, your historic ecommerce, customer, and catalog data is synced into your Klaviyo account. With Automatically add Klaviyo onsite javascript (Recommended) selected, the integration adds Klaviyo's onsite tracking snippet to your BigCommerce store. This allows you to add Klaviyo sign-up forms to your site and track when your customers are active on your site. The BigCommerce integration also sets up a real-time sync to capture future data.
Before you begin
Before integrating, we recommend logging out of both BigCommerce and Klaviyo.
The Viewed Product instructions below are for BigCommerce Stencil themes.
How to integrate video
Enable the BigCommerce integration
To integrate Klaviyo with BigCommerce:
- Log in to your Klaviyo account.
- Select Integrations in the left-hand navigation.
- Click Explore apps and search for BigCommerce, then click the card. Then, click Install.
- Click Connect to BigCommerce, log in to BigCommerce when prompted, then click Install.
- Review the permissions and click Confirm to be brought back into Klaviyo.

- Review the Store URL shown in Klaviyo. It is filled in automatically after you authorize the integration and cannot be edited here. This is your store’s permanent BigCommerce address, which is different from the storefront URL your customers visit.

- Keep Automatically add Klaviyo onsite javascript (Recommended) selected to enable onsite tracking and Klaviyo sign-up forms.
- If you’d like to sync new email subscribers from BigCommerce, check Sync your BigCommerce email subscribers to Klaviyo. From then on, contacts who opt in during checkout or through a BigCommerce footer form will be subscribed to the Klaviyo list you select. Choose a list from the dropdown. If you prefer, you can create a new list instead.
Historical customer and subscriber profiles can sync without being subscribed to your selected email list. To add existing email subscribers to that list, import contacts with consent.
SMS consent at BigCommerce checkout is not supported for age-gated accounts.
- To collect SMS subscribers who opt in via BigCommerce, check the setting to Sync your BigCommerce Text Message subscribers to Klaviyo. Before collecting SMS subscribers, you must first set up SMS for your Klaviyo account.
- If you decide to collect SMS subscribers at checkout, choose the list you want them added to. We recommend using separate lists for email and SMS subscribers. Enter your Privacy policy URL and Mobile terms of service URL, then copy the code snippet. Follow our guide to collecting SMS consent at checkout with BigCommerce to add the snippet to your checkout. You must also include disclosure language for TCPA compliance.
- When you're done, click Complete setup.
You've successfully enabled the BigCommerce integration.
Confirm onsite tracking installation
When you integrated with BigCommerce, a Klaviyo.js file which enables onsite tracking was automatically installed in your BigCommerce store if you checked the relevant setting. Klaviyo.js does 2 things:
- It enables you to add Klaviyo sign-up forms to your site directly from your Klaviyo account.
- It adds Active on Site tracking, which allows you to track when your customers access your site.
You can verify that Klaviyo.js is installed using the steps below. Viewed Product tracking requires the separate setup and test in the next section.
- In your Klaviyo account, click Integrations.
- In the upper right corner, click Manage data > Set up web tracking.
- Under Confirm onsite tracking is enabled, enter the storefront URL your customers visit, then click Confirm.
- If Klaviyo cannot detect onsite tracking and offers Run test, click it to open your store in a new window. Once the page loads, return to Klaviyo. If the check still fails, follow the error message before continuing.

If you see Update your website in account settings, choose Continue without updating to keep the website URL saved in your account, or Update to replace it with the URL you just checked. Updating also affects existing templates that link to your website.
- Look for You’ve enabled onsite tracking to confirm that the installation check succeeded.

- Keep this screen open to add Viewed Product tracking in the next section.
Add Viewed Product tracking
Viewed Product tracking allows you to track when identifiable visitors view your products. To enable Viewed Product tracking, you will need to add a Viewed Product code snippet to your BigCommerce theme file.
Viewed Product tracking is necessary for building flows such as a browse abandonment flow, which you can learn more about in Creating a Browse Abandonment Flow.
- If you closed the onsite tracking screen, go to Integrations > Manage data > Set up web tracking and confirm your storefront URL again.
- On the You’ve enabled onsite tracking screen, expand Install Viewed Product tracking.
- Click Copy to copy the Viewed Product snippet.

- Next, you'll paste the Viewed Product code snippet into your BigCommerce theme file. In a new tab, log in to your BigCommerce dashboard and navigate to Storefront > My Themes.
- From the Current Theme, click the Advanced Settings dropdown and click Edit Theme Files. If you're working with a default theme, the option to edit theme files will not appear. First, make a copy of the theme, and then make your edits to the copy. Any edits you make will only apply to the theme you are editing. Note that if you change your theme in the future, you will need to install Viewed Product tracking to your new theme.

- In the editor, navigate to Templates > Pages, scroll down, and click to open the product.html page.
- At the bottom of this page, paste the Viewed Product code snippet. Then save and apply your changes using Save & apply all files.

Make sure the theme you edited is applied to your storefront. Viewed Product tracking works on the product pages that use the template you updated.
Test Viewed Product tracking
- Open your storefront and add
?utm_email=example@gmail.comto the end of the URL, replacingexample@gmail.comwith your own email address. Load the page to identify your browser. - In the same browser, open a product page that uses the updated template.
- In Klaviyo, search for your email address and open your profile. Check the activity feed for a Viewed Product event for that product. If it is missing, confirm that Klaviyo.js is enabled and that the snippet is saved in the theme applied to your storefront.
Data synced to Klaviyo
The BigCommerce integration syncs with Klaviyo in real-time.
After you've enabled your BigCommerce integration, it will sync the following information about your customers:
- Sales and order data, including which products were purchased, product images, price, and quantity.
- Customer information, including first name, last name, and how they found your store.
Location information is only synced to Klaviyo if the customer has placed an order.
- Fulfillment, refund, and canceled order data.
- Website visits through Active on Site tracking, and product views through Viewed Product tracking after you add the snippet. Viewed Product events include the viewed product’s categories.
To view BigCommerce event data in your Klaviyo account:
- Click the Analytics dropdown and select Metrics.
- Select BigCommerce from the Integration filter to display BigCommerce metrics. These metrics have the BigCommerce icon.

- Read more about your BigCommerce Data for a full reference of all the types of data and specific events that sync to Klaviyo.
To find Active on Site and Viewed Product events, use the API filter instead. These onsite events have a gear icon.
Klaviyo limits the number of unique metrics you can create to 200. When you approach this threshold, you will be alerted via a warning in your account, along with an email to the account owner.
Outcome
You've successfully enabled the BigCommerce integration, confirmed that onsite tracking is working, and added Viewed Product tracking to your store.
Next steps
With your integration running, you can use your synced data to set up flows, sign-up forms, segments, and campaigns in Klaviyo.
After you complete the items in this category, you'll be all set to get the most out of Klaviyo's features.
- Set up your welcome series flow.
- Set up your abandoned cart flow.
- Add a Klaviyo sign-up form to your site. We also have go-to options for using your existing forms or third-party form providers, but we recommend Klaviyo forms because they are free and you can target key Klaviyo segments.
- Create your core segments (Engaged, Never engaged, VIP).
- Send your first campaign.
Additional resources
- BigCommerce data reference
Learn what data is synced to Klaviyo when you integrate with your BigCommerce store, such as order and customer data, and how to access it in Klaviyo.
- How to create an "Added to Cart" event for BigCommerce
Learn how to create an Added to Cart event for BigCommerce that tracks when a customer adds an item to their cart and can trigger an abandoned cart flow. Added to Cart events do not automatically track when you integrate with BigCommerce; you must first add (and potentially modify) a JavaScript snippet (included in this guide) to your BigCommerce theme files.
- Klaviyo's Agency Partners