AXS Visitor tracking PHP include with phpBB

Warning: Nerd post. I’m writing this just in case I ever have to reinstall phpBB and forget how to do this.

I use the AXS Visitor Tracking System for tracking hits. Even though I have a plethora of tracking options with cPanel, I just like AXS. A lot. Those who are familiar with it love it.

Small note before continuing:

What is the deal with people saying AXS doesn’t work with PHP? Of course it does, and quite easily. Instead of using an SSI include you just use a PHP include like this: <?php virtual("/path/to/ax.pl"); How hard is that? Just add that code to the tail of a web page. Anyway…

I use phpBB as my comment system. There are two ways to have phpBB track hits with AXS. The first way sucks. The second way is much better.

First way:

Add a JavaScript code to the file [phpbb dir]/templates/subSilver/overall_footer.tpl.

Does it work? Yes - but only for those who have JavaScript enabled, meaning human users. It won’t track search engines because those bots don’t use JavaScript obviously.

Second way:

Add <?php virtual("/path/to/ax.pl"); right before the line of code exit; in the file [phpbb dir]/includes/page_tail.php.

Works much better. Now it tracks everything. Yay. :-)

rss feed for this article's comments

comments and pings are closed for this article

« Some words about the siblingThis is why I love technology »