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