Hacker News new | ask | show | jobs
by Pannoniae 1079 days ago
Or even if you don't want to use your web server's logs for this purpose for whatever reason, this is quite trivial to implement in JS yourself. No need for GA and other bloated analytics frameworks.
2 comments

If you could trivially implement Matomo (a project that has been developing over 16 years) in JS, please open source it. Would love to get rid of the PHP in our stack.
If you're using the docker container it really shouldn't matter.
Security risks still there.
Well, you still need some kind of backend to store the data. You can send it to a 3rd party, but then you'll run into all the same GDPR issues.
If the website is not just a static html page, there is likely a web-server with a database that can store information.
Oh, sure, but a LOT of websites are static html pages — or, at least, should be.
> all the same GDPR issues

Not necessarily. If I read the article correctly, it is about sending data to the US:

> The complaints allege that the companies, in violation of the law, transfer personal data to the United States.

So if the 3rd party is inside the EU, you might be fine. Or at least you may run into different GDPR issues.