Hello Friends, I want to know that how we can add google analytic code in wordpress blog . Please friends suggest me.
Some of the newer templates have an option in the template settings, which makes it very easy. Alternatively, just go to your template directory (eg. /wp-content/themes/yourtheme/) and edit footer.php - just add the tracking code directly before the </body> tag.
Go to Google Analytic web page and enter your website it will give you a html code paste it in your website then wait for Cache once its cached you can track your traffic
just go to your template directory (eg. /wp-content/themes/yourtheme/) and edit footer.php - just add the tracking code directly before the </body> tag.
If you are not sure how to add the code manually, you can install plugins directly from the wordpress plugins area Select plugins --> Click on add new --> Type google analytics --> you will get many plugins --> install the one which is very easy for you to manage.
Actually, it's better to put the code as close to the top as possible. I would suggest using the header.