Today we will talk about one important topic for every business, which wants to keep the power on and work effectively. We all know that making suggestions based on guesses is not safe for income, a more reliable way is to gather and analyze behavioral data of your shoppers. And for this purpose, Google Analytics is one of the most powerful tools. However, for its correct work, you should know how to add to and set it up in your Magento 2. In this post, we’ll give you a step-by-step guide and offer to solve the problem in a much easier way.
- Magento 2 Google Analytics: 5 steps to collect statistics
- Find a simpler way of gathering stats in Magento 2
- To sum-up
Magento 2 Google Analytics: 5 steps to collect statistics
Step #1. Create a new GA account
First, you need to create your Google Analytics account. If you already have one, go to the 2d step right away. Please, log into your Gmail account or create it, as, without this profile, you won’t be able to add Analytics to your Magento 2. Then go to the GA and click Sign up:
After that, you will see the form, where you’ll need to fill in all the information about your e-commerce business and Magento website that you want to track in analytics:
Next, click the Get Tracking ID button and now you are ready to the following step.
Step #2. Find your tracking code
To be able to collect statistics, you will need to add a Google Analytics code to Magento 2. To find the code, navigate to the left side of your Analytics dashboard, there you will see the Admin Tab. Click on it and choose Tracking Info. There you need to open the Tracking Code. You now see this page:
On the top, you there’s the Tracking ID you need. Copy it.
Step #3. Add Google Analytics API to Magento 2
Moving forward to the next step. Now go to your website and log in to the Admin Panel. Choose Stores from the left-side menu. In block Setting, you need to find Configuration:
On the configuration page, open the Sales panel and find Google API down below.
Put your Tracking ID into the field for Account Number and save the changes:
Bear in mind, that Google Analytics update normally takes up to 24 hours. So, be patient.
Step #4. Set enhanced e-commerce tracking
Last but not least step is setting enhanced e-commerce tracking for Magento 2. Go back to analytics. On the left dashboard, you will find Ecommerce Settings click on it:
There you need to turn on Enable Ecommerce and Enable Enhanced Ecommerce Reporting. Don’t forget to save the changes.
Step #5. Check if everything works correctly
Finally, you need just to check if everything is set up fine. Just open your website frontend and Google Analytics account in the second tab. Choose Real-Time report, click Overview. There should be 1 active user on site right now:
If that’s the case, you have made a great job and since now on will receive relevant reports on your Magento statistical showings.
Find a simpler way of gathering stats in Magento 2
Considering the fact that both Google Analytics and Magento are not simple instruments, we’ve prepared an easier way to turn data-driven business decisions in life. Many of our extensions already have advanced analytics in their backend settings, check it out!
This extension is a whole kit of reports for your Magento 2. It allows you to gather and process 15 detailed report types in 3 big groups, namely:
- Catalogs and,
The (a) Sales group offers 10 report types, which you can filter by the number of sold products, the total sum paid by customers, order statuses and time interval. The (b) Customers group consists of 2 reports: “Customers” and “New vs. Returning”. They will get you a basic understanding of users behavior basing on their purchases cycle. And in the (c) Catalog tab, you will find a statistic of all the products.
This extension is the right tool to make accurate business predictions and build an effective marketing strategy. And what’s more, for this you have no need to know how to add GA to Magento 2 😉
This extension allows you not only to implement an effective loyalty program but also analyze customer’s behavior and make decisions about your current reward program based on this data.
Our Reward Points reports include:
- The number of points awarded to customers;
- The number of points redeemed by customers;
- The number of expired points and more.
The mod will assist you in informing your customers about the stock status of their favorite products. And also, you will receive statistics about the most wanted products that will help you supply these products timely. What’s inside?
The extension includes all the created back-in-stock requests; sent notifications and made orders. The exact understanding of your clients’ demand will help you see what sales campaign will bring you a maximum conversion into purchases.
The tool is useful in drawing shoppers’ attention to your offers. However, you can achieve the desired result only with constant analysis of campaigns you launch and stop. In our extension, we provide complex analytics. You can find the total amount of clicks for all campaigns, subscribers, finished campaigns, click-through rate and more:
People like using social login wherever possible because it is fast and easy. However, it’s difficult to predict what networks are in use among your potential customers. With our mod, you can find out what social nets are in demand. Just use the Analytics Dashboard in this extension to have a better understanding of your customers. This elementary statistics will tell you how many users logged in via Facebook and how many items they bought. Thus, even if you have the same number of users, which logged in via Facebook and Twitter, it’s not a reason to make any conclusion setting aside other parameters. The most valuable users are those who make purchases, aren’t they?
Advanced and Elastic Search for Magento 2
These mods have a separate Search Analytics dashboard. There you can gather all the information about how many users look for what info in your Magento 2. This extension analytics consists of such blocks as total searches, unique searches, the number of users, users’ engagement and more. Thanks to this, you will always know the recent activity of your customers and their needs, maybe they look for a product you are currently out of stock, then it’s food for thought:
The difference between the two extensions is that they use different search engines: Advanced Search uses Magento MySQL and Elastic Search works on the up-to-date Elasticsearch engine. Due to this, Elastic Search allows you to get better speed and use autocomplete suggestions, spell correction and more new features. Compare these search tools and choose the one your store lacks right now!
As you can see, there are many different ways to gather fresh statistics and make data-based business decisions.
Just don’t forget that the most important thing is not how you collect statistics but the fact that you analyze it.
We hope our post was useful to you.
Still have questions? Feel free to leave them in the comments down below.