---
title: "Integrate with a BigCommerce Catalyst store"
description: "Learn how to integrate with a BigCommerce Catalyst store, BigCommerce’s customizable, headless storefront."
url: "https://developers.klaviyo.com/en/docs/integrate_with_a_bigcommerce_catalyst_store"
category: "Integrate with Klaviyo"
lastUpdated: "2026-11-06"
related: ["https://developers.klaviyo.com/en/docs/llms.txt"]
---

# Integrate with a BigCommerce Catalyst store

> This is the Markdown version of https://developers.klaviyo.com/en/docs/integrate_with_a_bigcommerce_catalyst_store

Learn how to integrate with a BigCommerce Catalyst store, BigCommerce’s customizable, headless storefront.

The concepts in this article apply for any setup where you are using BigCommerce to power your ecommerce store’s backend, but have a custom storefront (a “headless” setup). This integration requires 2 main steps:

1. Connect your BigCommerce store via Klaviyo’s native integration to sync order, catalog, and subscriber data.
2. Set up code snippets to enable onsite tracking functionality.

## Key integration components

The key components of integrating this type of ecommerce solution are:

- **Customer data**  
  Syncing information such as name, email, phone number, and other profile attributes.
- **Subscribers**  
  Tracking who opts in and to what marketing channel (e.g., your email newsletter subscribers).
- **Order activity**  
  Syncing when a customer places an order, what products are ordered, etc.
- **Products**  
  Syncing the items in your catalog.
- **Onsite activity**  
  Tracking who is active on your site, what products they view, etc.

With the exception of onsite activity, Klaviyo’s native BigCommerce integration will sync all of the above data for a BigCommerce Catalyst store because this data is fetched server-side via API. 

## Integrate your store

### 1. Connect your BigCommerce store via Klaviyo’s native integration

The first step is to integrate your BigCommerce store via Klaviyo’s native integration. Follow the _Enable the BigCommerce integration_ steps in our [Getting started with BigCommerce](https://help.klaviyo.com/hc/en-us/articles/115005082547#h_01HAQ99C0AWGKA7X8XJK51N2RY) guide through step 11. 

> [!WARNING]
> Do not check the setting _Automatically add Klaviyo onsite JavaScript_; you’ll add onsite tracking manually in step 2.

### 2. Enable onsite tracking

```prompt Set up BigCommerce's Catalyst starter with Klaviyo tracking
Set up the Catalyst storefront that BigCommerce provides with Klaviyo onsite tracking (Active on Site, Viewed Product and Added to Cart) already built in.

First read https://developers.klaviyo.com/en/docs/integrate_with_a_bigcommerce_catalyst_store.md.

Ask me for these before you change anything, unless I've already given them:
- My Klaviyo public API key, from https://www.klaviyo.com/settings/account/api-keys. It's public, but don't ask for or use a private key.
- Where to put the new project.
- Whether the store is already connected through Klaviyo's native BigCommerce integration. If it isn't, stop and point me to the guide's "Connect your BigCommerce store via Klaviyo's native integration" step; that's done in Klaviyo and BigCommerce, not in code.

Then:
1. Clone https://github.com/bigcommerce-labs/catalyst-klaviyo and install its dependencies with `pnpm i`.
2. Copy the repository's environment variable template. For the BigCommerce values, tell me to run `pnpm create @bigcommerce/catalyst@latest init`, which creates `.env.local`; don't make up BigCommerce credentials.
3. Add `NEXT_PUBLIC_KLAVIYO_PUBLIC_KEY=<public API key>` on its own line in `.env.local`, since the init command doesn't create it.
4. Keep `.env.local` out of source control.

Don't turn on "Automatically add Klaviyo onsite JavaScript" in the BigCommerce integration settings, and don't change anything else in Klaviyo or BigCommerce.

When you're done, tell me what you changed and how to run the storefront locally. To check it worked, I can visit the store, view a product and add it to the cart, then look for Active on Site, Viewed Product and Added to Cart activity in Klaviyo.
```

For Catalyst stores, you will need to use the repository provided by BigCommerce (detailed below) to install Klaviyo's onsite tracking JavaScript, which includes the following:

- **Active on Site**  
  Also known as _Klaviyo.js_. Klaviyo.js tracks when users are active on your site and enables Klaviyo forms.
- **Viewed Product**  
  Tracks when users view specific products on your site (which can be leveraged in a browse abandonment flow).
- **Added to Cart**  
  Tracks when users add items to a cart, which allows you to send cart abandonment flows. 

The instructions detailed below will set up tracking for _Active on Site_, _Viewed Product_, and _Added to Cart_ events:

1. Clone <a href="https://github.com/bigcommerce-labs/catalyst-klaviyo" target="_blank">the repository provided by BigCommerce</a> and install its dependencies:  
   `git clone git@github.com:bigcommerce-labs/catalyst-klaviyo.git && cd catalyst-klaviyo && pnpm i`
2. Copy the environment variable template and enter values for each variable. To help with the BigCommerce variables, you can run the create-catalyst CLI's init command:  
   `pnpm create @bigcommerce/catalyst@latest init`
3. The `.env.local` file created by the init command above will not create the `NEXT_PUBLIC_KLAVIYO_PUBLIC_KEY` variable, so we'll need to add that. Copy your <a href="https://www.klaviyo.com/settings/account/api-keys" target="_blank">Klaviyo Public API Key</a>, and then run the command below replacing `YOUR_PUBLIC_KEY` with the value retrieved from your account:  
   `echo "\nNEXT_PUBLIC_KLAVIYO_PUBLIC_KEY=YOUR_PUBLIC_KEY" >> .env.local`

You’ve now set up Klaviyo onsite tracking for BigCommerce Catalyst.

## Server-side metrics

Now that you've connected your store, the following metrics will sync through Klaviyo’s native BigCommerce integration:

- **Started Checkout**  
  When customers start a checkout and a cart is created.
- **Placed Order**  
  When a customer checks out and an order is created on your store.
- **Ordered Product**  
  An event for each item in a processed order.
- **Fulfilled Order**  
  When an order's status updates to either _Shipped_ or _Completed_.
- **Canceled Order**  
  When an order is canceled.
- **Refunded Order**  
  When a customer’s order is refunded.

## Additional resources

### Klaviyo resources

- [Getting started with BigCommerce](https://help.klaviyo.com/hc/en-us/articles/115005082547)
- [BigCommerce data reference](https://help.klaviyo.com/hc/en-us/articles/115005082587)

### BigCommerce resources

- [Overview of BigCommerce Catalyst](https://www.catalyst.dev/)
- [Catalyst docs](https://www.catalyst.dev/docs)
