matomo

PIWIK GeoIP (PECL) giving unknown location

早过忘川 提交于 2019-12-10 08:23:14
问题 I have installed piwik successfuly on my system. But geoIP location is not working. I have followed guide at piwik FAQ to configure GeoIP Geo location by PECL extention. But is is always showing According to this provider, your current location is: Unknown I have also placed GeoIPCity.dat in /.../piwik/misc/ but same error. I have also tried GeoIP (Php) but nothing changed. What is the problem. I am using centos on my server. 来源: https://stackoverflow.com/questions/34087377/piwik-geoip-pecl

How to use Piwik device detector in php project?

笑着哭i 提交于 2019-12-09 17:40:38
问题 I want to use php device detector that is part of famous Piwik project, but i can't understand how to include and use the code in my php code? i don't want to use composer. I wrote: <?php include 'DeviceDetector.php'; use DeviceDetector\DeviceDetector; use DeviceDetector\Parser\Device\DeviceParserAbstract; $dd = new DeviceDetector($_SERVER['HTTP_USER_AGENT']); $dd->parse(); $clientInfo = $dd->getClient(); var_dump($clientInfo); But it doesn't work. i get this error: Fatal error: Uncaught

Dynamic inclusion of piwik code by means of server side filtering inside apache server

▼魔方 西西 提交于 2019-12-07 05:54:16
问题 After a few hours of fruitless attempts I would like to ask you all for a little assistance with a simple setup: For a bunch of web applications and sites I run using the apache2 http server I use Piwik for a simple statistical overview. That works fine. What annoys me is that with every additional app/page and every update/upgrade I have to take care to manually maintain the javascript code required by piwik to be included into the html markup. To simplify that maintainance I want have that

How to use Piwik device detector in php project?

℡╲_俬逩灬. 提交于 2019-12-04 06:24:49
I want to use php device detector that is part of famous Piwik project, but i can't understand how to include and use the code in my php code? i don't want to use composer. I wrote: <?php include 'DeviceDetector.php'; use DeviceDetector\DeviceDetector; use DeviceDetector\Parser\Device\DeviceParserAbstract; $dd = new DeviceDetector($_SERVER['HTTP_USER_AGENT']); $dd->parse(); $clientInfo = $dd->getClient(); var_dump($clientInfo); But it doesn't work. i get this error: Fatal error: Uncaught exception 'Exception' with message 'client parser not found' in D:\DeviceDetector.php:214 Stack trace: #0 D