What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Track add to cart and checkout

Track add to cart and checkout

noah_haub
Shopify Partner
25 2 5

Hello,

 

I'm trying to track add-to-carts and checkouts on my stores.

I want to achieve this using Javascript. So I have a JS tracking script that I import into my theme.liquid file.

 

I noticed, that whenever I add something to my cart, a request to "myShopifyStore.com/cart/add" gets made. Is it possible for me to in a way intercept that request? Or to know when that event occurs?

 

Or am I completely on the wrong track here? How do you guys or how would you suggest tracking those kinds of events on stores?

 

Looking forward to hearing from you.

Kind regards,

Noah

Replies 0 (0)