Title: phpStats help
Last modified: August 18, 2016

---

# phpStats help

 *  [dinobaby](https://wordpress.org/support/users/dinobaby/)
 * (@dinobaby)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/)
 * Hello, I downloaded phpstats, and installed it with no problems, however, they
   provide a string of code that you are supposed to put on every page that you 
   want monitored
    eg: `<?php define('__PHP_STATS_PATH__','/env/data/www/sitename/
   htdocs/stats/'); include(__PHP_STATS_PATH__.'php-stats.redir.php'); ?>
 * I put it in index.php inside my current templates dir and seem to track just 
   fine, but it only monitors the main page, not the posts pages, and I belive this
   is because the string is supposed to be in that pages code.
 * So the thing is: how do I add this code to the previous posts pages and how do
   I make sure it is implemented in new posts?
 * Thank you

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/#post-166375)
 * Try putting it in footer.php instead.
 *  Thread Starter [dinobaby](https://wordpress.org/support/users/dinobaby/)
 * (@dinobaby)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/#post-166376)
 * Hi macmanx, and this will allow phpstats to monitor every posts page?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/#post-166378)
 * As long as the footer is loaded in every page, which it is for most templates.
 *  Thread Starter [dinobaby](https://wordpress.org/support/users/dinobaby/)
 * (@dinobaby)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/#post-166380)
 * ok i will try that and let you know
    thanx 😛
 *  Thread Starter [dinobaby](https://wordpress.org/support/users/dinobaby/)
 * (@dinobaby)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/#post-166381)
 * worked like a charm, thank you so much =o)
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/phpstats-help/#post-166382)
 * Glad I could help.
 *  [jorgent](https://wordpress.org/support/users/jorgent/)
 * (@jorgent)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/phpstats-help/#post-167161)
 * I have some questions too 🙂
 * How do the Clicks option work? I tried to paste the urls for my categories into
   the Clicks Admin, but in the clicks overview the status is “Broken link!!!”. 
   Why?
 * And about that code they provide, is it enough to put it in the footer.php? I’ve
   pasted it into all my pages in the theme editor (except the stylesheet). Is that
   not necessary?
 * Thanks.
 *  [jorgent](https://wordpress.org/support/users/jorgent/)
 * (@jorgent)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/phpstats-help/#post-167162)
 * Can anyone help me please? 🙂
 *  [jorgent](https://wordpress.org/support/users/jorgent/)
 * (@jorgent)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/phpstats-help/#post-167172)
 * I still don’t know how the Clicks works. Can anyone please help? I don’t want
   to start a new thread since I can ask here.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘phpStats help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [jorgent](https://wordpress.org/support/users/jorgent/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/phpstats-help/#post-167172)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
