Google Analytics is via some distance the preferred site-analytics machine in the arena. This truth has many reasons, however one unarguable one is that it is helping that Google Analytics is loose. With or with out that as a motive, it’s not unusual to wish to set up GA in WordPress. I at all times use a plugin (despite the fact that I’m lovely agnostic about which).
See the entire Quick Guide on WPShout: https://wpshout.com/quick-guides/install-google-analytics-wordpress/