Event vs pageview in ECommerce[ Edited ]
July 2016 - last edited July 2016
In Enhanced Ecommerce 'purchase' is always followed by a 'pageview'.
ga('ec:setAction', 'purchase',... )
ga('send', 'pageview'); // Send transaction data with initial pageview.
While 'setAction' is followed by 'event'
What is the different in this case between an 'event' and a 'pageview'? should I use 'event' only?
Re: Event vs pageview in ECommerce
In Enhanced Ecommerce data needs to be sent with a hit, either with a pageview of an event. The purchase data is sent with the initial pageview because the details are already collected when the page is loaded.
The Add to Cart action is triggered (on click) after the initial pageview has been sent so if you would send the data with another pageview you would send a duplicate pageview.
You can use event for purchase also if the initial pageview hit has been already sent.
Hope this explains it.
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