Klaviyo Integration

Hello,

I would like to implement a klaviyo integration with cs-cart. My goal is to have a better understanding of a user's activity in cs-cart that includes viewed products, Added to cart, Order placement, etc. I was forwarded documentation by Klaviyo but I am having some challenges.

https://help.klaviyo.com/hc/en-us/articles/115005082927-Integrate-a-Standard-Ecommerce-Platform#viewed-product3

Where would I need to make the necessary changes on the code so that I can get the event tracking setup. Klaviyo have a Javascript and REST API to work with.

Thank you