Sending eCommerce tracking data
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:
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?
Re: Sending eCommerce tracking data
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).
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn