How to Install Google Analytics Tracking

Google Analytics is a free service offered by Google that generates detailed statistics about the visitors to a website.  Universal Analytics is the new operating standard for Google Analytics. To use this feature, your Google Analytic account needs upgrade to Universal Analytics. Follow this link to see if you use Universal Analytics: https://support.google.com/analytics/answer/4457764?hl=en&ref_topic=6010376

Verify Correct Information In Google Analytics

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

2. Get your Tracking ID and Domain Name from Admin->Tracking info->Tracking Code.

 

 

 

 

 

 

***NOTE: If you 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 and Domain name, check the enable checkBox and click save. Done.
 
 

 

 

Option 2. MANUAL METHOD:

If you want to place Google Analytics scripts manually into your site, paste the following JavaScript snippet into your website 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.
<!-- 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.

 

 

 

Check out these other Articles on Google Analytics:

Have more questions? Submit a request

Comments

  • Avatar
    Josh Eliseuson

    How do you install the Google Analytics script for eccomerce tracking?

  • Avatar
    Manjula Higginbotham

    I apologize this question got missed. It was just brought to my attention so adding it for anyone else that may need the information. 

     

    For Ecommerce tracking you would install the GA tracking script  + a merge code needs to be added to the script. The merge code shown in the script example generates the details Google Analytics needs for ecommerce tracking.

    Adding the merge code to your script is all that is needed while installing the script. For clarity, below is a snapshot of what the script would look like and the merge code referenced.

    gaconversiontracking.png

    After the script is installed, ecommerce tracking can be turned on in Google Analtyics. 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.

     

     

     

  • Avatar
    Lisa Adams

    This needs to be updated for use with the new Universal Analytics.

  • Avatar
    Arul Paul

    This page needs to be redone for the current Google Analytics site.

  • Avatar
    Mallory Welch

    Hi Lisa,

    We have updated this article as of May to contain the new Universal Analytics tracking information.

  • Avatar
    Mallory Welch

    Hi Arul,

    This has been updated with new screenshots of the the new Google Analytics dashboard.

    Thanks,
    Mallory

  • Avatar
    Chris Mitchell

    HI Mallory, just to be clear... if we install analytics.js in the marketing/analytics script section AND we include the universal conversion tracking merge code, does this mean we should leave the conversion tracking code field of the "Orders" section empty? In other words, should the the marketing area be the ONLY place we enter the analytics.js + tracking merge code script?

Please sign in to leave a comment.