24/7 Support: 800.608.6482

Get Started

Reference Guide

Google Analytics Settings

About Google Analytics

Google Analytics is a product from Google that tracks visitor activity in your on-line store. Google Analytics can tell you what pages in your store people have visited, what products customers have purchased, etc. The basic process of working with Google Analytics is:

  1. Create a Google Analytics account. Go to www.google.com/analytics and click the Create an Account button.
  2. Install Google Analytics in your on-line store. The product is essentially a chunk of JavaScript code that Miva Merchant installs in your store. Once the code is installed, it will track visitor activities in your on-line store.
  3. When you want to see what customers have been doing in your store, you log into your Google Analytics account to view the tracking data.

To Install Google Analytics in Your Store

Follow these steps after you have created your Google Analytics account.

  1. Go to Menu> Utilities > Add/Remove Modules tab > Available Modules section.
  2. Click on the Install button for Google Analytics.
  3. As soon as you install Google Analytics, you'll see two new tabs:

    • Utilities > Google Analytics Settings
    • Utilities > Google Analytics Tracking Code
  4. Select the Google Analytics Settings tab.
  5. Google Analytics ID: This is your Tracking ID that is created when you set up your Google Analytics account. It has the form: "UA-x x x x x ...- x".
    Domain: This field is prepopulated with the domain of your Miva Merchant store. You would almost never need to change the domain field.
    Mode: The JavaScript that Google uses to perform analytics has evolved over the years to add more and more features. You currently (03/20/15) have three choices for the analytics code. What you select here, however, must match the type of analytics code that you selected when you set up your Google Analytics account.
  6. Google Analytics ID: this is your Google Analytics account ID. It has the form: "UA-x x x ... - x".
  7. Click the Update button.
  8. Select the Google Analytics Tracking Code tab. Make sure you have the Point Click Mode selected.
  9. Track Subscription Orders Enable this option to report automatically generated subscription orders to Google. When enabled, information about orders placed in the runtime shopping inte
    Enable Ecommerce Transaction Tracking Enable this option to track Ecommerce transactions. When enabled, this will cause the module to transmit information about orders placed in the runtime shopping interface to Google so that you can track and analyze sales numbers inside Google Analytics.
    IP Anonymization: When you use Google analytics, the code sends customer data from your store to your analytics account. If you enable this option, the last octet of the customer's IP address is set to zeroes before it is sent.
    Force SSL:
    • If this option is off:
    • If the customer is on a page in your store that uses SSL, the connection to Google analytics uses SSL.
    • If the customer is on a page in your store that does not use SSL, the connection to Google analytics does not use SSL.
    • If you enable this option, the connection to Google analytics always uses SSL.
    Enhanced Link Attribution: If you selected enhanced link attribution in your Google Analytics account, you must also enable it here. But see also: https://support.google.com/analytics/answer/2558867?hl=en for more information.
    Display Advertising Support:

    If you are using Google display ads, enabling this feature gives you more information about those ads. You view the ad information in your Google Analytics account, but it must be enabled in your Miva Merchant store so that the data will be collected.

    But see also:


    Policy requirements for Display Advertising

    Cross Domain Auto Linking:

    You will only see this field if you set Menu > Utilities > Google Analytics Settings tab > Mode field to either "Universal" or "Universal Enhanced".

    Normally, Google analytics cannot track a customer once the customer leaves your store domain. If you want Google analytics to track customers across multiple domains:

    1. Install the Google analytics JavaScript on each domain.
    2. Check the Cross Domain Auto Linking checkbox.
    3. Enter a comma separated list of domains in the text field.
    Domain Tracking Google analytics gives you the option of tracking analytic data across domains and subdomains. You have to list your domains and subdomains in your Google analytics account. For example, let's say you have the following domains and subdomains:
    • MyStore1.com (one of your domains)
    • dev.MyStore1.com (a subdomain where you do store development)
    • MyStore2.com (another domain)
    • Once you configure your Google analytics account, you can use the domain tracking field to select the tracking data you want Miva Merchant to send to Google.

    • Single top-level domain (no subdomains): Send analytic data for MyStore1.com. No subdomains. No other domains.
    • Single top-level domain (includes subdomains): I only have one domain. Send tracking data for that domain and include tracking data for any subdomains.
    • Multiple top-level domains (no subdomains): Send tracking data for all of my domains, but no subdomains.
    Temporarily Disable Tracking (retains all configuration) If you need to temporarily turn off Google Analytics tracking in your store, click this checkbox, then click the Update button. This disables all Google Analytics tracking in your store, but retains your settings so you can easily turn the feature back on again.
    Advanced mode: The easiest way to install Google Analytics in your store is to select from the options listed above, and click the Update button. The admin interface will automatically install the JavaScript in your store. However, you can use the Advanced Mode to manually install the Google Analytics JavaScript. You might want to do this if Google has released a new version of their code and it isn't officially supported by Miva Merchant yet.
    1. Copy the JavaScript from the Google Analytics page. (You have to find out from Google where the code is located on their site.)
    2. In the Google Analytics Tracking Code tab, click the Advanced Mode link.
    3. Replace any existing code in the Main Template field with code that you copied from the Google page.
    4. Click the Update button.
  10. Click the Update button.

    At this point Miva Merchant will automatically install the Google Analytics JavaScript code. Unless you are an advanced user, you don't need to do anything more.

  11. Select the Google Analytics Classic Ecommerce Code tab. Most users will never need to change anything on this tab.

    The JavaScript for Google Analytics has two main parts:

    • A "basic" section of JavaScript code that tracks visitors and visitor movement in your store.
    • An ecommerce section of JavaScript code that tracks purchases in your store.

    Just by setting up your Google Analytics account you get the "basic" JavaScript code, but in the Profile Settings section of your Google Analytics account you can choose to track ecommerce.

    When you click on the Update button at the bottom of the Google Analytics Tracking Code tab, Miva Merchant will install the correct JavaScript in your store. You don't need to do anything else.

    The Ecommerce Tracking Template field on the Google Analytics Classic Ecommerce Code tab shows you the Google ecommerce JavaScript code. This code is only installed on your invoice (INVC) page. Advanced users might modify this code if they were testing a new version of some Google Analytics JavaScript, but most users won't need to change anything on this tab.

Google Analytics Tracking Code

Please see above.

Google Analytics Classic Ecommerce Code

See above.

In previous versions of Miva Merchant, this tab was called "Google Analytics Ecommerce Code". This tab only appears if you select "Classic (ga.js)" in the:

MenuUtilities > Google Analytics Settings tab > Mode field.

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Contact Us
Receive Tips & Updates

Copyright © 2017 Miva, Inc - All Rights Reserved

Back To The Top