E-commerce tracking using Google Analytics is likely the most useful feature of the program as it allows for in-depth analysis of important e-commerce metrics such as Revenues generated from products sold, specific product performance, conversion rates, average order value and more. If operating an e-commerce store, analysis of these metrics can result in significant performance gains as it makes it easier to understand customer behavior and areas for improvement. In order to plant the code, you will need access to your main web server hosting your web site coding in order to insert GA code where necessary. Remember, what we’re doing here is injecting information from your web server and funneling it to the GA server which spits out the data back to you in a form that is able to be accessed in a useful format. First, before any of these features can be utilized, the e-commerce feature must be enabled as shown below:
First Select Analytics Settings>Profile Settings>Edit Profile information>Enable E-commerce by selecting YES, an E-Commerce Site

Once E-commerce is enabled, GA tracking code must be added to your receipt page and then some additional code must be implemented to track and log each transaction. In order to track each transaction the following code must be implemented into the receipt page:
First add standard Google Analytics tracking code to the receipt page. This tracking code will vary based on your specific profile; however an example is as shown:
<script type=”text/javascript”>
var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(”UA-7799676-1″);
pageTracker._trackPageview();
</script>
Next on the receipt page after standard ga.js tracking code enter the following code before </script> enter the following code: Note that your merchant software provider is required to dynamically retrieve information from the fields below:
pageTracker._addTrans(
“Order ID-required”
“Affiliation or store name-optional”
“Total-required”
“Tax-optional”
“Shipping-optional”
“City-optional”
“State-optional”
“Country-optional”
);
Next add pageTracker._addItem(
“Order ID-required”
“SKU/Code-optional”
“Product Name-optional”
“Category-optional”
“Unit price-required”
“Quantity-required”
);
Lastly add: pageTracker._trackTrans();
Finish code with </script>
The trackTrans() argument is vital because it sends all information to GA server and records the transaction giving you the data. Essentially the trackTrans argument sends the data from your server to GA by requesting for the _utm file twice, once for the transaction taking place and once for each item purchased.
An example of what the coding for the final receipt page should look like:
<script type=”text/javascript”>
var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(”UA-7799676-1″);
pageTracker._trackPageview();
pageTracker._addTrans(
“Order ID-required”
“Affiliation or store name-optional”
“Total-required”
“Tax-optional”
“Shipping-optional”
“City-optional”
“State-optional”
“Country-optional”
);
pageTracker._addItem(
“Order ID-required”
“SKU/Code-optional”
“Product Name-optional”
“Category-optional”
“Unit price-required”
“Quantity-required”
);
pageTracker._trackTrans();
</script>
Repeat this procedure at the receipt page of each product sold. Remember that code will need to dynamically retrieve the fields from your merchant software
What your E-commerce Report Tells you:
After E-commerce code is processed and working properly, essentially what you will see is an in-depth analysis of different revenue metrics. Navigating through the left hand tabs allows you to sort through specific product performance, average order values, transactions, visits to purchase, and days to purchase information.

Tags: E-commerce with Google Analytics, Google Analytics, Implementing E-commerce code, Sam Enriquez, Using E-commerce
You can follow any responses to this entry through the RSS 2.0 feed.

Great entry, however i just wanted to tell you, that i had some errors when viewing in IE. Is it cool to leave a link to my
How-do-you-do, just wanted you to know I have added your site to my Google bookmarks because of your extraordinary blog layout. But in earnest, I think your site has one of the freshest theme I’ve came across. It really helps make reading your blog a lot simpler.
Thank you for the sensible critique. Me and my neighbour were just setting up to do some research about this. I am very grateful to see such great information being shared freely out there.
Great work! I like what you do here, been following for a while. I have also something to share…Do you remember when adwords was 2/5 cents? Well it is back! http://tinyurl.com/spanishgold
Good Day!!! resoluted.com is one of the most outstanding resourceful websites of its kind. I take advantage of reading it every day. resoluted.com rocks!
I use Digg to find stories all the time. It
Wow that is a great point, thanks for pointing that out! I’ll be back again soon, I hope to see some more great content in the future from you!
This is standard in terms of search engine optimization. Nothing looks to annoy upon it than this!Coincidentally, this is just what was forewarned about several years ago at the blackhat about search engines in 1995!
Thanks for the nice post. I always try to bookmark webmaster or website related posts like this one.
very nice post, thanks
It has been a hard job to find such informative and important tags from net. I went through your post, which made me update about online marketing products. I’ve been concerned with these all, since so long and doing work for my friend to promote his online business.
@ Mike, yea, I can see why you did that.I enjoyed that part but I’m not so demanding like my dad when it comes to these things. He always calls me a “joke” when I was young but home. LOL. Aaaanyways…what ’bout you? Does your dad think the same way? xD
VERY GOOD ARTICLE WELL WRITTEN http://bloggles.org
Arrg, my mouse got jammed. What I was about to say, was that this is a terrific post. Very insightful and informative at the same time.
This is a really great post, I’m glad that you put this content out there for everyone, and I’m sure that others feel the same way!
Hosted by http://www.wiredtree.com/243-0-3-28.html
Hi, I found your blog on msn. I’m pretty happyto have found your websitebecause I think it is informative! Really good teaching material for my students. Ruth
Hi there, I found your blog via Google while searching for first aid for a heart attack and your post looks very interesting for me.
In the year 2010 was a lot of seo contests held by the various parties to promote their services
Wow, thanks for sharing your perspective. I think I need to reconsider my position in light of your helpful comments.
Simply, the info is in fact the greatest on this worthy topic. I with your conclusions and willdesperately anticipate your upcoming updates. Saying thanks will not be enough, for the extraordinary clarity in your writing. I will immediately grab your rss feed to stay informed of any updates. Admirable work and much success!
… track backe bei http://honeylokke.blogge.rs/ ……
bon , votre blog site disposition style est vraiment bon , Je suis recherche pour obtenir un nouveau disposition style pour mon moncler doudoune individuels weblog , j’aime vôtre, maintenant Je vais à aller chercher le même design !…
Greate…
It’s such a great site! http://adampnatkinson.insanejournal.com/805.html Great post, I just bookmarked it on Digg….
Greate…
It’s such a great site! http://evelyn071.sweetcircles.com/2011/06/24/lpga-standout-blomqvist-explains-naming-of-son-elmo/ Great post, I just bookmarked it on Digg….
Greate…
It’s such a great site! http://barbaraxgfishbc.insanejournal.com/2828.html Great post, I just bookmarked it on Digg….
really good article…
I have spent a bit of time going through your posts, more than I should have but I must say, http://www.videomnet.net/read_blog/1304/secondhand-gown, many Thanks….
really good article…
I have spent a bit of time going through your posts, more than I should have but I must say, http://www.soulcast.com/post/show/1111424/Black-brawl-gowns-This-year-highlight-the-evening, many Thanks….
cold vs flu……
[...]while the sites we link to below are entirely unrelated to ours, we consider they may be worth a read, so possess a look[...]…