Update Metrics with API calls.
Our website can’t track the Checkout Started and Viewed Product metrics. I think this is because our checkout page is a one-page. Also the checkout does not trigger any actions in WooCom at that stage.
We have integrated with WooCom som it tracks when orders are completed etc.
I want to use the API to track when a user Views the Product or when a user goes to the checkout page. How would I do that?
We have the javascript script running in the header. What more should I add?