- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento 2.x. How to Integrate Google Analytics
August 31, 2016
This guide will show you how to integrate the Google Analytics code to your Magento 2 store.
In order to add the Google Analytics code, you should perform the following:
-
The first step is locating your account ID in Google. You will first need to obtain your tracking code from the Google Analytics account by following this detailed tutorial.
-
You should get the code similar to the one, presented below:
-
‘UA-XXXXX-X‘ in your code ( where 12345-6 stands for your Account ID number) is your Google Account ID.
-
Log into your Magento Admin Area and navigate to Stores -> Configuration section.
Access the Sales -> Google API section and expand the Google Analytics option.
Enable it and paste the tracking code to the Account Number field. Next, click on the Save Config button to apply the changes.
This is the end of the tutorial. Feel free to check the detailed video tutorial below:
Magento 2.x. How to Integrate Google Analytics