1
eric235u
Yahoo Site Statistics HTML question
  • 2005/2/26 16:06

  • eric235u

  • Not too shy to talk

  • Posts: 149

  • Since: 2004/12/19


Hi all. I'm no programmer so please forgive this simple question. My little site is hosted at Yahoo and I desire to use their statistics. Where (on what pages and where within the page) should I insert this, Yahoo Help PHP. Just incase the link sucks the code in question looks like this,

"To generate Site Statistics reports on your PHP pages, you'll need to manually add the following code to each page for which you'd like to collect data. This code will send a request to the Yahoo! server that collects statistics for your site.

<!-- Counter/Statistics -->
<?php $TimeStamp = time();
$VisitURL = "\"http://visit.webhosting.yahoo.com/visit.gif?".$TimeStamp."\"" ?>
<script language="JavaScript" src="http://hostingprod.com/js_source/geov2.js"></script>
<script language="javascript"> geovisit();</script>
<noscript><img src=<?php echo $VisitURL ?> border="0" width="1" height="1">
</noscript>

Tip: Rather than inserting the entire block of code into each page, you might consider using an include file or adding the code to a common file that is attached to each page using PHP's auto_append_file function. "

Thanks for helping a newb out!

2
eric235u
Re: Yahoo Site Statistics HTML question
  • 2005/2/27 15:55

  • eric235u

  • Not too shy to talk

  • Posts: 149

  • Since: 2004/12/19


Well I just pasted the code at the end of the index.php file. It's not working for my home page but is working for .../modules/<whatever>/index.php. Well, not really working, just giving me number that I don't think are true. :( Not sure why. To bad. I'd like to use their stats if I could. If anybody has solved this please let me know. Thanks for any tips.

3
wtravel
Re: Yahoo Site Statistics HTML question

I think it will work when you put the code in the theme.html file in the theme directory you are using on your site. Put the code just below <{$xoops_js}>, or some place else between the <head> tags.

Hope this helps.

Martijn

4
eric235u
Re: Yahoo Site Statistics HTML question
  • 2005/3/1 16:48

  • eric235u

  • Not too shy to talk

  • Posts: 149

  • Since: 2004/12/19


Well it was a good idea, but no luck. The results are not accurate. Yahoo stats state that nobody visited my site sunday and only one person yesterday. Not true. Oh well I give up with them. I'll try using one of the modules to track visits. Thanks anyway.

5
eric235u
Re: Yahoo Site Statistics HTML question
  • 2005/3/5 3:06

  • eric235u

  • Not too shy to talk

  • Posts: 149

  • Since: 2004/12/19


Xoop-Stats solved my problems. Very cool module!

Login

Who's Online

207 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits