Hacker News new | past | comments | ask | show | jobs | submit login

There's not really a good server side way to do it unfortunately. All the current alternatives to my knowledge require js.

It depends on your application but the only real alternative is to use a js analytics library to collect the statistics. The good news is that they're more accurate, can give you more information, and there's plenty of self hosted options like Matomo.

But it is yet another thing the client as to load, and adblockers will likely skew your metrics.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact