Ratio of visitors that download Piwik

This report is automatically computed in PHP using the Piwik APIs. In a few lines of simple PHP (you could use any other language) you can get the data and generate this kind of report.

This report is generated in order to see how Piwik.org visitors are interested in Piwik, which we determine by the ratio of visitors that download the software. We also report the number of visitors looking at the online demo.

DateNb visitorsVisitors on /demoDownload latest.zipRatio visitors/demoRatio visitors/download'); foreach($visitsDemo as $date => $values) { $nbVisitsDemo = $values[0]['nb_uniq_visitors']; $nbVisits = $visitsAll[$date]; // var_dump($downloads[$date]); $nbDownloads = $downloads[$date][0]['subtable'][0]['nb_uniq_visitors']; $ratio = round($nbDownloads * 100 / $nbVisits, 0); $ratioSum += $ratio; $count++; $ratioDemo = round($nbVisitsDemo * 100 / $nbVisits, 0); $ratioDemoSum += $ratioDemo; print("$date$nbVisits$nbVisitsDemo$nbDownloads$ratioDemo %$ratio %"); } print(''); $averageRatio = round($ratioSum / $count, 0); $averageRatioDemo = round($ratioDemoSum / $count, 0); print("

Average visitors visiting the demo = $averageRatioDemo %

"); print("

Average visitors downloading piwik = $averageRatio %

");