Results 1 to 7 of 7

 

Thread: Adding Google Analytics code to Wordpress site.

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    319
    Thanks
    18
    Thanked 1 Time in 1 Post


    Hi.

    I'm using Wordpress for the first time for one of my sites and would like to use Google Analytics to see how many visitors I get. I downloaded the Wordpress software and uploaded to my server was wondering which file I need to open up to add the code.

    Thanks in advance.

  2. #2
    DannyW's Avatar
    It's all good fun...

    Status
    Offline
    Join Date
    Apr 2008
    Location
    Isle Of Wight
    Posts
    405
    Thanks
    386
    Thanked 36 Times in 30 Posts
    You'll find it's usually footer.php just before the closing body tag - </body>

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    319
    Thanks
    18
    Thanked 1 Time in 1 Post
    Quote Originally Posted by DannyW View Post
    You'll find it's usually footer.php just before the closing body tag - </body>
    Thanks for your response. I've installed the code just before </body> tag but Google can't seem to track it. If I'm using the inove theme would the footer.php file be located in /wp-content/themes/inove?

  4. #4
    DannyW's Avatar
    It's all good fun...

    Status
    Offline
    Join Date
    Apr 2008
    Location
    Isle Of Wight
    Posts
    405
    Thanks
    386
    Thanked 36 Times in 30 Posts
    From what you say you've got the right file location...

    Google analytics can take a while to start showing the search traffic as there is a delay/lag, so you won't see them real-time, something like 24 hours I recall.

  5. #5
    Mogga's Avatar
    Chocaholic

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Oldham
    Posts
    8,452
    Thanks
    519
    Thanked 228 Times in 176 Posts
    WordPress › Google Analytics for WordPress WordPress Plugins
    there's a plug in - are you using that?
    --
    Gifts -/ wine,vouchers/Chocolate -/Garden
    Got a bingo site? Want a link. Get in touch.

  6. #6
    Registered User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    509
    Thanks
    78
    Thanked 17 Times in 16 Posts
    Quote Originally Posted by johnny12 View Post
    Thanks for your response. I've installed the code just before </body> tag but Google can't seem to track it. If I'm using the inove theme would the footer.php file be located in /wp-content/themes/inove?
    If you are using the inove theme just go to Current Theme Options, scroll down to where it says 'Add web analytics code to your site. (e.g. Google Analytics, Yahoo! Web Analytics, ...)' and paste your analytics code.

  7. #7
    Registered User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    319
    Thanks
    18
    Thanked 1 Time in 1 Post
    Thanks Danny, got it working. My web webhost was carrying out maintenance on their servers at the same time I was uploading the code to the footer page which is why Google couldn't track it.

    Kylah16 - Just had a look at the theme options; that's look hell of a lot easier. Thanks for that. I'll use that method next time.



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding Merchant aff tracking to wordpress
    By jess1 in forum Programming
    Replies: 0
    Last Post: 30-05-09, 09:59 AM
  2. If you have on-site search and Google Analytics installed...
    By sgpratley in forum Affiliate Marketing Lounge
    Replies: 4
    Last Post: 06-11-08, 05:14 PM
  3. Tracking outbound clicks with Google Analytics and Wordpress
    By jamiecarruthers in forum Analytics
    Replies: 0
    Last Post: 09-09-08, 02:38 PM
  4. Google Analytics: Average Time On Site
    By pintofmilk in forum Analytics
    Replies: 9
    Last Post: 08-09-08, 03:26 PM
  5. Help with adding link to wordpress header
    By hens00 in forum Media Coverage & PR Strategy
    Replies: 2
    Last Post: 02-09-08, 07:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2