Skip to main content

Google Analytics Add-on Setup

Learn how to connect your store to your Google Analytics account.

Written by Olga Tereshina

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: If the field is present, configure it by selecting your type of Google Analytics account. The rest of the settings will depend on your selection.

  • 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 and disable submitting eCommerce data to Google Analytics.

  • Send events via GTM (available when the GTM add-on is active): Use this toggle to enable or disable sending Google Analytics events via Google Tag Manager. Integration with GTM is supported starting from X-Cart version 5.5.1.51. For more info, see Configuring GA4 Ecommerce tracking via GTM in X-Cart.

  • 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.

Related pages:

Did this answer your question?