Google Analytics alternative that protects your data and your customers' privacy
matomo.org
matomo.org
ClickHouse: Piwik PRO, Plausible, PostHog, Yandex, Cloudflare
Snowflake: Amplitude, Piano, Snowplow
SingleStore: Fathom
I've written a book on the subject including evaluating the 15 most widely used options: https://gaalternatives.guide
I've never actually run into performance issues, neither when using it in production professionally, nor for my self-hosted sites (with Matomo always running on-prem). I'd say the performance of PHP and MySQL/MariaDB is most likely decent as long as you don't go too far into specialized workloads, for example log aggregation/tracing; though even some APM solutions like Apache Skywalking also support using traditional RDBMSes for this purpose as well: https://skywalking.apache.org/docs/main/v9.0.0/en/setup/back...
That said, I can't help but to wonder at what actual scale (number of logged events/second, given certain hardware) you'd run into issues. Luckily, because adding basic analytics is usually quite easy, testing this for your own workloads shouldn't be out of the question - then you can let the data speak for itself.
When I eval'd it for my book last fall there were big delays in reporting waiting for segments and then also issues with custom reports. I think they have changed the default behavior to get around some of the former, but with MySQL it's always going to be tough for larger queries.
(if there's any performance issue on the measurement side it has more to do with the JavaScript payload because they include a lot in their standard JS bundle).
MySQL was too slow for running analytics on a single website? How much data are we talking about?
I'm building UXWizz, which is on the same stack, and in my experience on a single server you can track up to 10-15 million sessions total (~1M sessions per month, with 1 year retention). To scale, for now I made it so you can have one database per domain, so the data is sharded by domain (if you are tracking multiple domains).
The biggest bottleneck is querying a large dataset, the storing of data seems to work pretty well. You could of course archive the data and automatically create stats using cron jobs, but this leads to a lot less filtering options and not so fresh data.
https://buttondown.email/comparison-guides/google-analytics-...
GA4 migration seems not aimed at general users, so I'm looking at alternatives. Ideally could import my data.
Plausible is much simpler than UA, all the reporting is on one page and it has much more limited config options. It also can import your UA data. If you're looking for a simplified GA alternative it's a very good choice. (Full disclosure, I recently published an article on their blog about UA vs GA4: https://plausible.io/blog/ua-vs-ga4)
I'll have a look, seems promising.
Good luck!
As I said in another comment, it's been eight years since I used that accursed interface, and I'll be ready to try it again once the flashbacks go away.
Are you talking about CNAME cloaking? Pretty sure Apple only cares if one specific server gets all the CNAMEs. It doesn’t block CNAMEs in general.
You, the website owner, can control what your server does in response to HTTP requests a client makes. You control what data is sent, and under what conditions you'll send that data (ie: presence of a valid session cookie, correct username/password, cryptographly signed request, etc).
I, the user owning a computer, get to control what my computer does. I run a web browser, and can choose what happens in response to data your site sends me via HTTP.
Most notably, your site can send some javascript, but my computer doesn't have to run it. My computer can also selectively block what it does, including limiting its access to initiate web requests to other sites.
Anything beyond this is artificial, such as laws like DMCA or CFAA.
>>> You can write your own code to gather statistics
>> You should respect your user's desires and not gather statistics
> The users aren't the only ones with desires
Sure, whether or not you "can" do it is black and white (and a game of whack-a-mole many times), but whether or not you "should" do it is very much a gray area.
It’s like going to pee when an ad appeared on TV back when TV was a thing. The broadcaster and advertiser had no control.
I am sympathetic to your desire (I’m assume your desire comes from a good place),* but at the end of the day I think we want to live in a world where the people are the important part.
* in my experience the best sales people really do believe the prospective customer does want what they are selling, be it pantyhose, homeopathic drugs, or specially formulated window washing fluid.
A site owner observing some general, anonymized stats like visitor and page count, which outbound links are clicked, os, screen size, time on page and what have you is quite different. I understand a blocker must go all the way and cannot distinguish between these cases. Hence my effort to find an alternative.
They are against the website chosing to not pay for it and instead getting it for free in exchange for giving all that data to a 3rd party (like GA / Google), who then uses it for its own purpose.
Doesn't mean no people are against that first scenario too, but then they better not make an account, visit several pages in a row on the same website or want to use a cart, or essentially anything beyond a static website.
Both scenarios are widely different, and convincing people on both side (even both extreme) of that line that the line doesn't exists is one of the greatest and most successfull trick tracking companies have played.
Such a distinction would need an option and have to be on by default. Most people use the “out of the box” config, so only a few people (like me) would enable honest tracking.
The blockers would have to keep up with this option to make sure the thing they allow hadn’t switched to evil mode.
And so on. Basically another case where bad actors like google poisoned the well.
What does this mean?
Matomo promises to not do the same link across properties on their cloud hosted version.
Writing your own analytics can give some additional benefits in that you are only collected what you need while taking into considerations your users needs. I expect however that in time browsers will block more and more by default, similar in how email clients and services has progressed in their arm race with spam.
Google Analytics is FREE and won't cost most us a dime. If you want to charge me a dime, you need to make your product worth that extra dime to ME. Note that even healthcare companies use Google Analytics here in the US.
Self hosting is easy. That's a plus.
I also like the interface. Took a while to get used to it but after that, I liked it even better than Google Analytics.
But one problem that seems unsurmountable is that it tries to be clever. And while trying, it messes up your data.
If you have pages with a parameter in the querystring that is called "q", Matomo does not count those as pageviews. It tries to be clever and only count those as "searches". Probably because many site searches use a parameter "q" for what the user is searching for.
Even if a page is a search result page, it should be counted as a pageview.
The problem gets even worse when you have users bookmarking pages with a "q" parameter. Then things get really messy when you try to understand which pages users use, where they come from etc.
I have searched a lot, but have found no way to disable this "cleverness". And no way to retroactively fix the data.
I would expect those pages to be included in the data. They could offer some sort of segmentation if they think they they can separate out searches, though.
Matomo and GA's trackers both allow sending the query to a URL of your choice. Treat the analytics system as an index over the logs, rather than treating the logs as an auxiliary artefact of the analytics system
That said people love analytics, it is a powerful tool.
Not sure what you mean with rollups. And not sure what I am supposed to link.
These are just some of the things you have to manually install, this is except all the plugins you have to buy. Upgrade Matomo and not miss analytics. Good db performance. Secure installation. What is both bogging down performance.
On prem is a lot of work, and not something i want to approach lightly.
It's not your data, this data about me.
> Your customers will love you because their valuable personal data is protected.
I guarantee you your customers will not love you for tracking them.
[citation needed]
- Thanks. we will migrate - we did and it was <good/bad>
More or less everyone is after $.
They may not be alternatives you like, but they are alternatives. And for many people a paid option may be better once they start looking at why the free thing is free.
> Because it does not use cookies there is no need to show cookie banner for this service.
which is a blatant lie/misinformation. The ‘cookie law’ has nothing to do with the actual use of cookies.
A similar (but better, IMHO) site that focuses just on analytics is: https://newmetrics.io/
So if you are not using anything but essential cookies on your site, you don't need a banner.
Why does that "grind your gears?"
The term "bottoms up" is (unless I'm missing something important -- am I?) just the plural of "bottom up."
And given that the phrase is an admonition to drink what's in your container (hence seeing the bottom of the glass pointing up), it's usually (although I suppose it could be more prevalent when drinking alone, but I guess we'll never know) offered among a group (two or more) of folks, making "bottoms up" appropriate as it refers to more than one "bottom."
Again, I could be missing something important here. If so, please enlighten me.
Edit: Fixed typo.
"bottoms up" means to turn your alcohol glass upside down, so the bottom is up, a euphemism for drinking from your glass
"bottom up" is an order of operation, starting at the bottom, working your way up
>"bottoms up" means to turn your alcohol glass upside down, so the bottom is up, >a euphemism for drinking from your glass
>"bottom up" is an order of operation, starting at the bottom, working your way up
That makes more sense now. Thanks! Makes me wish I hadn't taken a tops-down approach to my initial reply. :)
[1] https://www.rudderstack.com/replace-google-analytics-4-guide... [2] https://www.thoughtworks.com/en-us/radar/platforms/ruddersta...
https://blog.google/products/marketingplatform/analytics/pre...
> All standard Universal Analytics properties will stop processing new hits on July 1, 2023.
We currently use Google Analytics to understand how users move through our app. We also used Matomo (previously Piwik) 5 years ago.
Now Google Analytics on iOS will stop working for users unless they update our app? It doesn’t seem to say anything: https://developers.google.com/analytics/devguides/collection...
It’s likely not just in Europe anymore. Privacy seems to be a tend that is on the increase everywhere. But as I understand it, things move to the top of HN if they are interesting to a lot of people, and privacy is interesting to a lot of people these years. Not just to the “nerds” either, at least I tend to see more and more discussion on it outside of tech circles. In the EU specific you do have the very real “motivation” of dropping Google Analytics because using it puts you in the lovely area of breaking the law.
The matomo analytics are captured and stored on-premises on my server (nothing goes to the cloud).
Performance is good with my configuration. You can see page performance for yourself by loading this page: https://freesoftware.life/how-to-install-kubuntu-23-04/
[1] https://matomo.org/faq/general/requirements-for-log-analytic...
Does it use cookies and browser storage?
If you want a GDPR compliant analytics you have to disable many of its flagship features, or use something else like Plausible, designed to work with no consent.
Real time data like visitor data and heatmaps aren't allowed, also IP tracking is not allowed too.
Because matomo can be very powerful, more powerful than Ganalytics.
You can let it assign a unique id to every visitor if it visited a subdomain and logged in, so you can now exactly who each visitor is on all of your sites.
https://matomo.org/faq/how-to/how-do-i-configure-matomo-with...
If all you so is collect how often your pages are being visited then you're not collecting any PII and you don't need a banner, but if you're tracking visitors based on unique identifiers (cookies, IP addresses, etc.) you'll need to get consent first.
p.s., Under the covers Clarity runs on ClickHouse.
So thanks but No thanks
We don't need tracking at all and bloating up and slowing down websites.
However I make money from running a website which is really useful to a lot of people. I absolutely need to know what works and what doesn't. I can't write and edit in the dark, possibly missing by a mile what my readers really need. It would be like flying a plane without instruments.
For instance, I see that a lot of people use the search to find a single guide, which should definitely be linked on the home page. Without basic tracking, I wouldn't even know which pages are important to my users.
There are many gaping holes in your website that you could be completely blind to without a basic sense of what your users do on your website.
I also caught many illegal copies of my website through referrer tracking. Three of them were phishing websites, and I got them shut down.
So there are many legitimate reasons to have basic traffic counters, and you can have those while respecting your users' privacy and following the spirit and the letter of GDPR.
Send a whole bunch of plausible events, pretending to click every link, changing your identifiers and stuff like resolution every time, make it impossible to determine what data is real and what isn't. Bonus points for leaving websites alone if they don't load tracking scripts until you've consented.
We can't stop trackers, but we can try to make them useless. Even if they filter out such tracking they shouldn't be able to figure out what data was real, making their tracking attempts worthless.
That said, I don't think this is an effective strategy at all. Safari has placed a big giant hole in tracking (like 20% of users) and lots of sites are still proceeding like nothing has changed. Google referrer spam was run at mega-scale dumping billions (at least) of spam hits into millions of profiles and didn't effect tracking efforts.
A plugin run by .0001% of users or whatever that adds in a bunch of slop to the numbers just makes more analysts pull out their hair rather than leading to change.