122
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!