MMv4 KB
 
Using Google Analytics in Your Storefront
  Last Edited - 08/21/2013 8:27am PDT
  Category Path - Shopping Cart Software Components > Administration Area > Modules > 3rd Party Service Integration
 
google analytics integration
"Does Modular Merchant support Google Analytics. Are there any built-in tools for adding Google Analytics tracking to my store, including tracking traffic and sales data?"

Yes, yes and yes. Google Analytics is not only supported, but tools to streamline their integration are indeed built-in to the shopping cart so that you can add Google Analytics code to your storefront pages simply by adding a single QuickCode Tag to the desired HTML templates.

be sure to save your settings too!
Before your storefront can transmit traffic statistics to Google, you will also need the analytics tracking ID number that Google provides to you.

Enter this ID number in the Google Analytics section of the Third-Party Service Integration module in your store's Administration Area. This module includes a control panel to securely record your Google Analytics account information, to automate the data transmission process to Google.


If you are creating your own template package, and would like to add Google's traffic and transaction tracking scripts to your storefront, simply add the following QuickCode Tags to your store's HTML templates:
 

surprise! we did it all for you.
Modular Merchant's standard template packages include all of the necessary QuickCode Tags for adding support for Google Analytics. It's already integrated and ready to use.
 
Tracking General Traffic Data

The {GOOGLE-ANALYTICS-TRAFFIC} QuickCode Tag will record general traffic information. This is the standard QuickCode Tag to use on nearly every page of your store. Add this QuickCode Tag right before the desired location in your HTML templates, such as before the </head> or </body> tags.

Full details about the {GOOGLE-ANALYTICS-TRAFFIC} QuickCode Tag and an example of the JavaScript it will be translated into are available in the QuickCode Tag glossary on the Modular Merchant website at:

http://qc.modularmerchant.com/article.php?id=397

 
Tracking Transaction Data

The {GOOGLE-ANALYTICS-TRANSACTION} QuickCode Tag will record the data about the customer's transaction. This includes the order number, order value, product information, etc. Use this QuickCode Tag on your store's receipt template.

Full details about the {GOOGLE-ANALYTICS-TRANSACTION} QuickCode Tag and an example of the JavaScript it will be translated into are available in the QuickCode Tag glossary on the Modular Merchant website at:

http://qc.modularmerchant.com/article.php?id=398
Powered by ModularKB