Install Google Analytics to WordPress Without a Plugin In order for Google Analytics to start tracking your visitors, the tracking code mentioned above needs to be present on every page of your site you want to track user behavior on. Usually, that’s all of them. Here’s how you can achieve that manually. Option A: Insert the Code Into header.php One of the main ways to add the tracking code to your site is to insert it into your header. This way, it will load on every page. Most standard themes have a header.php file that is responsible for outputting the site header section. So, you can simply input the Google Analytics code here. However, when you make changes to theme files, be aware that it’s always best to do it in a child theme. Otherwise, they will get lost when you update your main theme. Child themes are super useful in general and you should definitely read up about them. Also, don’t forget to back up your WordPress site when making any changes like this. Once you...