How to Install Google Analytics Tracking

Google Analytics is a free Web analytics service. They provide statistics and basic analytical tools for search engine optimization (SEO) and marketing purposes. The service is available to anyone with a Google account. The following walkthrough will help you sync it to your store and show where it needs to go in the back of the admin panel. 

 

Setting Up Google Analytics

1. Sign into or create your Google Analytics account.

2. Click Admin, then click Select a PropertyCreate New Property.

3. Complete the form, then select Get Tracking ID.

4. Copy the tracking code provided to the Tracking Id field in your online store. (See Option 1. SIMPLE METHOD below for more details.)

 

Basically, these are the only steps you need: 

  1. Find the tracking code snippet for your property. Sign in to your Google Analytics account, and select the Admin tab. 
  2. Find your tracking code snippet.
  3. Copy the snippet. 
  4. Paste your snippet (unaltered, in its entirety) into the page you want to track. 
  5. Check your setup with Google.



How To Verify Correct Information In Google Analytics

1. Turn on Ecommerce Tracking on Admin->View Settings.

You need to enable Ecommerce reporting in the view in which you want to see the data.

  1. Sign in to your Google Analytics account.
  2. Navigate to the desired account, property and view.
  3. In the VIEW column, select Ecommerce Settings.
  4. Click the toggle ON.
  5. Optional: Turn ON Enhanced Ecommerce.
  6. Click Submit.

 

***NOTE: If you have already placed Google Analytic scripts in your site, remove it first.***

 

Option 1. SIMPLE METHOD:

Step 1:  Goto Tools -> Apps & Addons  -> Google Universal Analytics.

Step 2: Put in your Tracking ID, check the enable checkBox and click save.
 
NOTE: Domain should be left blank unless specifically needed for cross-domain tracking.

 

 

Option 2. MANUAL METHOD:

For manual setup, paste the following JavaScript snippet into Settings > Marketing > General > Analytics script. The UA-XXXX-Y tracking ID and domain name must be replaced with Tracking ID and domain name for the Google Web Property you wish to track. 

Note: If script is placed in Marketing Settings using this method ,it will not need to be placed in the Order Page sections.

 

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m
=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga
('create','UA-XXXX-Y','www.yourstore.com');
ga('require','linkid','linkid.js');
ga
('send','pageview');
##GOOGLECONVERSIONTRACKINGUNIVERSAL##
</script>
<!-- End Google Analytics -->


 

Results show within 24hrs or sooner depending on the processing time at Google. The generation of the order data on our side happens as soon as the script is placed and new orders are placed.

 

For more information and support or issues with analytics, check out Google's article.

 

Check out these other Articles on Google Analytics:

Have more questions? Submit a request

Comments

  • Avatar
    Kathy Sechrist

    I've had analytics working for a long time... but cannot find how to put in Conversion Tracking (which should only go on the order confirmation page I believe?)

  • Avatar
    Juan Villegas

    I haven't been able to track using Google Analytics since September 2015. What gives?