Analytics
2.8K members online now
2.8K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Unable to populate enhanced ecommerce data in GA

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello!

 

I am new at GA and currently trying to implement enhanced ecommerce on my website.

- I have enabled enhanced ecommerce on my website in GA

- I am using Google Tag Manager to fire tags in a SPA application that uses Angularjs

Below is the ecommerce object i am sending:

dataLayer.push(

{
'ecommerce': {
'detail': {
'actionField': {
'id': 'GATESTGUID081020161600',
'revenue': '500',
'coupon':''
},
'products': [{
'category': 'Online Store',
'variant': 'Blue',
'name': 'Jeans',
'price': '100'
},
{
'category': 'Online Store',
'variant': 'Black',
'name': 'T-shirt',
'price': '400'
}]
}
},
'event': 'MyEcommerceEvent'
}

 

 

Yet I dont see any data populating in the Conversions/Ecommerce section in GA. I do see my events firing while using GTM's "Preview and Debug" feature and they are making all the way to GA. 

 

Can someone help me find any mistake I might be making?

 

Thanks!

1 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by topic author cit a
August 2016

Re: Unable to populate enhanced ecommerce data in GA

Top Contributor
# 2
Top Contributor

Hi,

 

If you want to track purchases, you need to use the "purchase" action instead of "detail".

 

Please check the updated code below:

 

<script>
dataLayer.push(
{
'ecommerce': {
'purchase': {
'actionField': {
'id': 'GATESTGUID081020161600',
'revenue': '500',
'coupon':''
},
'products': [{
'category': 'Online Store',
'variant': 'Blue',
'name': 'Jeans',
'price': '100'
},
{
'category': 'Online Store',
'variant': 'Black',
'name': 'T-shirt',
'price': '400'
}]
}
},
'event': 'MyEcommerceEvent'
});
</script>

Hope this helps, let me know if it works.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Unable to populate enhanced ecommerce data in GA

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks, will try it out.

Re: Unable to populate enhanced ecommerce data in GA

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
That worked perfectly! Thank you for your input.

One observation however: Product object's "variant" property don't seem to populate and "price" property populates intermittently. Any thoughts?

Re: Unable to populate enhanced ecommerce data in GA

Top Contributor
# 5
Top Contributor
Hi,

I'm glad it worked. There is a delay in processing in GA, give it a few hours and all details should appear.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital