Installing and Configuring Google Analytics Module
page last edited on 03 April 2018
First of all you will need to enable the Google Analytics module as described in the Managing Addons guide.
When the module is enabled, open the Settings page to configure it.
The module configuration settings are as follows:
Web Property ID : Specify your Google Analytics Web Property ID
How to find your Web Property ID:
- Log in to Analytics, using the Google account that owns the Analytics profile that you want to get the ID for.
- Choose the Analytics Settings tab
- Find the entry in the list for the Analytics profile that you need the profile for: Each profile has two rows: the top one lists the URL of the site and profile ID, while the 2nd one has the name you have given the profile, view report-link, some statistics, and links to edit or delete the profile.
How to create a new Web Property ID:
- Register at https://www.google.com/analytics using your Google account.
- Follow the steps to create a new account and get a tracking ID
- Accept Google Analytics Terms of Service Agreement
- Your Web Property ID is in the Property -> Tracking info -> Tracking code section
- What are you tracking : Choose between single domain / one domain with multiple subdomains / multiple top level domains depending on your preferences.
- Google Analytics code version : A preset value is Universal Analytics. Also, it’s possible to set the value to Traditional.
- Enable eCommerce Google Analytics : Enable/Disable submitting ecommerce data to Google Analytics
- Register purchase only on Paid status change : When enabled, order data is sent to Google Analytics when an order becomes ‘Paid’. When disabled, X-Cart sends order when an invoice page shows up to a customer regardless of the order status.
- Debug mode : Enable to check all actions submitted to Google Analytics in a browser JS console.
Submit changes when the module configuration is complete. Google Analytics will collect staistics based on the settings you specified.
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.