Adding G analytics to my blogs

by JoMo
5 replies
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
#adding #analytics #blogs
  • Profile picture of the author aaron_nimocks
    most likely it is in footer.php at the very bottom.
    Signature

    My free PSD logs can be downloaded at PSD Bum. Enjoy!

    {{ DiscussionBoard.errors[1525113].message }}
  • Profile picture of the author Gasen
    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
    {{ DiscussionBoard.errors[1525116].message }}
  • Profile picture of the author FredFarnes
    If you are using Wordpress, try footer.php
    Signature

    So, you want to sell me another way to easily make "X" dollars in "X" days? ROFL too funny! IM success requires hard work and lots of time. Most newbies do not survive the steep learning curve. Anyone who says otherwise is probably selling you a fantasy.

    {{ DiscussionBoard.errors[1525124].message }}
  • Profile picture of the author Nicolaas Theron
    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.
    Signature
    Minisite Graphics Secrets - Master Photoshop the Easy Way and Create Stunning Minisites from Scratch

    eBookCoverImpact.com
    - Create Awesome eCovers in Photoshop in 4 Simple Steps
    {{ DiscussionBoard.errors[1525137].message }}
    • Profile picture of the author scottgallagher
      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.
      Signature
      Father, Entrepreneur, Author, Adranalist
      I teach entrepreneurs to build a sustainable Internet Marketing Agency with real value. I have many free resources and paid training programs available

      -->My Training Website
      -->My Agency Website
      {{ DiscussionBoard.errors[1525183].message }}

Trending Topics