0
votes


I want to send purchase event to Google Analytics Enhanced Ecommerce from "buy one click" form.
Do i need to do it the same as for order?
like this? or i need use something else for this purpose?

ga('ec:setAction', 'purchase', {
  id: 'T12345',
  affiliation: 'Google Store - Online',
  revenue: '28.03',
  tax: '2.14',
  shipping: '4.00',
  coupon: 'SUMMER2013'
});

ga('send', 'pageview');
1
Not sure what a "buy one click" is. Do you mean something like "one-click purchase", where the user, presumably logged in, just needs to click on one button and the purchase is instant? - nyuen
Yes."one-click purchase" - user3265922

1 Answers

1
votes

Yes, if you want to track the order purcahses you have to do it, but take care, usually the purchase is tracked on the "Thanks you" or "Confirmation" Page, if you implement this on the button you can duplicate the purchase