So I tried to implement google tag manager following this: https://developers.google.com/tag-manager/enhanced-ecommerce. But none of my events are firing.
Nothing is being POSTed and nothing shows up in Tag manager admin ... Here is simple code snippet taken from tutorial:
dataLayer.push({
'event': 'addToCart',
'ecommerce': {
'currencyCode': 'EUR',
'add': { // 'add' actionFieldObject measures.
'products': [{ // adding a product to a shopping cart.
'name': 'Triblend Android T-Shirt',
'id': '12345',
'price': '15.25',
'brand': 'Google',
'category': 'Apparel',
'variant': 'Gray',
'quantity': 1
}]
}
}
});
I've installed Tag Assistant and it says that Tag Manager is loaded with correct container ID. Any ideas why nothing is POSTed and Tag manager admin console is empty?
Thnks!