In this guide we are going to provide you with step-by-step instructions on how to setup Google Analytics in Magento 2 on a CentOS 7 VPS. Google Analytics is a great web analytics service that tracks and reports website traffic. In order to enable Google Analytics in Magento 2, you need to install Magento 2 on your VPS, create a new Google Analytics Account or log in to your existing account if you have one, obtain a tracking ID and configure the Magento 2 website to use the newly created tracking ID.