I am trying to assign product details(name, id, variant, quantity, brand) , all as an array to enhanced e-commerece variable in Google Analytics Tag.
I have enabled the Ecommerce & Tealium Event extensions, then created a set data value extension, in which the UDO variables are being assigned with product details , ga_event,action,label and category are being updated and tealium_event = product_view is assigned.
At Ga tag , under variable mapping, we are assigning the product UDO variables to the respective GA destintations.
But in the GA event calls, Ecommerce varaibles are not getting populated. However , we can see the GA event, action, label getting populated.
Can anyone please help on the same ??
03-04-2020 09:52 AM
If you are using the analytics.js version of the GA tag, you will need to enable enhanced e-commerce in the tag configuration section for the variables to show up in the GA collect call.
If you are using the gtag.js version of the GA tag, the variables will be present in the GA collect call if you have provided the necessary mappings and if the variables are available on the page. i.e. product id, variant, etc. should ideally be populated in the datalayer on your pdp page and if the mappings are accurate, those variables will be sent to the collect call.