I’m having an issue installing the added to cart metric.
The alternative snippet with class notation solution has not worked for me either.
Any ideas why this is happening?
Best answer by david.to
Building on top of what
- That the Viewed Product/Web Tracking code is installed directly above the Add to Cart code
- Ensuring that the Viewed Product code is triggering correctly
- Cookied your Browser prior to testing both the Viewed Product and Add to Cart code
The reason we recommend double-checking these is because the Add to Cart code works in conjecture with the Viewed Product code so if either of these codes were not installed or not installed correctly, it would effect how the Add to Cart code functions; or the lack of functionality. Similarly, both the Viewed Product and Add to Cart code can only be triggered so long as your browser is cookied which would be how Klaviyo identifies the contact who triggered these events.