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. Klaviyo.js was automatically added to your site when integrating BigCommerce with Klaviyo, but can be toggled off 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 beginBefore 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 onsite tracking 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
Removing Active on Site tracking from your BigCommerce site requires unchecking an integration setting in Klaviyo.
- In Klaviyo, click your account name in the lower left and select Integrations.
- Select BigCommerce from the list.
- Uncheck the Automatically add Klaviyo onsite javascript setting.
- Click Update Settings.
Active on Site tracking will now be removed from your BigCommerce store.
Remove Viewed Product trackingRemove 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 view the snippet for reference:
- In your Klaviyo account, click your account name in the lower left corner and select Integrations.
- In the upper right corner, click Manage Sources > Set up web tracking. From here, you can view the Viewed Product snippet to see what needs to be removed from your site.
- 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. Note that if you are working with a default theme, the option to edit theme files will not appear. You’ll want to 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.
- In the editor, navigate to Templates > Pages, scroll down, and click to open the product.html page.
- At the bottom of this page, you’ll see the Viewed Product code snippet. Delete the snippet, then click Save all files.
Viewed Product tracking has now been removed from your BigCommerce site.
Additional resources