Adding Firestats To PhpLinkDirectory

|
Firestats Logo The only real way to track your SEO success is by looking at your traffic logs or a more human readable version of them. Since Google Analytics does not offer realtime statistics (it was actually offline this morning when I tried to add a new website to my account) it makes sense to have alternatives. One such alternative is Firestats I mention some of its features on my main blog. In order to integrate it with a PhpLinkDirectory install you need to know a small bit about the Smarty Templating engine which the script uses. First of all you need to install a standalone copy of Firestats. If you've managed to install PhpLinkDirectory, then this should not be an issue, however full instructions are available on their site. Once you are up and running you simply need to include a call to firestats on all your pages. The default code is a standard php include eg.: < ?php include('/home/www/www.yourdomain.com/web/firestats/php/firestats-hit.php')?> which needs to be added to all pages within the head tag. To do this open header.tpl, which you'll find in your templates directory. At the very top of the file you should see: < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Immediately after that add the following line (edited to fit your site): {php}include('/home/www/www.yourdomain.com/web/firestats/php/firestats-hit.php');{/php} If you browse your site and then refresh your Firestats you should start to see hits and information. Enjoy!

Categories

,

About this Entry

This page contains a single entry by Michele Neylon published on January 7, 2007 2:36 PM.

Php Link Directory - Changing Page Title Order was the previous entry in this blog.

Google All Yahoo? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.1