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

ecommerce:addItem or ec:addProduct

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm currently tracking transactions as described here https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#addItem

 

However, I now need to track whether a discount code was used for the transaction, as described here https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measurin...

 

This says to use ec:addProduct instead of ecommerce:addItem though; are these interchangeable? Neither page references the other, but they seem fairly simialr chunks of code that seem to be doing the same thing.

 

Any pointers?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Matt R
January 2016

Re: ecommerce:addItem or ec:addProduct

Top Contributor
# 2
Top Contributor
Hi Matt,

You are using traditional ecommerce tracking on your website. In order to track discount codes you need to upgrade to Enhanced ecommerce (your second link).

ecommerce:addItem is a traditional ecommerce tracking command
ec:addProduct is an enhanced ecommerce command

Hope this helps, let me know if you have more questions.

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

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Matt R
January 2016

Re: ecommerce:addItem or ec:addProduct

Top Contributor
# 2
Top Contributor
Hi Matt,

You are using traditional ecommerce tracking on your website. In order to track discount codes you need to upgrade to Enhanced ecommerce (your second link).

ecommerce:addItem is a traditional ecommerce tracking command
ec:addProduct is an enhanced ecommerce command

Hope this helps, let me know if you have more questions.

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

Re: ecommerce:addItem or ec:addProduct

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

I figured as much, just wanted to confirm. Thanks for the help!