A space to discuss online store customization, theme development, and Liquid templating.
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