Shopify Buy button and Google Tag manager

P.Segura Source

I'm trying to implement a shopify buy button code on a Squarespace site. I need to be able to collect analytics. I have tried a few things from basic regular expressions to using the ecommerce.js. I am at my wits end. so I want to know if there is code I could implement to help me properly check this information or if it isn't possible. I've used google analytics as well as trying to use a code snippet that called the object line/ line item and trying to pull that info. Hasn't really worked out though.



comments powered by Disqus