Google Analytics (GA) is a free tracking service by Google that allows you to monitor website traffic and conversion ratio with a few clicks. It is a highly useful service for ecommerce merchants who want to manage their Magento stores. Magento Google Analytics tracking service allows them to focus on areas that need an optimization with regards to the website. It is a fact that now everything is trackable.
Many Magento store owners are unaware of the potential advantage of Google Analytics tracking service. With in-depth insights on website traffic, visitor segmentation, demographics and visualizations, and goal-related tracking, All these services give a new dimension to your Magento ecommerce tracking.
Magento Google Analytics provides store owners with a wide range of services like tracking data and managing visitor records. However, tracking the data and then collecting it, simultaneously, for an ecommerce website is a complex procedure.
Therefore, configuring Magento Analytics may seem like a daunting task. It can be frustrating, especially when you run into a problem, or your store is not tracking the way you planned it should.
The most common challenges are also the most critical components for any Magento store. For example:
- Tracking demographics
- Ecommerce statistics
- Store conversions
Scalable, Super Fast, & Secure Magento Hosting
Our Clients Love us because we never compromise on these features
Let’s learn how to add Google Analytics to Magento ecommerce stores. I will cover the process of setting up Magento analytics for both Magento 1.x and Magento 2.x versions.
Get Google Analytics Tracking ID
- First, login to your Google Analytics account. If you don’t have an account, visit Google Analytics and get started for FREE.
- Go to Admin settings from the bottom of the left bar of your Analytics account:
Click on Create Account:
- Enter the required information, and click on Get Tracking ID:
- Accept the Terms of Service Agreement by checking the checkboxes below.
- Once your account is setup, you will get a Google Analytics tracking code. This code collects data on website’s behavior. Select and copy this code:
Google Analytics Tracking is generated!
Configure Google Analytics in Magento
If you’re a Magento 1.x user, then go to System → Configuration from the admin panel of your store. Select SALES > Google API:
Select Yes from the drop-down menu to Enable Google Analytics. Next, insert your Google Tracking ID in the Account Number option. Now, click the Save Config button.
Configure Magento 2 Google Analytics
If you are a Magento 2.x user, then go to STORES → Configuration from the admin panel of your store and hit Google API option listed under SALES Tab.
Next, enable the Google API and paste the GA Tracking Code in the Account Number field. Now, hit the Save Config button to apply the new changes.
Set up Magento Ecommerce Tracking
The ecommerce reports by Google Analytics help you analyze the purchase activity on your Magento 2 store. It allows you to see product/transaction information, average order value, ecommerce conversion rate, purchase time, and other data. To set it up, go to the Admin area of your GA account and tap on ecommerce settings.
Now enable ecommerce and turn on enhanced ecommerce reporting. Lastly, click the Save button.
Now, verify that you have setup Magento Google Analytics properly. Launch your store and wait for a few minutes for the traffic data to load in your GA property.
See the image above. It indicates that you have successfully configured Magento Analytics on your ecommerce store. Your GA is now ready to collect and track data and is ready for advanced ecommerce reporting.
If you are using an older version of Magento platform, you may face problems in tracking the data. Just upgrade your Magento version to the latest release and enable Google Analytics to help you track Magento website traffic. There is no need to install any additional addons.
At Cloudways, we always keep the platform updated on our Magento Hosting Platform. We also help ecommerce website owners to update Magento versions of their stores through Application Upgrade addon. Try out our Cloud Hosting Platform for free.
After following this guide, I believe that you can now easily configure Google Analytics on your Magento platform. For additional queries, please share them in the comments section below.
Boost Your Magento Store Performance by 5x Times & Maximize Your Sales
Our fastest Magento hosting can help you in growing your business revenue by 500%
Syed Muneeb Ul Hasan is a Magento Community Manager at Cloudways - A Managed Magento Hosting Platform. He is an expert in PHP and Magento and prefers to educate users in the implementation of Magento. When not working, he loves to play games and watch cricket.