How to remove onsite tracking for BigCommerce
Estimated 3 minute read
|
Updated Sep 29, 2025, 12:00 AM EST
Table of contents
- You will learn
- Before you begin
- Remove Active on Site tracking
- Remove Viewed Product tracking
- Additional resources
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, 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 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 (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.
- In Klaviyo, select Integrations.
- Select BigCommerce from the list, then open the Settings tab.
- Under Onsite tracking, uncheck Automatically add Klaviyo onsite javascript (Recommended).


- 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 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.


- 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.
- 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.
- Open
templates/pages/product.html, the product page template where you added the snippet. - 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.


- 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
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
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
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).
Was this article helpful?
YesNo
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
