---
title: "How to remove onsite tracking for BigCommerce"
description: "Learn how to remove Klaviyo onsite tracking from your BigCommerce site. Onsite tracking encompasses both Active on Site and Viewed Product tracking."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/19736852757915"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/19736852757915.md"
locale: "en-us"
category: "Integrations"
section: "Getting started with BigCommerce"
updated: "2026-10-29"
---

# How to remove onsite tracking for BigCommerce

## You will learn

Learn how to remove Klaviyo onsite tracking from your BigCommerce site. Onsite tracking encompasses both *Active on Site* and *Viewed Product* tracking. 

*Active on Site* tracking is enabled via Klaviyo’s onsite JavaScript, also known as Klaviyo.js, so removing *Active on Site* tracking requires removing Klaviyo.js. The BigCommerce integration adds Klaviyo.js when the automatic installation setting is enabled. You can turn off that setting in Klaviyo.

*Viewed Product* tracking for BigCommerce is enabled via a snippet you added to your site [during the integration process](https://help.klaviyo.com/hc/en-us/articles/115005082547.md#h_01HAQ99C0AEYNSZ7YKNX9PX6C9), so removing *Viewed Product* tracking requires removing this snippet. 

## Before you begin

You may wish to remove onsite tracking for site speed performance reasons, though Klaviyo.js has recently been updated to [minimize its impact](https://klaviyo.tech/improving-forms-performance-c67c98114d49) in this regard. 

If you no longer wish to have Klaviyo onsite tracking enabled on your store, you can: 

- Remove *Viewed Product* tracking only.

- Remove both *Active on Site* and *Viewed Product* tracking. Note that removing *Active on Site* tracking without removing *Viewed Product* tracking causes *Viewed Product* tracking to no longer function. 



It is important to note that:

- Removing *Active on Site* tracking will also cause Klaviyo sign-up forms to no longer work. 

- Removing *Viewed Product* tracking means you will not be able to track when someone views a product on your store, so you will no longer be able to send browse abandonment messages. 

- Removing Klaviyo.js or the Viewed Product snippet will cause Klaviyo’s [Added to Cart functionality](https://help.klaviyo.com/hc/en-us/articles/360024310292.md) (if you’ve set this up for BigCommerce) to no longer work.



## Remove Active on Site tracking

Use the steps below to remove the copy of Klaviyo.js installed by the BigCommerce integration. If you added Klaviyo.js manually, also remove that script from wherever you added it to your site, then save and publish those changes.

1. In Klaviyo, select **Integrations**.

2. Select **BigCommerce** from the list, then open the **Settings** tab.

3. Under **Onsite tracking**, uncheck **Automatically add Klaviyo onsite javascript (Recommended)**.



![BigCommerce onsite tracking setting](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/97682b3720333d1cfd964bf7f57020cd94b53789-1988x442.png?auto=format)

4. Click **Save**.



Once all copies of Klaviyo.js are removed, *Active on Site* tracking stops on your BigCommerce store.

## Remove Viewed Product tracking

Removing *Viewed Product* tracking from your BigCommerce site requires removing the code snippet you [added during integration](https://help.klaviyo.com/hc/en-us/articles/115005082547.md#h_01HAQ99C0AEYNSZ7YKNX9PX6C9) from your site code. 

To identify the *Viewed Product* snippet in your theme, look for a script that defines your product details and includes both `Viewed Product` and `trackViewedItem`.

![Add viewed product tracking step in Klaviyo](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/09ba63d8c6a01d8e512697e741cf420bffcf0e6c-1534x748.png?auto=format)

1. In a new tab, log in to BigCommerce and locate the theme used by your storefront. For help locating template files, see BigCommerce’s [theme directory reference](https://docs.bigcommerce.com/developer/docs/storefront/stencil/themes/foundations/directory-structure).

2. If you are working with a default theme, make a copy of the theme, then make your edits to the copy. Any edits you make will only apply to the theme you are editing.

3. Open `templates/pages/product.html`, the product page template where you added the snippet.

4. Find the *Viewed Product* snippet you added at the bottom of the file. Delete the entire snippet, including its opening `<script>` and closing `</script>` tags, then save your changes.



![Product page template in BigCommerce with Viewed Product snippet](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/11331d6f9f38064b5ee15f8b7b7c0b8dd5e0ca0e-1620x818.png?auto=format)

5. If you edited a copy of your theme, apply that theme to your storefront so the changes take effect.



*Viewed Product* tracking has now been removed from your BigCommerce site.

## Additional resources

- [Getting started with Klaviyo onsite tracking](https://help.klaviyo.com/hc/en-us/articles/115005076767.md)
  Learn about the different ways that Klaviyo can support onsite tracking on your ecommerce site. There are 2 key types of onsite tracking:
- [Getting started with BigCommerce](https://help.klaviyo.com/hc/en-us/articles/115005082547.md)
  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. 
- [How to add a Klaviyo embed form to your BigCommerce site](https://help.klaviyo.com/hc/en-us/articles/360022594552.md)
  Learn how to add a Klaviyo embed form to your BigCommerce site, which requires creating the form in Klaviyo, and then pasting it's embed code to your site’s files where you want it to appear (e.g., the footer).
