How to Install Google Analytics Tracking

Google Analytics is a free Web analytics service that provides 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 Americommerce Spark Pay Online Stores Spark Pay Online Stores site and show you 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 on the following page. Be sure to copy the entire code, beginning with <script> and ending with </script>.



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.


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.***



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.




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. 
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 -->
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

<!-- 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 here:


Check out these other Articles on Google Analytics:

Have more questions? Submit a request


  • 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.


    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.


  • 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.