• Statcounter.com

    From Harriet Bazley@21:1/5 to All on Mon Sep 27 14:25:47 2021
    I've been using https://statcounter.com for many years, but with every
    site revamp it has become a little more unusable; for the last year or
    so I've resorted to downloading the entire log data and inspecting it
    manually in order to see which pages have received hits recently (the
    only level of data I was ever particularly interested in).

    But at some point in the last couple of weeks the site has now disabled
    that feature unless you 'upgrade' to a paying account, which I have no intention of doing since most of the 'basic' features are no longer
    accessible from NetSurf as it is. The e-mailed traffic breakdowns
    simply list number of page views without giving any indication as to
    which pages were affected, e.g. one person viewed five pages on
    Wednesday but there no longer seems to be any way to tell which pages
    they were. I can get a list of the most popular 'entry pages' and of
    the pages which received most hits overall, but I can't find a way to
    access the most *recent* page hits - which is what I actually wanted to
    know!

    The list of search strings that resulted in hits was disabled long ago,
    when Google decided to encrypt that data as presumably commercially valuable....

    --
    Harriet Bazley == Loyaulte me lie ==

    Save energy: be apathetic.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tim Hill@21:1/5 to harriet@bazleyfamily.co.uk on Tue Sep 28 19:17:48 2021
    In article <93e58a7259.harriet@bazleyfamily.co.uk>, Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:
    I've been using https://statcounter.com for many years, but with every
    site revamp it has become a little more unusable; for the last year or
    so I've resorted to downloading the entire log data and inspecting it manually in order to see which pages have received hits recently (the
    only level of data I was ever particularly interested in).

    [Snip]

    If your server can run PHP scripts (this works with WebJames w/PHP!) your
    pages can write their own log files.

    <?php
    $line = date('Y-m-d H:i:s') . " - $_SERVER[REMOTE_ADDR] - $_SERVER[REQUEST_URI]";
    file_put_contents('visit.log', $line . PHP_EOL, FILE_APPEND);


    e.g. rename index.htm to index.php and add the above snippet at the top,
    before the HTML (or include() it!). If the visit.log file doesn't exist,
    the first visit to a page containing this code will create it.

    N.B. Don't use something this simple if you expect thousands of visitors
    an hour!!!

    --

    Tim Hill
    Webmaster, https://timil.com

    websites : php : RISC OS

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)