Is it possible to instal the google analytical code in WP ? If yes where should it be installed ? many thanks
Open the file footer.php from the theme directory that you use and add the google analytical code just before the tag </body>.
Yes, It is possible to install the Google Analytics code in Wordpress. Given are the three methods, which can help you to add GA. 1-Direct Paste Method Copy the Analytics code that you received from your Google Analytics Account, and paste it in your theme’s footer.php right above the </body> tag. 2-Functions.php Method Add the following code in your theme’s functions.php file and don’t forget to paste your Google Analytics code. <?php add_action('wp_footer', 'add_googleanalytics'); function add_googleanalytics() { ?> // Paste your Google Analytics code <?php } ?> 3-Plugins Method There are tons of plugins available to add Google Analytics to your site. The two that we recommend are: Google Analytics for WordPress by Joost de Valk Google Analyticator by Ronald Heft
This plugin is well worth it... You get a nice overview in your WP dashboard of the latest visitors as well as: Top referrers Top searches Site Usage (Visits/Bounce Rate/Pages per visit/etc.
hi and many thanks for many suggestions and advice. This forum is proving to be one of the best i have joined, thanks once again Derek
The Google analytics plugin is the simplest way...but other than that use the Footer like footer like s_ruben suggests
you can use google analytics plugin from Yoast which is simple and easy install, activate and key in your Google Analytics tracking ID.
I have used the plugin google analytical and its brilliant. I have also installed the plugin siutemap, but google webmaster tools is not accepting them.
Use Google Analytics for wordpress plugin or paste ur analytics code in wp theme footer.php file before </body> tag. Be sure code is working by checking analytcis stats after few hours.
You can install it anywhere in the page, only keep in mind that it must be available sitewide. 1. Place it in header.php ( so that the code loads prior to the whole page ) OR 2. Place it in footer.php ( so that the code loads after the whole page ) OR 3. The simplest way is to paste it as a text/html widget. It works. You just need to put some other code as well to use that widget ( else it will look as an empty widget.)