matomo-php-tracker
matomo-php-tracker copied to clipboard
PHP Client for Matomo Analytics Tracking API
Sometimes there's a problem with DNS and an address cannot be resolved. Then sadly, the tracker crashes out: [11-Aug-2022 00:17:31 Europe/Berlin] PHP Fatal error: Uncaught RuntimeException: Could not resolve host:...
I [have noticed](https://github.com/NicoHood/grav-plugin-matomo/issues/1) that on the first page reload of the day the website loading is slow. This is caused by the php tracker. Possible reasons: * DNS resoltion *...
Hi, the curl request could work faster when added options like these: CURLOPT_TCP_FASTOPEN => true // https://curl.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4 // https://curl.se/libcurl/c/CURLOPT_IPRESOLVE.html -> shoud me maybe a setter method for...
https://developer.matomo.org/api-reference/PHP-Matomo-Tracker#dotrackpageview > Returns: mixed — Response string or true if using bulk requests To me it is not clear what the return value can be used for. It is just...
https://developer.matomo.org/api-reference/PHP-Matomo-Tracker#disablesendimageresponse I am using the following code: ``` $matomoTracker->disableSendImageResponse(); $ret = $matomoTracker->getUrlTrackPageView($page->title()); ``` When I open the url at $ret I always see a gif image instead of a 204...
Are there any plans for PSR-7 support? It would be great if we could set up tracking and then get a PSR-7 request from the tracker to send it out...
When I set piwik_ignore cookie, actions is still logged.
Because `$URL` is a constant and not a property of the class: https://github.com/piwik/piwik-php-tracker/blob/1.0.0/PiwikTracker.php#L32 ``` $tracker1 = new \PiwikTracker(1, 'http://demo.piwik.org/piwik.php'); $tracker2 = new \PiwikTracker(1, 'http://apache.piwik/piwik.php'); ``` Both tracker instances will use...
See https://github.com/matomo-org/matomo/issues/16569 to learn more about the problem it fixes and visit https://developer.matomo.org/api-reference/tracking-api for more documentation about the new `ca` parameter. Basically, we should be sending `&ca=1` along any tracking...
As title. Currently no tests, there will be some after #77 is merged, but most of the code will be untested.