Adding G analytics to my blogs

by 5 replies
6
I am tryign to add G analytics to my wordpress blogs, but I am having trouble. I am supposed to add some code above the body, but I can't find the file that has that information. I know a little about html so I looked in index.php, but that is not it. When I do a view-source on my site I can see where the body tags are, but I don't know what file it is getting that from. When I look through my blog files I see a whole bunch of .php files. I guess it is one of these.

Any idea where I look to edit the file???


-joel
#main internet marketing discussion forum #adding #analytics #blogs
  • most likely it is in footer.php at the very bottom.
  • If this is a self hosted WP blog:
    Go to "plugins", "add new"
    In the search box type google" and click search
    Scroll down the page till you find "Ultimate Google Analytics"
    Click install

    Once installed:
    Go to "Ultimate GA" found on the left sidebar under settings
    Paste in you GA id and update. (UA-xxxxxxx-x

    All done
  • If you are using Wordpress, try footer.php
  • I agree with Gasen, go for the analytics plugin. I can't remember exactly what the problem was with the footer.php method, but it didn't work properly for me. Either Google failed to verify the code or not all pages tracked correctly. Probably the latter. With the plugin everything runs smoothly.
    • [1] reply
    • The problem with using the footer method is updates...with the next WP update you'll overwrite the file and code.

      i use the google analyticator plug in. very easy to install and easy to use.


      Search [google analyticator] on the wordpress site.

Next Topics on Trending Feed

  • 6

    I am tryign to add G analytics to my wordpress blogs, but I am having trouble. I am supposed to add some code above the body, but I can't find the file that has that information. I know a little about html so I looked in index.php, but that is not it. When I do a view-source on my site I can see where the body tags are, but I don't know what file it is getting that from. When I look through my blog files I see a whole bunch of .php files. I guess it is one of these. Any idea where I look to edit the file???