Thank you. I added the following code using loadposition to load a custom module created with Sourcer from RegularLabs tags but the event did not get picked up although the code is displaying in the source of the page. Do you have any idea why? The page is located at
www.veggievore.com/dvd/why-we-do-what-we-do
The code I added is
<script>
// The code below will record a GA event for every Hikashop Product Page Page View
console.log(“GA Page View”);
ga(‘send’, ‘event’, ‘Landing Page’, ‘Page View’, window.location.pathname);
}
// The code below will record an event for every Hikashop Add to Cart interaction
window.Oby.registerAjax('cart.updated', function(params) {
console.log(“Add to Cart Event Occurred”);
// your code to trigger the GA event
ga(‘send’, ‘event’, ‘Landing Page’, ‘Add to Cart’, window.location.pathname);
}
</script>