We are trying to track when someone signup on our website using form provided by klaviyo. Klaviyo provided following link to us for tracking such events in google analytics.
but the problem here is because the google analytics is setup by shopify and it is custom implementation the google global variable _gaq is not something that we are able to recognize on the site when we are trying to use.
We are trying to figure out how we can make it happen on shopify.
Please let me know if I can get some help on this.
Not sure if this will end up being the fix for everyone, but for us we realised that because we were using Shogun as a page builder, we actually needed to place the Klayvio script onto the theme.shogun.landing.liquid file, not the theme.liquid file, inside Shopify.
Once we placed the script on the Shogun file, the events started firing for us. Leaving here incase it is helpful.