GUA in Commerce Web Stores

This topic applies to

Applies to

SuiteCommerce | SuiteCommerce Advanced



The procedure for implementing Google Universal Analytics on your Commerce web store requires you to set specific configuration information regarding your Google Universal Analytics account. If you are using Google Adwords, you must also set the conversion tracking ID, label, and value.

For configuration information see Configure Properties.


Settings on the Analytics tab in the Web Site Set Up page are not used when enabling Google Universal Analytics for Commerce web stores. Only the configuration settings as described in this topic are used. For details on how to implement Google Universal Analytics for Site Builder sites, see the help topic Working with Google Analytics.

To enable Google Universal Analytics:

  1. Select the domain to configure at Setup > SuiteCommerce Advanced > Configuration.

  2. In the Configuration record, navigate to the Integrations tab and the Google Universal Analytics Subtab.

  3. Set feature properties as required. For more information on each configurable property, see Google Universal Analytics Subtab.

  4. Save the Configuration record.

This topic applies to

Applies to

SuiteCommerce Advanced

To enable Google Universal Analytics (pre-Vinson):

This information refers to the Denali and Mont Blanc releases of SuiteCommerce Advanced only.

The following procedure should be performed on a custom ShoppingApplication, custom CheckoutApplication, or custom MyAccountApplication module in your local source files. See Customize and Extend Core SuiteCommerce Advanced Modules for information on creating a custom module.

  1. Create a custom module that includes the SC.Shopping.Configuration, SC.MyAccount.Configuration, or SC.Checkout.Configuration object as a dependency.


    Do not edit the original source files directly. See Customize and Extend Core SuiteCommerce Advanced Modules for information and best practices on customizing JavaScript.

  2. Extend the googleUniversalAnalytics object to set the propertyID, value, and domainName.

    googleUniversalAnalytics: { propertyID: '' , domainName: '' }


    For more information on these properties, see Google Universal Analytics Subtab.

  3. For the propertyID, enter the Tracking ID for the property in your Google Analytics account.

    To locate the tracking ID, login to your Google Analytics account and go to Admin > Property > Property Settings.

  4. For the domainName enter one of the following, depending on the custom module you are configuring:

    • ShoppingApplication: enter the domain name of your site.

    • CheckoutApplication and MyAccountApplication: This is normally or You can see which checkout domain your site uses on the Setup subtab of the Web Site Setup record. The CheckoutURL field lists the checkout domain.

    • If you have your own SSL certificate running under a subdomain, use that as the value for the domain name.

    The resultant code should be similar to the following:

    tracking: { // [Google Universal Analytics]( googleUniversalAnalytics: { propertyID: 'UA-12345678-1' , domainName: '' }
  5. Optionally, enable additional tracking.

    By default, the trackPageview function is used. In addition to tracking page views you can enable tracking of events. To enable event tracking set the propertyID and domainName.

    tracking: { // [Google Universal Analytics]( googleUniversalAnalytics: { propertyID: 'UA-12345678-1' , domainName: '' }

    The trackEvent function in the Google Universal Analytics module defines several user events that can be tracked.

    trackEvent: function (event) { if (event && event.category && event.action) { // [Event Tracking]( win[name]('send', 'event', event.category, event.action, event.label, parseFloat(event.value) || 0, { 'hitCallback': event.callback }); }