The Google Analytics add-on allows connecting your online store to your Google Analytics account.
To access the add-on settings page, use the Settings link in the add-on card on the My Apps page in your store Admin area (Apps > My Apps).
The add-on settings page provides properties to connect your store and your Google Analytics account.
Google Analytics version: Select your type of Google Analytics account. Your options are GA4 (default value) and Universal Analytics. The rest of the settings will depend on your Google Analytics account type.
NOTE: We strongly recommend configuring the add-on using the GA4 type of Google Analytics account for all new users.
The Universal Analytics account type is intended for early Google Analytics adopters who migrate from older software versions.Measurement ID (GA4 property): Use this field to specify your Google Analytics Measurement ID. See the Google Analytics Account Setup guide for details.
What are you tracking: Select the preferable instance. Your options are:
single domain;
one domain with multiple subdomains;
multiple top-level domains.
Enable eCommerce Google Analytics: Use the toggle to enable/disable submitting eCommerce data to Google Analytics.
Register purchase only on Paid status change: When enabled, X-Cart sends order data to Google Analytics when an order gets the Paid status. When disabled, X-Cart sends order data when an invoice page shows up to a customer, regardless of the order status.
API secret: Specify your Measurement Protocol API secret here. The field is required to transmit data on paid orders enabled above. See the Google Analytics Account Setup guide for details.
Debug mode: Enable the toggle to check all actions submitted to Google Analytics in a browser JS console.
Click Submit to save the settings when the add-on configuration is complete.
Google Analytics will collect statistics based on the settings you specified.
Read on:
Related pages: