[SOLVED] Visits not being logged


#1

I just installed Piwik on a VPS I am going to use for stats, installation went very smooth. Tracking code has been added to my test site, and the browser is successfully making requests to Piwik (204 status code being returned).

There is nothing in the error logs, and access logs show success.


69.xxx.xxx.xxx - - [23/Oct/2015:20:19:03 +0000] "GET /piwik.php?action_name=Latest%20Posts%20%E2%80%93%20no%20no&idsite=1&rec=1&r=385127&h=16&m=19&s=3&url=http%3A%2F%2Fblog.no.com%2F&urlref=http%3A%2F%2Fblog.no.com%2Fguard-spork-setup%2F&_id=0a908613051b80ed&_idts=1445629164&_idvc=1&_idn=0&_refts=0&_viewts=1445629164&send_image=0&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=1&res=2560x1080&gt_ms=59 HTTP/1.1" 204 0 "http://blog.no.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"

The database doesn’t register views.


MariaDB [piwik]> select * from piwik_log_visit;
Empty set (0.00 sec)

MariaDB [piwik]> select * from piwik_log_action;
Empty set (0.00 sec)

php error logs have been turned on, they remain empty after sending multiple tracking requests to the piwik server.

Any help would be appreciated.


#2

I’ve turned on debugging, and its turns out this is my fault. I am sending the do no track cookie, and piwik is dropping it (as it should).


#3

I’m glad the issue is resolved. How did you enable debugging?


#4

This link describes how to enable debug mode for tracking: Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3