wpcode install Go to Code Snippets » Headers & Footers in your russian number for whatsapp WordPress dashboard. Then, in the Header section , paste the tracking code you copied earlier. wpcode header footer Make sure to press the Save Changes button and you're done. Below, we will show you how to connect WordPress to Google Analytics manually, without any plugins. How to Add Google Analytics to Your WordPress Theme You can add Google Analytics tracking code to your website theme's header or footer without the help of a plugin. However, we don’t recommend this method. The slightest misstep can cause your entire site to crash or malfunction.

Additionally, you may need to update your code if you change your theme or perform major updates to your site. You may also need to debug crawling issues and constantly check your site's performance , changing your theme code can pose a security risk. With those disclaimers out of the way, there are three ways to add Google Analytics tracking code to your theme. Add tracking code via Header.php file Add tracking code via Footer.php file Add tracking code via Functions.php file Add code via Header.PHP file You’ll need to access your files through cPanel or the FTP client portal.