Troubleshooting viewed product tracking
Generating...
You will learn
Learn how to troubleshoot issues with your Viewed Product tracking, which is used to track when visitors view products on your site. For some ecommerce platforms, Viewed Product is tracked automatically when you integrate with Klaviyo. For other ecommerce platforms, a snippet must be manually added to your product page template.
Before you beginBefore you begin
Before consulting this guide, make sure you:
- Enable Viewed Product tracking, if it was not added automatically through your integration.
- Enable Klaviyo’s Active on Site JavaScript, known as Klaviyo.js, in order for Viewed Product tracking to work.
For the following ecommerce integrations, Viewed Product tracking works as follows:
-
Shopify
Viewed Product tracking will be automatically added to your store if you’ve toggled on the Klaviyo app embed and checked the Viewed Product setting for your integration. -
BigCommerce
Learn how to add the snippet manually -
Magento 1
Automatically added by Klaviyo -
Magento 2
Automatically added by Klaviyo -
WooCommerce
Automatically added by Klaviyo
If you are using BigCommerce, and thus added Viewed Product tracking manually, make sure that the snippet you’ve added to your site matches exactly with the snippets shown in the articles linked above. If you didn’t copy and paste the entire snippet, it will not work correctly.
If you’re using an ecommerce platform without a pre-built Klaviyo integration, or a custom platform, learn about how to enable Viewed Product tracking on our Developer site.
Test Viewed Product trackingTest Viewed Product tracking
To test that your Viewed Product tracking is set up properly, follow these steps:
- Navigate to your website
- On your homepage, add the following to the end of the URL, replacing testing.email@gmail.com with your email address:
?utm_email=testing.email@gmail.com
- Reload the page
- Navigate to a product page on your site
- Search in Klaviyo for your email address
You should see that a Klaviyo profile has been created for you (if one didn't exist already) and that this product view has been tracked on your activity feed.
To see a feed of all Viewed Product metrics over time:
- Click the Analytics dropdown in Klaviyo and select Metrics
- Filter by