We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22289
    • 41 Posts
    My site, for some reason, does not record visitor traffic to index.php?id=1, whereas it seems to report site traffic totals for every other page... I cannot imagine why, unless somehow some permissions are set differently for the home page, although i can think of no reason why they would be.

    Has anyone ever encountered such a thing?
      • 4041
      • 788 Posts
      check the document and make sure you have "Log visits" enabled in the document Page Settings panel would be my first guess.
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 22289
        • 41 Posts
        Yes, that was my instinct too- but ’Log Visits’ is checked...
          • 4041
          • 788 Posts
          I always disable the internal stats anyway, they have caused issues since their introduction so I use bbclone instead smiley sorry couldn’t help...
            xforum
            http://frsbuilders.net (under construction) forum for evolution
            • 22289
            • 41 Posts
            thanks for responding- bbclone, I’ll give it a try
              • 4041
              • 788 Posts
              To add bbclone stats to MODx, follow these simple steps:

              1. Download bbclone and follow the installation instructions. You can install it anywhere on your server, you will have to adjust the path in the next step.

              2. Add the following code at the very bottom of your main index.php file, right before the ?>

              /*-------- BBClone Stats ---------*/
              // add the bbclone page counter stuff
              
              $page_title=$modx->documentObject['pagetitle'];
              
              define("_BBC_PAGE_NAME", "$page_title");
              define("_BBCLONE_DIR", "../bbclone/");
              define("COUNTER", _BBCLONE_DIR."mark_page.php");
              if (is_readable(COUNTER)) include_once(COUNTER);


              adjust the path to your install in the second define line: define("_BBCLONE_DIR", "../bbclone/");

              you can also add to or change what shows in the stats as far as page title, just change the first define appropriately. I use the stats for a few scripts so I add a special prefix.
                xforum
                http://frsbuilders.net (under construction) forum for evolution
                • 7923
                • 4,213 Posts
                You can also find some snippets to pull the BBClone stats to your site here. There is also a plugin to get SlimStats running on your site and some info about Mint.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."