Inhalte aufrufen


Universal Analytics Web Tracking

Google Analytics

Keine Antworten zum Thema vorhanden

#1 Michael Herzog

Michael Herzog

    SmartStore AG

  • Administrators
  • 3450 Beiträge

Geschrieben: 01 October 2015 - 15:09

To use the new tracking script for Google Universal Analytics Web Tracking the following script should be entered in the widget configuration Admin > CMS > Widgets > Google Analytics > Configure.


Tracking code with {ECOMMERCE} line

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

  ga('create', '{GOOGLEID}', 'auto');
  ga('send', 'pageview');


Tracking code for {ECOMMERCE} part, with {DETAILS} line

ga('require', 'ecommerce');

ga('ecommerce:addTransaction', {
  'id': '{ORDERID}',         
  'affiliation': '{SITE}',   
  'revenue': '{TOTAL}',      
  'shipping': '{SHIP}',      
  'tax': '{TAX}',
  'currency': 'EUR'             //'currency': '{CURRENCY}'



Tracking code for {DETAILS} part

ga('ecommerce:addItem', {
  'id': '{ORDERID}',
  'name': '{PRODUCTNAME}',
  'sku': '{PRODUCTSKU}',  
  'category': '{CATEGORYNAME}',
  'price': '{UNITPRICE}', 
  'quantity': '{QUANTITY}' 

The currency parameter cannot be replaced with the current version of the plugin. You can configure it global for all ecommerce transactions within google analytics by going to Manage > Data Settings > Currency will be displayed as or define it within the script as it is done in code block two of this post. With the current version of the plugin, which is available for download in the marketplace, the line can be written with a replacement parameter 'currency': '{CURRENCY}'.

  • GalenKa, RidgeOi und Brantot gefällt das

Michael Herzog
Smartstore AG

Auf dieses Thema antworten


Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: Google Analytics