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.

  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
BigCommerce onsite tracking setting
  1. 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.

Add viewed product tracking step in Klaviyo
Add viewed product tracking step in Klaviyo
  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.
  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
Product page template in BigCommerce with Viewed Product snippet
  1. 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

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