Piwik als Standard Webstats

  • Hallo und Guten Abend !


    Hat Jemand Piwik schon in der 1.2.9 am laufen wenn ja wie ist er da vorgegangen in der Wiki ist glaube ich noch alles über Apache oder ? wie sieht es da mit Nginx aus da es ja über das Frontend läuft?!


    Kleine Anleitung wäre super.


    LG

  • Piwik ist auch deswegen so mächtig, weil es nicht die Logdateien analysiert sondern normalerweise als Javascript im Browser ausgeführt wird. Deswegen bekommt man u.a. auch mit, auf welche externen Links ein Seitenbesucher so klickt und per Cookie wird bestimmt, welcher Besucher schon mal da war. Dafür fehlen natürlich alle direkten Aufrufe von Dateien in den Statistiken.


    Dafür habe ich unter einer Domain Piwik eingerichtet und in alle anderen Seiten habe ich den Code manuell oder per Plugin (Wordpress) eingefügt.


    Also das was du willst würde zwar gehen, dafür ist Piwik aber eigentlich nicht wirklich gebaut worden.

  • Wobei ich Piwik doch komfortabler als AwStats finde. Ggfs. können die log-Statistiken auch mit nem Javascript-Snippet kombiniert werden. Hierfür kenne ich mich mit Piwik leider aber zu wenig aus.

  • Hello ;



    We could implement piwik as alternative (without forcing customers to add javascript snippet into their site) but the problem is that if for instance we want to parse logs eveny half-hour, we have to also rotate the log every half-hour because at this moment, the piwik log parser don't keeps track of the last log which were parsed. That explain why we haven't implemented it yet.


    A compromise would be to launch the piwik parsing task before the log rotation ( once a day), but that would mean that the statistics would be updated only once per day.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin how does AwStats handle it atm? Without logrotate, just the original Log-files?

  • @Ninos


    Awstats is run through a cron tasks (/etc/cron.d/imscp)


    Code
    1. ...5 3-21/6 * * * root nice -n 15 ionice -c2 -n5 perl /var/www/imscp/engine/PerlLib/Package/Webstats/Awstats/Scripts/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl > /dev/null 2>&1...


    Both, the last logfile and the current one are parsed using logresolvemerge.pl script as specified in each awstats configuration file:


    Code
    1. ...LogFile="perl /var/www/imscp/engine/PerlLib/Package/Webstats/Awstats/Scripts/logresolvemerge.pl -ignoremissing /var/log/apache2/test.tld/access.log.1 /var/log/apache2/test.tld/access.log |"...


    But the more important here is that Awstats keep trace of already parsed logs. This is showed here



    Eg: Found 3 old records.


    This is that part that is missing for piwik.


    Awstats

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @f4Nm1Z9k2P


    Thanks you. I didn't know about this possibility. This is same principe as vlogger. I'll see if we can implement that.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206