Magento 2 Google Analytics
Magento 2 Google Analytics setup for a smooth integration between tracking in GA and your store.
The Google Analytics Tracking Code can be obtained from your Analytics Account
- In your GA Dashboard click on “Admin” in the menu on the left:
- Now you click on the “Tracking Info” then “Tracking Code” link that appears, all located in the “Property” column:
- Copy the Tracking ID that is in the “UA-11111111-1” format to be pasted into Magento Admin Panel.
Login into your Magento Admin area
From the left menu hover over “Stores” and then click on “Configuration”
Scroll down the second left menu to “Sales” then click on “Google API”
In the “Google API” Dashboard select first “Enabled” to “Yes”, this will toggle the Google Analytics extension ON and allow you to specify the “Account Number”, where “Account Number” is the Code we copied from the Google Analytics account.
eCommerce tracking #
Anonymize IP #
Anonymize IP is a option that can be configured in the Magento backend, steps 1 to 3 can be followed from Setup and for the last step “Anonymize IP” can be set to “Yes” via select.
Enhanced Commerce #
Enhanced Commerce is only available in the Enterprise version of Magento 2.
Content Experiements #
Not Working #
Things to check if Google Analytics are not working on your Magento 2 store: