Google Analytics
-
Hi
I’m very confused as to how to install google analytics in WP. I got the code, but don’t know where to paste it. Installed the ‘Insert Headers and Footers’ plugin. Plugin description says to paste it under the plugin settings, but doesn’t say exactly where (there is a header option, and a footer option in the settings window). WPBegginers says to paste the code in the headers.php file just above the body tag. I check the php file, but just above the body tag there is a section which falls below the closing head tag, so not sure about this. Also, some other threads say to not insert it in the theme files as it’s better to have this theme-independent in case you switch theme in the future, so the plugin path is better. Please help, novice here. Thanks/regards
The topic ‘Google Analytics’ is closed to new replies.