Add Google Analytics to Functions.php in WordPress
The following code will add Google Analytics tracking code to your WordPress site's header. Simply replace "UA-000000000-1" with your analytics UA tracking code and insert the snippet into functions.php. //…