Google Universal Analytics and Google Adwords are both the awesome Google tools that help you optimize your content, analyze your traffic, and connect your catalog to shopping aggregators and marketplaces. Meanwhile, Google Universal Analytics tool allows you to get a new and more flexible tracking code that lets you collect data from any digital device.
Today, I will introduce you the way to set up Google Universal Analytics on Magento 2 stores. If you want to learn more about Google Adwords, follow our next topic here.
Access the Google website, and create your own new account on Google Universal Analytics.
Stores > Settings > Configuration.
Content Experimentsfield to apply A/B testing and other performance test for your content. Set it to Yes.
Save Configto complete.
For eCommerce, we suggest that you should use Mageplaza Google Analytics for ecommerce
Ref: Magento 2 User Guide
It comes to the end of tutorial: How to Setup Google Universal Analytics in Magento 2.