Loading...

Tracking Ecommerce Data With Google Analytics in BigCommerce

Daniel C. Published on 20 October, 2011

Each BigCommerce store should have a tracking software installed. For example, Google Analytics is the enterprise-class web analytics solution that gives you rich insights into your website traffic and marketing effectiveness. Powerful, flexible and easy-to-use features now let you see and analyze your traffic data in an entirely new way. With Google Analytics, you're more prepared to write better-targeted ads, strengthen your marketing initiatives and create higher converting websites.

There are two types of analytics codes: traditional and asynchronous. The asynchronous code looks like this:

daniel cigolea google analytics

To integrate Google Analytics with your BigCommerce store AND be able to track ecommerce data you must use the traditional version of the code. This code is to be inserted in the box at Settings >> Analytics Settings >> Google Analytics tab

If you want to insert the code in your store, please insert your Google Analytics ID in the box below and press "Generate Traditional Code". (Google Analytics ID is a code that looke like this: UA-xxxxxx-x)

Generate Traditional Code

<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-xxxxxx-x"););
pageTracker._trackPageview();
} catch(err) {}</script>

Recently, BigCommerce has also provided a built-in integration for Enhanced Ecommerce tracking on Stencil stores. Previously you had to do this by hand, but now you can enable it from the control panel. For more advanced ways to track this data you can read how to customize the Enhanced Ecommerce integration in your BigCommerce store which will provide some good examples.

Daniel C. Published on 20 October, 2011