Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Track purchase data with Google Analytics e-commerce without hard coding product information

Posted on 2013-06-04
15
Medium Priority
?
371 Views
Last Modified: 2016-02-24
Our company markets many products online and we need to track the purchase of each one through Google Analytics. In the e-commerce tracking examples I find the product info is hard coded in the tracking script.  Due to the nature of my product and the design of third-party sites hosting the e-commerce, I cannot hard code all the product info. I prefer to get the data as part of an array and pass those values back to Google Analytics.

Assuming the data fields have intuitive names (product, price, quantity, total), can you help me code the tracking script for that? Below is the example of what I do not want to do:

_gaq.push(['_addTrans',
      '1234',       // order ID
      'StoreName',  // store
      '19.99',      // total
      '1.50',       // tax
      '3.00',       // shipping
      'Tulsa',    // city
      'Oklahoma',   // state
      'USA'         // country
]);
0
Comment
Question by:Randy Cole
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 3
15 Comments
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 39219165
I just started using this and not fully up to speed but I think you want tag manager http://google.com/tagmanager
0
 

Author Comment

by:Randy Cole
ID: 39219225
Thanks Padas. I'm going to research that and will get back in a few days. I will be back online next Monday and hopefully this will work. (I didn't want you to think I was dormant).
0
 

Author Comment

by:Randy Cole
ID: 39336274
Padas, it's been a while since I gave feedback. I am still trying to make this solution work. I do believe it will be the best possible one out there so I would like to award you full points. Thank you.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 39336385
Thank you!  
Some how the points did not come through.  Just request attention if you need to change this.
0
 

Author Comment

by:Randy Cole
ID: 39345558
I choose GOOD not because of Padas, but because I have not bullet-proof tested the solution. However, Padas gave a great suggestion.
0
 

Expert Comment

by:Juliamac
ID: 39979892
I'm looking for the same solution - and don't want to invest time if it didn't work - does anyone have any update or useful feedback here please?

many thanks
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 39979904
I have not had a chance to fully dive into this yet.  But have started reading.  Universal analytics has a lot of possibilities.  

http://analytics.blogspot.com/2014/04/universal-analytics-out-of-beta-into.html 

Also note, that their samples show static data, but it is up to you to auto generate the code just as you auto generate your code for products https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiEcommerce
0
 

Expert Comment

by:Juliamac
ID: 39979929
Hey thanks padas, I'm going to try this out. I have a paypal integration question re whether or not you should still append tracking  utm_nooverride=1to your 'thankyou' page if you're using e-commerce tracking. if you can answer this I'll repost it and give you the points!

thanks again
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 39979936
I don't have a good answer for that now.  Like I said, I have not had a chance to dive into this too deeply.  

I can't find it now, but I either saw a video or read an article about tracking peoples movement through a physical store using universal analytics.  Lots of possibilities https://www.youtube.com/watch?v=nCeJITfEhSk   

Thanks for the point offer, but no need.
0
 

Expert Comment

by:Juliamac
ID: 39979951
Ok that's great - thanks!
0
 

Expert Comment

by:Juliamac
ID: 40005963
Thanks but I have resolved this.
0
 

Expert Comment

by:Juliamac
ID: 40006097
Misread your comment in haste - apologies!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question