Google Analytics Tracking Code
-
I have found several references to placing the Google analytics Tracking code after the <body> tag. This is contrary Googles instructions that the tracking code be put in just before the closing </head> tag.
For example from http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/ :
How to Install Google Analytics in WordPressThere are 3 ways to install Google analytics in WordPress. Direct paste, functions.php, and plugins.
Direct Paste Method
Copy the code that you received in Step 4, and paste it in your theme’s header.php right after the <body> tag.
Can anyone confirm where I should put the trackingg code? Is it OK to have it in the <head> tag as google directs?
The topic ‘Google Analytics Tracking Code’ is closed to new replies.