You can use a plugin if you prefer not to touch any code or want a more robust option for Google Analytics. This is by far the easiest solution. Although we don’t recommend plugin overload, this free forever Site Kit by Google plugin has zero negative impact on your website, which is why we recommend it in our Resources.
This plugin takes the guesswork out of setting up your code, finding it, and adding it. It does the hard work for you! It also gives you additional analytics tools on a dedicated dashboard.
NOTE: To add Google Analytics, you will need a Gmail account.