Monday, August 9, 2021

Open Web Analytics for Dokuwiki

Customized PHP header for Open Web Analytics best suited to dokuwiki :

if($actionkind=='') $actionkind='page';
if($actionkind=='page' || $actionkind=='search') {
        $owa = new owa_php();
//      if(@$_GET['q']!="") $owa->setSearchTerms(@$_GET['q']);
        // Set other page properties
        //$owa->setProperty('foo', 'bar');

It helps sorts the collected data and avoids logging administrative accesses. Note that I did not investigate further to make the "search terms" work Dokuwiki ''q'' argument.

No comments:

Post a Comment