Google Analytics integration
Google Analytics helps you to understand how your customers are engaging with your store content and how they interact with store pages. Google Analytics helps you to get a deeper understanding of your customers so that you can improve customer experience and get better results.
From version 9.1.4 onwards, HCL Commerce is integrated with Google Analytics by default.
Before you use Google Analytics, you must create a Google Analytics account and complete the required configurations.
Supported versions
From version 9.1.4 onwards, HCL Commerce supports integration with Universal Analytics.
From version 9.1.6 onwards, HCL Commerce also supports integration with Google Analytics 4. Data collection tagging is added to React sample stores.
- Search tool
- Analytics tool
From version 9.1.13 onwards, the Analytics and Search tools support Universal Analytics and Google Analytics 4 integration for reporting.
From version 9.1.14 onwards, HCL Commerce supports Google Analytics integration for the Ruby and Ruby B2B stores.
Architecture
How does the integration work?
- Universal Analytics: This Property has a Tracking ID and points to the store URL.
- Google Analytics 4: This Property has a Measurement ID and
points to the
live
store URL.Note: You are required to configure Google Analytics 4 forlive
andAuth
environments. Events collected from thelive
stores can be viewed from theAuth
Management Center stores.
Triggers (events in the store) and tags are defined in the Google Tag Manager. These tags are associated with the Tracking ID or Measurement ID of a Property in Google Analytics.
Data for user activities like page views, searches, products added to cart, products removed from cart, product checkouts, product purchases and so on is sent to Google Tag Manager in the form of events.