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

Enhanced eCommerce - Multiple actions same page

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

Using Analytics Enhanced Ecommerce Tracking.

What is the best way to handle multiple ecommerce actions on the same page?

I send a 'purchase' action on the confirmation page, but it is also the last page of my checkout funnel, so I think I also need to send a 'checkout' action with it's step.

 

I tried like this first...

ga('ec:setAction', 'purchase', {
  'id': '12345',
  'revenue': '10.00',
  'tax': '0.00',
  'shipping': '0.00',
  'coupon': ''
});
ga('ec:setAction','checkout', {'step': 4});
ga('send', 'pageview');

 However, it only sends the last action.

I next tried...

ga('ec:setAction', 'purchase', {
  'id': '12345',
  'revenue': '10.00',
  'tax': '0.00',
  'shipping': '0.00',
  'coupon': ''
});
ga('send', 'pageview');
ga('ec:setAction','checkout', {'step': 4});
ga('send', 'event');

That threw an error.

 

So I tried...

ga('ec:setAction', 'purchase', {
  'id': '12345',
  'revenue': '10.00',
  'tax': '0.00',
  'shipping': '0.00',
  'coupon': ''
});
ga('ec:setAction','checkout', {'step': 4});
ga('send', 'pageview');
 However, it only sends the last action.
I next tried...
ga('ec:setAction', 'purchase', {
  'id': '12345',
  'revenue': '10.00',
  'tax': '0.00',
  'shipping': '0.00',
  'coupon': ''
});
ga('send', 'pageview');
ga('send', 'event', 'ecommerce', 'checkout', {'step': 4});

Debugger said 'set called unknown field: "step"' so, I think that worked.

 

The demo store at https://enhancedecommerce.appspot.com/ sent the purchase on the "purchase" button and the checkout step on the confirmation page.

However, I want the user to get through the transaction before I send the order, so I think they both have to be on the confirmation page. 

 

Any suggestions?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Dan C
February 2017

Enhanced eCommerce - Multiple actions same page

Explorer ✭ ✭ ✭
# 2
Explorer ✭ ✭ ✭

Hi @Dan C,

If you want the the transaction code on confirmation page, you can only fire the setAction Purchase code. The setAction 'Purchase' would denote the last step of you checkout funnel.

Hope this helps,
Thanks,
Ritwik
 

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Dan C
February 2017

Enhanced eCommerce - Multiple actions same page

Explorer ✭ ✭ ✭
# 2
Explorer ✭ ✭ ✭

Hi @Dan C,

If you want the the transaction code on confirmation page, you can only fire the setAction Purchase code. The setAction 'Purchase' would denote the last step of you checkout funnel.

Hope this helps,
Thanks,
Ritwik
 

Re: Enhanced eCommerce - Multiple actions same page

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

I'd agree with you, but you see so many articles defining the confirmation step as a seperate step in the checkout funnel.

http://www.cardinalpath.com/google-analytics-shopping-stages-explained/

https://www.skyverge.com/blog/behavior-funnels-google-analytics/

It made me doubt my approach.

I can't see a benefit in defining an extra step that also holds the purchase event. Can you?