So I’m currently helping a brand installing Klaviyo extension for their Magento 2 website. I sent them this guideline to install https://help.klaviyo.com/hc/en-us/articles/115005254348. They already finished the installation and setup, and contacts as well as Magento metrics have synced to Klaviyo.
However, there are 2 metrics, Viewed Product and Active on site are not being tracked. I checked for console on a product page and see this error “require is not defined” as below:
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/8e0c5d4e-f94a-4e53-8ece-8371555fd1a1.png)
![](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/061232e4-faa8-4b46-b680-d8e833bb0aed.png)
Not sure what would cause this error and how to fix it. Since I don’t have access to their Magento server so I have to tell their devs on how to fix it. This is an example product page that shows the error for their site btw https://yvesrocher.vn/vn/anti-age-global-night-care-pot-50ml-y119896.html.