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

Sending eCommerce tracking data

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

I've recently implemented this https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measurin... specifically the transaction tracking using "'ec:addProduct'" and "'ec:setAction', 'purchase'", however it doesn't seem transactions are showing up in Analytics.

 

Reading further down the docs, it has this line:

 

ga('send', 'pageview');

 

However, surely if I add this, it would track the page view twice, as the page view tracking has already run? It's only on a confirmation page so not a huge deal, but I'm not sure if this is right?

 

With the older style eCommerce tracking, you had to call "ga('ecommerce:send');" to send the data off, is it now just done via the standard pageview action?

 

Thanks.

1 Expert replyverified_user

Re: Sending eCommerce tracking data

Top Contributor
# 2
Top Contributor
HI Matt R,

Could you possibly set up the ecommerce data (addProduct, setAction) before your page loads? This way your data gets set and sent after the initial page load.

Alternatively, you could send the ecomm data with a (non-interactive) event as well. So long as the ecomm is sent with a hit of some sort (ie. event or pageview).
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn