Search Engine: Elastic

Article ID: 118731, created on Nov 19, 2013, last review on Jul 14, 2018

  • Applies to:
  • Odin Business Automation Standard


I want to configure integration of Google Analytics Ecommerce Tracking with new store

How can I do this?


Here is a Feature Request for implementation of Google analytics in OBAS store:

PBAS-26021 - There is should be a simple way to track and analyze customer visits in online store

Currently the integration should be configured manually using information from PBA-S SDK.


Below are some tips for configuring integration for new store.

Integration is to be implemented in confirmation.php.html template file. This file represents the final step of purchase flow when all information about the order is gathered.

The store templates are located in the /var/opt/hspc-store/templates/ directory.

The customized templates should be placed in the upgrade-safe directory:


You may want to use the following variables:

                                   ['rate']      // unit price
                                   ['duration'] // period

                               ['state'] or ['state_alt']

NOTE: You can dump the variables by sw_log (dumper($_SESSION['order']));. All dumped information will be present in /var/log/hspc/store.log.

To know the detail_list length use function

NOTE: New Store use single page design, so the URL will be https://<yourdomain.tld>/shop/<lang_id>/ only. To render different stages of shopping process, like index, configuration, checkout, payment, confirmation, different templates are used.

Additional information

New Store Configuration Basics

Forum: Google analytics and PBAS 4.3 new store

400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF