• 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

    (@macmanx)

    Volunteer Moderator

    Try putting it in footer.php instead.

    Thread Starter dinobaby

    (@dinobaby)

    Hi macmanx, and this will allow phpstats to monitor every posts page?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    As long as the footer is loaded in every page, which it is for most templates.

    Thread Starter dinobaby

    (@dinobaby)

    ok i will try that and let you know
    thanx 😛

    Thread Starter dinobaby

    (@dinobaby)

    worked like a charm, thank you so much =o)

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Glad I could help.

    jorgent

    (@jorgent)

    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

    (@jorgent)

    Can anyone help me please? 🙂

    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.