This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

📣 Join industry experts in BFCM Prepathon 2023 to dominate the sales season! Book Your Spot →

How to Configure Magento Analytics Ecommerce Tracking

Updated on December 24, 2021

4 Min Read
Magento Analytics

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:

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:

Get Google Analytics Tracking ID


Click on Create Account:

create account - Magento google analytics


  • Enter the required information, and click on Get Tracking ID:

new account 1 - magento google analytics

get tracking id - Magento google analytics

  • Accept the Terms of Service Agreement by checking the checkboxes below.

accept terms 1 - magento google analytics

accept terms 2 - magento google analytics


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

tracking id - Magento google analytics


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:

google api - Magento google analytics

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.

expand magento google analytics section

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.

google api - Magento 2 google analytics

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.

expand magento 2 google analytics section

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.

ecommerce settings magento google analytics

Now enable ecommerce and turn on enhanced ecommerce reporting. Lastly, click the Save button.

save ecommerce settings magento google analytics

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.

Final Words

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

Share your opinion in the comment section. COMMENT NOW

Share This Article

Abdur Rahman

Abdur Rahman is the Magento whizz at Cloudways. He is growth ambitious, and aims to learn & share information about Ecommerce & Magento Development through practice and experimentation. He loves to travel and explore new ideas whenever he finds time. Get in touch with him at [email protected]


Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!


Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour
Unleash The Cloud.
Not Budgets.

For 4 Months +
Up To 30 Free Migrations

Cyber Week

Time Left In Offer
  • 0


  • 0


  • 0


  • 0


40% OFF

On All Plans