Skip to content

Google Analytics


This document describes how Google Analytics field can be configured and customized for web application


To configure Google Analytics you need to open commerce manager and go to settings. Select Application/settings tab. The image below highlight system setting that is used for Google Analytics:

To create your google analytics account and more information can be found here

When you have created an account and have registered your service with google analytics you should obtain a piece of javascript code which has to be pasted into the GoogleAnalytics setting value. A sample is shown below:

    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'UA-42754882-1', '');
  ga('send', 'pageview');

To add google analytics script to your web pages you could use code similar to this:

  var firstOrDefault = SettingsHelper.GetSettings("GoogleAnalytics").FirstOrDefault();
  if (firstOrDefault != null)

Last update: June 18, 2020