AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.4K members online now
4.4K 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

Analytics is not tracking ecommerce

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have created tag with track type: transaction using GTM and created trigger for pageView.
Have placed the below code in my page for tracking transaction data,

 

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
'transactionId': '1234',
'transactionAffiliation': 'Acme Clothing',
'transactionTotal': 38.26,
'transactionTax': 1.29,
'transactionShipping': 5,
'transactionProducts': [{
'sku': 'DD44',
'name': 'T-Shirt',
'category': 'Apparel',
'price': 11.99,
'quantity': 1
},{
'sku': 'AA1243544',
'name': 'Socks',
'category': 'Apparel',
'price': 9.99,
'quantity': 1
}]
});
</script>

 

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->

No issue found when i check with Google Tag Assistant but data not listed in GA reports.

 

1 Expert replyverified_user

Re: Analytics is not tracking ecommerce

Top Contributor
# 2
Top Contributor
Hi Sivaraj,

Your code is fine. Are you able to see the transaction details in Google Tag Assistant?

There is a always a delay in ecommerce tracking but If you've just enabled ecommerce tracking it can take up to 24 hours for the details to appear. Hope this helps.

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: Analytics is not tracking ecommerce

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks for your reply.

I have enabled eCommerce tracking in GA. In google tag assignment, i can see the data layer value as below.
dataLayer
[
{
"transactionId": "1234",
"transactionAffiliation": "Acme Clothing",
"transactionTotal": 38.26,
"transactionTax": 1.29,
"transactionShipping": 5,
"transactionProducts": [
{
"sku": "DD44",
"name": "T-Shirt",
"category": "Apparel",
"price": 11.99,
"quantity": 1
},
{
"sku": "AA1243544",
"name": "Socks",
"category": "Apparel",
"price": 9.99,
"quantity": 1
}
]
},
{
"gtm.start": 1450931346628,
"event": "gtm.js"
},
{
"event": "gtm.dom"
},
{
"event": "gtm.load"
}
]

I will wait for some more time and check.

Re: Analytics is not tracking ecommerce

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭

You can easily debug on the website with GA debugger:
https://chrome.google.com/webstore/detail/jnkmfdileelhofjcijamephohjechhna

You can check in chrome, console tab with 'Preserve log' turned ON.

 

See if Transaction and Item beacons are fired.

Re: Analytics is not tracking ecommerce

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Data started showing up in GA. Thanks Arnold M and GA Guru.