I am currently trying to add custom variables to my analytics report to see if there is any pattern with the ratio of customers that add to cart and the number of product images or delivery message on a product page.
I am currently trying to push these variables to the data layer using macros in GTM. I can see the data appearing in the macro but it doesn't seem to be appearing in the custom report that I have setup.
Can someone explain the best way of pushing custom variables into the data layer and then getting that data to appear in GUA reports?
I am currently trying to push to the data layer using the example below via product details impression:
'ecommerce': {
'detail': {
'products': [{
'name': 'Triblend Android T-Shirt',
'id': '12345',
'price': '15.25',
'brand': 'Google',
'category': 'Apparel',
'variant': 'Gray'
'dimension1' : 5
}]
}
}
});