<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Analytics Talk&#187; Ecommerce posts &#8211; Analytics Talk</title>
	<atom:link href="http://cutroni.com/blog/category/ecommerce/feed/" rel="self" type="application/rss+xml" />
	<link>http://cutroni.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 19 Jul 2010 21:01:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://cutroni.com/blog/?pushpress=hub'/>
		<item>
		<title>Google Analytics E-Commerce Tracking Pt. 4: Tracking Lead Gen Forms</title>
		<link>http://cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/</link>
		<comments>http://cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 00:55:02 +0000</pubDate>
		<dc:creator>Justin Cutroni</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Tracking]]></category>
		<category><![CDATA[e-commerce-tracking]]></category>
		<category><![CDATA[google-analytics]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://www.epikone.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/</guid>
		<description><![CDATA[One thing that I try to stress in my client work and training is that Google Analytics is a platform. If you understand the framework you can use it to track many different things. E-commerce tracking is one part of Google Analytics that is particularly flexible and can be used many different ways. There&#8217;s a [...]<p><a href="http://cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/">Google Analytics E-Commerce Tracking Pt. 4: Tracking Lead Gen Forms</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>
]]></description>
			<content:encoded><![CDATA[<p>One thing that I try to stress in my client work and training is that Google Analytics is a platform.  If you understand the framework you can use it to track many different things.  E-commerce tracking is one part of Google Analytics that is particularly flexible and can be used many different ways.</p>
<p>There&#8217;s a lot you can do with e-commerce tracking even if you&#8217;re a non-commerce site.  You can use the e-commerce reporting to monetize lead gen forms and measure visitor interactions with a form.</p>
<h2>The Need</h2>
<p>Let&#8217;s say we have a lead gen site that sells books, cars and jets (a completely unlikely combination).  The site has a very simple lead generation form that let&#8217;s the user choose the item they are interested in and their time frame for purchase.</p>
<p>We want to measure which fields visitors fill out, the values they choose, and the overall value of the form.</p>
<h2>The Implementation</h2>
<p>To measure the above I created a simple form using HTML and JavaScript.  Here&#8217;s what the form looks like:</p>
<p><iframe src="http://sandbox.epikone.us/ecomm-lead.html" width="500" height="250"></iframe></p>
<p>And here is the source of the above form:</p>
<p><iframe src="http://sandbox.epikone.us/ecomm-lead-src.txt" width="500" height="250"></iframe></p>
<p>When the visitor submits the form the JavaScript code assigns a value to both the item that the visitor chose and their time frame for purchase.  It then calculates a total value for the form by summing both values.</p>
<p>In this example a form that includes a high priced item (like a jet) and a short time frame (buy now!) is worth more than a low priced item with an unknown time frame.  I chose arbitrary values for each item and each time frame, but you could derive these values from business data.</p>
<p>After manipulating the data the code places both pieces of information in the GA e-commerce format where they are happily whisked away to Google.</p>
<p>I decided to do all of the calculations in JavaSript because it was easy.  You could create a &#8220;form calculator&#8221; on the server side, but you would still need to format the data like a transaction in order to send it to Google Analytics.</p>
<h2>The Data &#038; Analysis</h2>
<p>Remember, we&#8217;re using the e-commerce framework to equate products to form choices.  So any report that displays product information will really show form elements and their values.</p>
<p>The best example of this is the E-Commerce > Product Performance > Product Overview report.  This report simply lists all of the products that were purchased in all of the transactions.</p>
<p>Based on the way I created the code, each &#8220;product&#8221; in the report will be a combination of the item that he visitor is interested in and their time frame for purchase.</p>
<p><a class="imagelink" href="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-4_560x214shkl.png" title="Google Analytics Prodcut Performance Report."><img id="image492" src="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-4_560x214shkl.png" alt="Google Analytics Prodcut Performance Report." /></a></p>
<p>How is this data actionable?  This information is the direct voice of the visitor.  The visitor is literally telling us what they want and when they want it.</p>
<p>From the report above we can see that everyone wants a jet.  Most visitors did not specify a time frame for purchase but one visitor wanted a jet today.  I&#8217;d call that a hot lead!</p>
<p>Another report that is very useful is the E-commerce > Transactions report.  In our configuration this report lists all of the forms that have been submitted and the value of each.</p>
<p><a class="imagelink" href="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-2_560x259shkl.png" title="Google Analytics Transaction Report for Lead Gen Site."><img id="image490" src="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-2_560x259shkl.png" alt="Google Analytics Transaction Report for Lead Gen Site." /></a></p>
<p>The great thing about this report is we can drill into each transaction and review the specific form details.  If I click on the first transaction in the report above I get the details of the form (see image below).</p>
<p><img id="image491" src="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-3_560x179shkl.png" alt="Individual Google Analytics Transaction Detail" /></p>
<p>I know this example is not that exciting, but image a form with many, many fields.  You would be able to see all of the visitor&#8217;s choices and better understand what made a specific form valuable.</p>
<p>The effect of using e-commerce tracking for a lead gen form goes far beyond the e-commerce reports.  Remember many reports in Google Analytics have an e-commerce tab that displays monetary metrics related to the data in a report.</p>
<p>For example, the Traffic Source > All Traffic Sources report will show metrics like average order value, transactions and revenue for each traffic source.  If you use standard goal tracking you will only get conversion rate.  I think this is far more valuable.</p>
<p><img id="image493" src="http://www.cutroni.com/blog/wp-content/uploads/2008/07/picture-3_560x139shkl.png" alt="Google Analytics Traffic Sources report for Lead Gen." /></p>
<h2>A Reminder</h2>
<p>You&#8217;ve probably figured out that you can use e-commerce to collect many different types of data.  Please be mindful of your site&#8217;s visitors and the Google Analytics privacy policy.  It is not permitted to collect personally identifiable information using Google Analytics.</p>
<p>This is part 4 in a multi-part series on e-commerce tracking.  You may be interested in parts 1, 2 and 3:</p>
<p><a href="http://www.cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">Google Analytics E-Commerce Tracking Pt. 1: How It Works</a><br />
<a href="http://www.cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/">Google Analytics E-Commerce Tracking Pt. 2: Installation &#038; Setup</a><br />
<a href="http://www.cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/">Google Analytics E-Commerce Tracking Pt. 3: Why EVERYONE Should Use It</a></p>
<p><a href="http://cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/">Google Analytics E-Commerce Tracking Pt. 4: Tracking Lead Gen Forms</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms%20-%20http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F" title="Twitter"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms" title="StumbleUpon"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;bodytext=One%20thing%20that%20I%20try%20to%20stress%20in%20my%20client%20work%20and%20training%20is%20that%20Google%20Analytics%20is%20a%20platform.%20%20If%20you%20understand%20the%20framework%20you%20can%20use%20it%20to%20track%20many%20different%20things.%20%20E-commerce%20tracking%20is%20one%20part%20of%20Google%20Analytics%20that%20is%20particu" title="Digg"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;notes=One%20thing%20that%20I%20try%20to%20stress%20in%20my%20client%20work%20and%20training%20is%20that%20Google%20Analytics%20is%20a%20platform.%20%20If%20you%20understand%20the%20framework%20you%20can%20use%20it%20to%20track%20many%20different%20things.%20%20E-commerce%20tracking%20is%20one%20part%20of%20Google%20Analytics%20that%20is%20particu" title="del.icio.us"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;t=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms" title="Facebook"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;source=Analytics+Talk+&amp;summary=One%20thing%20that%20I%20try%20to%20stress%20in%20my%20client%20work%20and%20training%20is%20that%20Google%20Analytics%20is%20a%20platform.%20%20If%20you%20understand%20the%20framework%20you%20can%20use%20it%20to%20track%20many%20different%20things.%20%20E-commerce%20tracking%20is%20one%20part%20of%20Google%20Analytics%20that%20is%20particu" title="LinkedIn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F" title="FriendFeed"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F" title="Sphinn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;annotation=One%20thing%20that%20I%20try%20to%20stress%20in%20my%20client%20work%20and%20training%20is%20that%20Google%20Analytics%20is%20a%20platform.%20%20If%20you%20understand%20the%20framework%20you%20can%20use%20it%20to%20track%20many%20different%20things.%20%20E-commerce%20tracking%20is%20one%20part%20of%20Google%20Analytics%20that%20is%20particu" title="Google Bookmarks"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms" title="Reddit"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;body=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F" title="email"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F" title="Technorati"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F07%2F02%2Fgoogle-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms%2F&amp;submitHeadline=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%204%3A%20Tracking%20Lead%20Gen%20Forms&amp;submitSummary=One%20thing%20that%20I%20try%20to%20stress%20in%20my%20client%20work%20and%20training%20is%20that%20Google%20Analytics%20is%20a%20platform.%20%20If%20you%20understand%20the%20framework%20you%20can%20use%20it%20to%20track%20many%20different%20things.%20%20E-commerce%20tracking%20is%20one%20part%20of%20Google%20Analytics%20that%20is%20particu&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Google Analytics E-Commerce Tracking Pt. 3: Why EVERYONE Should Use It</title>
		<link>http://cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/</link>
		<comments>http://cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 20:36:14 +0000</pubDate>
		<dc:creator>Justin Cutroni</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Tracking]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[google-analytics]]></category>

		<guid isPermaLink="false">http://www.epikone.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/</guid>
		<description><![CDATA[The Google Analytics e-commerce reports contain two specific reports that I believe are critical to understanding the behavior of site visitors: Days to Purchase and Visits to Purchase. These reports are the only way to measure the online sales cycle using Google Analytics. But, as their names imply, these reports are focused on commerce. But [...]<p><a href="http://cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/">Google Analytics E-Commerce Tracking Pt. 3: Why EVERYONE Should Use It</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img id="image486" src="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-7.png" alt="Google Analytics Visits to Purchase and Time to Purchase reports" align="right" hspace="7" />The Google Analytics e-commerce reports contain two specific reports that I believe are critical to understanding the behavior of site visitors: Days to Purchase and Visits to Purchase.  These reports are the only way to measure the online sales cycle using Google Analytics.</p>
<p>But, as their names imply, these reports are focused on commerce.  But not all websites are commerce based.  What if we have a lead gen website?  We want to measure how long it takes to get a lead, not make a purchase.</p>
<p>Herein lies the problem: there is no &#8220;time to conversion&#8221; or &#8220;visits to conversion&#8221; report in Google Analytics.</p>
<p>To get around this little issue <strong>EVERYONE</strong> should use GA e-commerce tracking to measure conversions, regardless of site purpose.</p>
<h2>The Reports</h2>
<p>Before I talk about how to set up e-commerce tracking for a non-commerce site let&#8217;s discuss the Visits to Purchase and Time to Purchase reports and how they can be used.   Remember, in this application of e-commerce tracking &#8220;purchases&#8221; are really just conversions.</p>
<p>Here&#8217;s the first report we want to use, the Visits to Purchase report.</p>
<p><img id="image484" src="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-5_560x204shkl.png" alt="Google Analytics Visits to Purchase Report" /></p>
<p>The Visits to Purchase report shows how many visits a visitor generated before they converted.  The chart above shows that most visitors convert on the first visit.  This is good.  It means that visitors come to the site, find what they need and convert.  This can also be very bad, it means that we have one chance to get someone to convert.  If they do not convert on the first visit then we may not get another chance.</p>
<p>Let&#8217;s pair this data with the Time to Purchase report to better understand how much time passes between a visitor&#8217;s initial visit and their &#8220;conversion&#8221; visit.</p>
<p><img id="image485" src="http://www.cutroni.com/blog/wp-content/uploads/2008/06/picture-6_560x141shkl.png" alt="Google Analytics Days to Purchase report" /></p>
<p>The data indicates that everyone converts on Day 0, or the current day.  This makes sense since most everyone converts on their first visit.</p>
<p>But what if most conversion occurred on the second visit?  If conversions happen on the second visit, but still on Day 0, it means that visitors are probably doing some research prior to conversion and are checking another site on the same day before returning to our site to convert.</p>
<p>Knowing how many visits to a site it takes to convert a visitor is very actionable.  What if the  data indicates that visitors convert after the third visit?   This means that we need to get a visitor back the site a third time to have any chance for a conversion.  We may change our keyword bidding strategy to target visitors that are further along in the conversion cycle or we might try to collect an email address to send them additional information via email.</p>
<p>The key concept is that this data explains how many times we need to get the visitor to return to the site in order to generate a conversion.</p>
<p>If we do not using the e-commerce code to track &#8220;conversions&#8221; then we do not have access to this information.</p>
<h2>One More Reason to use E-Commerce</h2>
<p>There is one other reason why I like to use e-commerce tracking to track conversions. Google Analytics will only track one conversion per visit.  If a visitor converts multiple time at the same goal Google Analytics will only count one conversion.</p>
<p>However, GA will track multiple purchases per visit. Is this a big deal? Not really. But if you want to make the data as accurate as possible, and have a goal that can be achieved multiple times per visit, then try using a transaction to track it.</p>
<p>Plus, using e-commerce to track conversions adds an extra &#8220;goal&#8221; to each profile, bringing the total to 5. Woo hoo!</p>
<h2>Installation &#038; Setup</h2>
<p>There are three basic steps necessary to use the e-commerce tracking code on a non e-commerce site.  While the steps are similar to those described in <a href="http://www.cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/">my previous post on installation</a> there is one big difference.  Let&#8217;s walk through each step.</p>
<h3>Step 1: Activate the Reports</h3>
<p>The first step in setting up GA e-commerce tracking is enabling the e-commerce reports. Log into GA and edit the profile settings. Specify that your site is an e-commerce site. This enables the e-commerce reports.</p>
<p><img id="image465" src="http://www.cutroni.com/blog/wp-content/uploads/2008/01/20080120-ecom-reports_530x353shkl.jpg" alt="Google Analytics E-Commerce Reports" /></p>
<p>Remember, the e-commerce reports is a profile setting that is &#8220;off&#8221; by default. You’ll need to activate the reports for each new profile you create.</p>
<h3>Step 2: Tag your Receipt Page</h3>
<p>I know this seems like a silly step, but make sure you add the GA tracking code you your receipt page. You must have the standard GA tracking code on your receipt page in order to track purchases.</p>
<h3>Step 3: Install the Code</h3>
<p>This is where the installation differs from the standard installation.  To measure purchases with Google Analytics you need to add the following code to your thank you page.  The code does not need to be modified in any way.</p>
<pre>
<code>&lt;script type="text/javascript"&gt;
   var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
   document.write("&lt;script src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/javascript'&gt;" +
"&lt;/sc" + "ript&gt;");
&lt;/script&gt;

&lt;script type='text/javascript'&gt;
var pageTracker = _gat._getTracker("UA-XXXXX-1");
pageTracker._setLocalRemoteServerMode();
pageTracker._initData();
pageTracker._trackPageview();

// Some simple code to create a fake order ID
var timeObj        = new Date;
var unixTimeMs   = timeObj.getTime();
var unixTime      = parseInt(unixTimeMs / 1000);
var orderID        = pageTracker._visitCode() + '-' + unixTime;

pageTracker._addTrans(
      orderID, // required
      "",
      "",
      "",
      "",
      "",
      "",
      ""
);

pageTracker._addItem(
      orderID, // required
      "",
      "",
      "",
      "1",  // required
      "1"   //required
);

pageTracker._trackTrans();
&lt;/script&gt;</code>
</pre>
<p>You&#8217;ll notice that I added the e-commerce code to the regular GA page tag, but you can add it anywhere on the page.  I just like keeping things together, it seems more organized to me.</p>
<p>You&#8217;ll also notice there is a lot of missing information in the above code.  I&#8217;ve added the bare minimum for the tracking to still work. Don&#8217;t worry about the missing data, GA will still track a transaction, i.e. a conversion, and we will be able to use the Visits to Purchase and Time to Purchase reports.</p>
<p>That&#8217;s it.  Once the code has been added you&#8217;ll start to see some data in your Visits to Purchase and Days to Purchase reports.</p>
<p>Got an interesting story to share about your e-commerce implementation?  I would love to hear about it below in a comment.</p>
<p>Remember, this is part 3 in a multi-part series on e-commerce tracking.  You may be interested in parts 1, 2 and 4:</p>
<p><a href="http://www.cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">Google Analytics E-Commerce Tracking Pt. 1: How It Works</a><br />
<a href="http://www.cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/">Google Analytics E-Commerce Tracking Pt. 2: Installation &#038; Setup</a><br />
<a href="http://www.cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/">Google Analytics E-Commerce Tracking Pt. 4: Tracking Lead Gen Forms</a></p>
<p><a href="http://cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/">Google Analytics E-Commerce Tracking Pt. 3: Why EVERYONE Should Use It</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It%20-%20http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F" title="Twitter"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It" title="StumbleUpon"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;bodytext=The%20Google%20Analytics%20e-commerce%20reports%20contain%20two%20specific%20reports%20that%20I%20believe%20are%20critical%20to%20understanding%20the%20behavior%20of%20site%20visitors%3A%20Days%20to%20Purchase%20and%20Visits%20to%20Purchase.%20%20These%20reports%20are%20the%20only%20way%20to%20measure%20the%20online%20sales%20cycl" title="Digg"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;notes=The%20Google%20Analytics%20e-commerce%20reports%20contain%20two%20specific%20reports%20that%20I%20believe%20are%20critical%20to%20understanding%20the%20behavior%20of%20site%20visitors%3A%20Days%20to%20Purchase%20and%20Visits%20to%20Purchase.%20%20These%20reports%20are%20the%20only%20way%20to%20measure%20the%20online%20sales%20cycl" title="del.icio.us"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;t=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It" title="Facebook"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;source=Analytics+Talk+&amp;summary=The%20Google%20Analytics%20e-commerce%20reports%20contain%20two%20specific%20reports%20that%20I%20believe%20are%20critical%20to%20understanding%20the%20behavior%20of%20site%20visitors%3A%20Days%20to%20Purchase%20and%20Visits%20to%20Purchase.%20%20These%20reports%20are%20the%20only%20way%20to%20measure%20the%20online%20sales%20cycl" title="LinkedIn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F" title="FriendFeed"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F" title="Sphinn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;annotation=The%20Google%20Analytics%20e-commerce%20reports%20contain%20two%20specific%20reports%20that%20I%20believe%20are%20critical%20to%20understanding%20the%20behavior%20of%20site%20visitors%3A%20Days%20to%20Purchase%20and%20Visits%20to%20Purchase.%20%20These%20reports%20are%20the%20only%20way%20to%20measure%20the%20online%20sales%20cycl" title="Google Bookmarks"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It" title="Reddit"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;body=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F" title="email"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F" title="Technorati"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F06%2F25%2Fgoogle-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it%2F&amp;submitHeadline=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%203%3A%20Why%20EVERYONE%20Should%20Use%20It&amp;submitSummary=The%20Google%20Analytics%20e-commerce%20reports%20contain%20two%20specific%20reports%20that%20I%20believe%20are%20critical%20to%20understanding%20the%20behavior%20of%20site%20visitors%3A%20Days%20to%20Purchase%20and%20Visits%20to%20Purchase.%20%20These%20reports%20are%20the%20only%20way%20to%20measure%20the%20online%20sales%20cycl&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Google Analytics E-Commerce Tracking Pt. 2: Installation &amp; Setup</title>
		<link>http://cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/</link>
		<comments>http://cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 02:23:31 +0000</pubDate>
		<dc:creator>Justin Cutroni</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Tracking]]></category>
		<category><![CDATA[e-commerce-tracking]]></category>
		<category><![CDATA[google-analytics]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://www.epikone.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/</guid>
		<description><![CDATA[This is part 2 in my series on Google Analytics e-commerce tracking. In part 1 I described, at a conceptual level, how GA e-commerce tracking works. In this post I&#8217;ll get into the specifics of the code and how to install it. This isn&#8217;t the most exciting stuff (that will be part 3), but a [...]<p><a href="http://cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/">Google Analytics E-Commerce Tracking Pt. 2: Installation &amp; Setup</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This is part 2 in my series on <a href="http://google.com/analytics">Google Analytics</a> e-commerce tracking.  In <a href="http://www.cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">part 1</a> I described, at a conceptual level, how GA e-commerce tracking works.  In this post I&#8217;ll get into the specifics of the code and how to install it.</p>
<p>This isn&#8217;t the most exciting stuff (that will be part 3), but a correct setup leads to correct data. :)</p>
<h2>Step 1: Activate the Reports</h2>
<p>The first step in setting up GA e-commerce tracking is enabling the e-commerce reports.  Log into GA and edit the profile settings.  Specify that your site is an e-commerce site.  This activates the e-commerce reports.</p>
<p><img id="image465" src="http://www.cutroni.com/blog/wp-content/uploads/2008/01/20080120-ecom-reports_530x353shkl.jpg" alt="Google Analytics E-Commerce Reports" /></p>
<p>There are other e-commerce settings that don&#8217;t get much use (unless you&#8217;re an international site).  You can specify one of 25 different  currencies (wow!) and the number of decimal places you would like displayed (1,2 or 3).  Even if you use USD you can specify 3 decimal places.  Go ahead and try it, it&#8217;s interesting.</p>
<p>Remember, e-commerce reports is a profile setting that is &#8220;off&#8221; by default.  You&#8217;ll need to activate the reports for each new profile you create.</p>
<h2>Step 2: Tag your Receipt Page</h2>
<p>I know this seems like a silly step, but make sure you add the GA tracking code you your receipt page.  You must have the standard GA tracking code on your receipt page in order to track transactions.  The reason is that the e-commerce tracking code is stored in the ga.js.  If this file is not included on the receipt page then you can&#8217;t track transactions.</p>
<h2>Step 3: Install the Code</h2>
<p>This is the hard part: code construction.  As we learned in <a href="http://www.cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">part 1</a>, GA uses a JavaScript collection technique to track e-commerce transactions.  Your server code must inject transaction information into the GA JavaScript before sending the receipt page back to the browser.  When the receipt page renders in the visitor&#8217;s browser the JavaScipt executes and sends the transaction info to GA.</p>
<p><img id="image466" src="http://www.cutroni.com/blog/wp-content/uploads/2008/01/20080121-legos_530x195shkl.jpg" alt="Get ready for some construction." /></p>
<p>Let&#8217;s take a look at the code:</p>
<pre>
<code>&lt;script type="text/javascript"&gt;
pageTracker._addTrans(
      "order-id", // required
      "affiliate or store name",
      "total",
      "tax",
      "shipping",
      "city",
      "state",
      "country"
);

pageTracker._addItem(
      "order-id", // required
      "SKU",
      "product name",
      "product category",
      "unit price",  // required
      "quantity"  //required
);

pageTracker._trackTrans();
&lt;/script&gt;</code>
</pre>
<p><img id="image467" src="http://www.cutroni.com/blog/wp-content/uploads/2008/01/20080121-parts_200x343shkl.jpg" alt="The three parts of GA e-commerce tracking" align="right" hspace="7" />The first thing that you&#8217;ll notice is that there are three distinct parts to the JavaScript.  Each is a different <em>method</em>.  The first section, identified by the <code>_addTrans()</code> method, creates the transaction and stores all the information about the transaction.</p>
<p>The second section, identified by the <code>_addItem()</code> method, is used to add an item to the transaction.  You need to create an <code>_addItem()</code> section for each different item, or SKU, in the transaction.  The order ID in the <code>_addItem()</code> method must be the same order ID used in the <code>_addTrans()</code> method.  That&#8217;s how GA ties an item to a transactions.</p>
<p>The final section is the <code>_trackTrans()</code> method.  This method actually sends the data to GA by requesting the __utm.gif file once for the transaction and once for each item in the transaction.  So if you have 3 different SKUs in a transaction there will be 4 requests fot the __utm.gif.</p>
<p>The above JavaScript can appear anywhere on your receipt page.  Just make sure that it appears <em>after</em> the main GA page tag.  The reason is that the e-commerce code is part of the <code>pageTracker</code> object.  If the <code>pageTracker</code> object has not been created then you can&#8217;t call the e-commerce methods.</p>
<p>Just to reiterate a point: you must create server side code that outputs the transaction data in the format above.  If you do not have access to your shopping cart code, and your cart provider does not provide e-commerce tracking, then you may be out of luck.</p>
<p>Once the code has been installed you should begin to see e-commerce data in your reports.</p>
<h2>Notes and Suggestions</h2>
<p>Like many things in Google Analytics, there are some things that can trip you up:</p>
<ul>
<li>If you do not wish to pass a certain piece of data to GA then do not add anything between the quotation marks.  The only required fields are the order ID, the unit price of each item and the quantity of each item.  Everything else is optional.</li>
<li>Do not use currency identifiers or commas (to separate thousands) in any of the numeric fields (i.e. total, tax, shipping).  These characters have caused problems in the past.</li>
<li>Each piece of transaction data that you send to Google Analytics becomes a data element in GA, just like any other piece of data in GA (geo data, campaign data, browser data, etc.).  You can do all sorts of neat things with filters and e-commerce data.  More on this later.</li>
<li>The affiliate or store name field is no longer used in the GA reports.  However, the data is still collected by GA so you can use it in a filter.</li>
<li>The transaction geographic data collected by GA is no longer used BUT it is collected.  Google Analytics determines the location of the user, and thus their transaction, based on their IP address.  The old version of the GA tracking code used the data specified in the transaction. Like the affiliate field, the data can be used in a filter.</li>
</ul>
<h2>Up Next</h2>
<p>In the next post I&#8217;m going to talk about some creative ways to use e-commerce tracking.  Specifically, why I believe that everyone should use e-commerce tracking on their website.</p>
<p>This is part 1 in a multi-part series on e-commerce tracking:</p>
<p><a href="http://www.cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">Google Analytics E-Commerce Tracking Pt. 1: How It Works</a><br />
<a href="http://www.cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/">Google Analytics E-Commerce Tracking Pt. 3: Why EVERYONE Should Use It</a><br />
<a href="http://www.cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/">Google Analytics E-Commerce Tracking Pt. 4: Tacking Lead Gen Forms</a></p>
<p><a href="http://cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/">Google Analytics E-Commerce Tracking Pt. 2: Installation &amp; Setup</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup%20-%20http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F" title="Twitter"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup" title="StumbleUpon"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;bodytext=This%20is%20part%202%20in%20my%20series%20on%20Google%20Analytics%20e-commerce%20tracking.%20%20In%20part%201%20I%20described%2C%20at%20a%20conceptual%20level%2C%20how%20GA%20e-commerce%20tracking%20works.%20%20In%20this%20post%20I%27ll%20get%20into%20the%20specifics%20of%20the%20code%20and%20how%20to%20install%20it.%0A%0AThis%20isn%27t%20the%20most%20ex" title="Digg"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;notes=This%20is%20part%202%20in%20my%20series%20on%20Google%20Analytics%20e-commerce%20tracking.%20%20In%20part%201%20I%20described%2C%20at%20a%20conceptual%20level%2C%20how%20GA%20e-commerce%20tracking%20works.%20%20In%20this%20post%20I%27ll%20get%20into%20the%20specifics%20of%20the%20code%20and%20how%20to%20install%20it.%0A%0AThis%20isn%27t%20the%20most%20ex" title="del.icio.us"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;t=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup" title="Facebook"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;source=Analytics+Talk+&amp;summary=This%20is%20part%202%20in%20my%20series%20on%20Google%20Analytics%20e-commerce%20tracking.%20%20In%20part%201%20I%20described%2C%20at%20a%20conceptual%20level%2C%20how%20GA%20e-commerce%20tracking%20works.%20%20In%20this%20post%20I%27ll%20get%20into%20the%20specifics%20of%20the%20code%20and%20how%20to%20install%20it.%0A%0AThis%20isn%27t%20the%20most%20ex" title="LinkedIn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F" title="FriendFeed"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F" title="Sphinn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;annotation=This%20is%20part%202%20in%20my%20series%20on%20Google%20Analytics%20e-commerce%20tracking.%20%20In%20part%201%20I%20described%2C%20at%20a%20conceptual%20level%2C%20how%20GA%20e-commerce%20tracking%20works.%20%20In%20this%20post%20I%27ll%20get%20into%20the%20specifics%20of%20the%20code%20and%20how%20to%20install%20it.%0A%0AThis%20isn%27t%20the%20most%20ex" title="Google Bookmarks"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup" title="Reddit"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;body=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F" title="email"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F" title="Technorati"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F22%2Fgoogle-analytics-e-commerce-tracking-pt-2-installation-setup%2F&amp;submitHeadline=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%202%3A%20Installation%20%26amp%3B%20Setup&amp;submitSummary=This%20is%20part%202%20in%20my%20series%20on%20Google%20Analytics%20e-commerce%20tracking.%20%20In%20part%201%20I%20described%2C%20at%20a%20conceptual%20level%2C%20how%20GA%20e-commerce%20tracking%20works.%20%20In%20this%20post%20I%27ll%20get%20into%20the%20specifics%20of%20the%20code%20and%20how%20to%20install%20it.%0A%0AThis%20isn%27t%20the%20most%20ex&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>Google Analytics E-Commerce Tracking Pt. 1: How It Works</title>
		<link>http://cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/</link>
		<comments>http://cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 03:38:06 +0000</pubDate>
		<dc:creator>Justin Cutroni</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Tracking]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[google-analytics]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.epikone.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/</guid>
		<description><![CDATA[This post is the first in a series of e-commerce transaction tracking with Google Analytics. Why is e-commerce tracking important? Well, transaction data is a vital piece of information when analyzing online business performance. Sure, it&#8217;s great to measure things like conversion rate, but revenue is much more tangible to many business owners. Having the [...]<p><a href="http://cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">Google Analytics E-Commerce Tracking Pt. 1: How It Works</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cutroni.com/blog/wp-content/uploads/2008/01/money.jpg" width="157" height="117" style="float:right;"/>This post is the first in a series of e-commerce transaction tracking with <a href="http://www.google.com/analytics" title="Google Analytics" target="_blank">Google Analytics</a>. Why is e-commerce tracking important? Well, transaction data is a vital piece of information when analyzing online business performance.</p>
<p>Sure, it&#8217;s great to measure things like conversion rate, but revenue is much more tangible to many business owners. Having the e-commerce data in your web analytics application makes it easier to perform analysis. Do you need to set up e-commerce tracking? No, but it sure helps. :)</p>
<h2>The Big Pictures</h2>
<p>E-commerce tracking is based on the same principal as standard pageview tracking. JavaScript code sends the data to a Google Analytic servers by requesting an invisible gif file. The big difference is that e-commerce data is sent rather than pageview data.</p>
<p>But how does Google Analytics get the e-commerce data? That&#8217;s the tricky part. You, the site owner, must create some type of code that inserts the transaction data into the GA JavaScript. Sounds tricky, huh? Well, its not that bad.</p>
<h2>Step by Step: How it Works</h2>
<p>Let&#8217;s break it down and walk through what actually happens.</p>
<p>1. The visitor submits their transaction to your server.</p>
<p>2. Your server receives the transaction data and processes the transaction. This may include a number of steps at the server level, such as sending a confirmation email, checking a credit card number, etc.</p>
<p>3. After processing the transaction the server prepares to send the receipt page back to the visitor. While preparing the receipt page your server must extract some the transaction data and insert it into the Google Analytics JavaScript. This is the code that you must create.</p>
<p>4. The receipt page is sent to the visitor&#8217;s browser.</p>
<p>5. While the receipt page renders in the visitor&#8217;s browser the e-commerce data is sent to Google Analytics via special GA JavaScript.</p>
<p>Here&#8217;s a basic diagram of the process. Again, the biggest challenge during implementation is adding code to your web server that inserts the transaction data, in the appropriate format, into the receipt page. I&#8217;ll cover the setup in part 2 of this series.</p>
<p><img src="http://www.cutroni.com/blog/wp-content/uploads/2008/01/Picture 3.png" width="480" height="473"/></p>
<p><span style="font-size: 18px; font-weight: bold;">What Data can be Tracked?</span></p>
<p>Google Analytics collect two types of e-commerce data: transaction data and item data. Transaction data describes the overall transaction (transaction ID, total sale, tax, shipping, etc.) while item data describes the items purchased in the transaction (sku, description, category, etc.). All of this data eventually ends up in GA reports. Here&#8217;s a complete list of the data:</p>
<p><strong>Transaction Data</strong></p>
<ul>
<li>Transaction ID: your internal transaction ID [required]</li>
<li>Affiliate or store name</li>
<li>Total</li>
<li>Tax</li>
<li>Shipping</li>
<li>City</li>
<li>State or region</li>
<li>Country</li>
</ul>
<p><strong>Item Data</strong></p>
<ul>
<li>Transaction ID: same as in transaction data [required]</li>
<li>SKU</li>
<li>Product name</li>
<li>Product category or product variation</li>
<li>Unit price [required]</li>
<li>Quantity [required]</li>
</ul>
<p>A few notes about the data. First, the geo-location data is no longer used by Google Analytics. The new version of GA tries to identify where the buyer is located using an IP address lookup.</p>
<p>Also, you should avoid using any non-alpha numeric characters in the data. Especially in the numeric fields. Do not add a currency identifier (i.e. dollar sign) in the total, tax or shipping fields. this can cause problems with the data.</p>
<p>Like this post?  Check out the rest of the series:</p>
<p><a href="http://www.cutroni.com/blog/2008/01/22/google-analytics-e-commerce-tracking-pt-2-installation-setup/">Google Analytics E-Commerce Tracking Pt. 2: Installation &#038; Setup</a><br />
<a href="http://www.cutroni.com/blog/2008/06/25/google-analytics-e-commerce-tracking-pt-3-why-everyone-should-use-it/">Google Analytics E-Commerce Tracking Pt. 3: Why EVERYONE Should Use It</a><br />
<a href="http://www.cutroni.com/blog/2008/07/02/google-analytics-e-commerce-tracking-pt-4-tacking-lead-gen-forms/">Google Analytics E-Commerce Tracking Pt. 4: Tacking Lead Gen Forms</a></p>
<p><a href="http://cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/">Google Analytics E-Commerce Tracking Pt. 1: How It Works</a> is a post from: <a href="http://cutroni.com/blog">Analytics Talk by Justin Cutroni</a></p>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works%20-%20http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F" title="Twitter"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works" title="StumbleUpon"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;bodytext=This%20post%20is%20the%20first%20in%20a%20series%20of%20e-commerce%20transaction%20tracking%20with%20Google%20Analytics.%20Why%20is%20e-commerce%20tracking%20important%3F%20Well%2C%20transaction%20data%20is%20a%20vital%20piece%20of%20information%20when%20analyzing%20online%20business%20performance.%0A%0ASure%2C%20it%27s%20great%20to" title="Digg"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;notes=This%20post%20is%20the%20first%20in%20a%20series%20of%20e-commerce%20transaction%20tracking%20with%20Google%20Analytics.%20Why%20is%20e-commerce%20tracking%20important%3F%20Well%2C%20transaction%20data%20is%20a%20vital%20piece%20of%20information%20when%20analyzing%20online%20business%20performance.%0A%0ASure%2C%20it%27s%20great%20to" title="del.icio.us"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;t=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works" title="Facebook"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;source=Analytics+Talk+&amp;summary=This%20post%20is%20the%20first%20in%20a%20series%20of%20e-commerce%20transaction%20tracking%20with%20Google%20Analytics.%20Why%20is%20e-commerce%20tracking%20important%3F%20Well%2C%20transaction%20data%20is%20a%20vital%20piece%20of%20information%20when%20analyzing%20online%20business%20performance.%0A%0ASure%2C%20it%27s%20great%20to" title="LinkedIn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.friendfeed.com/share?title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F" title="FriendFeed"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F" title="Sphinn"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;annotation=This%20post%20is%20the%20first%20in%20a%20series%20of%20e-commerce%20transaction%20tracking%20with%20Google%20Analytics.%20Why%20is%20e-commerce%20tracking%20important%3F%20Well%2C%20transaction%20data%20is%20a%20vital%20piece%20of%20information%20when%20analyzing%20online%20business%20performance.%0A%0ASure%2C%20it%27s%20great%20to" title="Google Bookmarks"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;title=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works" title="Reddit"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;body=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F" title="email"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F" title="Technorati"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fcutroni.com%2Fblog%2F2008%2F01%2F13%2Fgoogle-analytics-e-commerce-tracking-pt-1-how-it-works%2F&amp;submitHeadline=Google%20Analytics%20E-Commerce%20Tracking%20Pt.%201%3A%20How%20It%20Works&amp;submitSummary=This%20post%20is%20the%20first%20in%20a%20series%20of%20e-commerce%20transaction%20tracking%20with%20Google%20Analytics.%20Why%20is%20e-commerce%20tracking%20important%3F%20Well%2C%20transaction%20data%20is%20a%20vital%20piece%20of%20information%20when%20analyzing%20online%20business%20performance.%0A%0ASure%2C%20it%27s%20great%20to&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://cutroni.com/blog/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cutroni.com/blog/2008/01/13/google-analytics-e-commerce-tracking-pt-1-how-it-works/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
	</channel>
</rss>
