203 points · by luxurytent · 6y ago · 89 comments
Plug: those who want a modern client-side analytics tool that’s free, self hosted, and open source might consider Shynet [0]. (Disclosure: I maintain it.) It’s a bit simpler/cleaner than Matomo, but exists in the same category.
Any non-Google analytics options integrate well with Google Ads, especially for retargeting?
Using marketing parameters (like utm-... in GA or Matomo) or the likes in any other tool still gives you clear marketing performance metrics in your analytics solution of choice, though.
And a lot of "pure" tracking tools would - at least currently - not fall under the opt in rules of thew GDPR. But the moment you link them with your advertising profiles (like in GA with the DoubleClick integration) your whole tracking setup also becomes opt in. So you would probably loose at least some share of your traffic in analytics and not be able to clearly do marketing analysis any more. At least not as exact as before.
I had clients loosing 80% of their traffic stats in analytics after shifting to opt in.
The Advertising Cloud is integrated with many third-party advertisers.
I'm just a software engineer, though. We probably demand an extremely high price.
> The thing I'm interested in when using Google Analytics is tracking user path to see the bounce rate in a checkout process for example
There are lots of ways to get this data direct from the servers, and much, much more reliably and effectively.
> You can calculate conversion rates for different user segments.
Maybe. You only have data on those people who don't have adblockers that block GA. Which is a sizable segment of the internet. Also that they're not using a VPN, etc. Stats collected via GA are inherently less reliable than stats collected from your own site because GA is easily blocked.
Plus, there have been reports since forever that GA's stats are just not that reliable in the first place.
I've experienced this myself - I used to admin a WP blog, and the numbers from the site log and GA were around 20% different.
If you're relying on GA stats to calculate the results of any a/b testing, then you need to put in at least a +/- 25% error factor (i.e. if the A test converts 10% better than the B test, you have no idea whether that's a real thing, or a product of GA giving you inaccurate data - you'd need at least a 25% swing to begin to think it might be a real customer preference).
> Developers often miss the point of GA, because they do not work in sales.
Yes. But have you listened to their objections, rather than dismissing them as "not working in sales"? Developers do have some knowledge of this subject. And there are lots of ways of getting this data that doesn't increase page load and compromise security like GA does.
You'd be surprised how many marketers don't understand this key point. Those that do just don't care. I'd argue it's part of why the internet is being dumbed down (because people without adblockers are the only ones with a voice).
Just to clarify, because as far as I know from some years in the industry, in every tool I got to know a "Bounce" is defined as a single tracking hit from a user id without further measured activity.
Meaning after the first measured page view (the entry to the site) leaving the site couldn't be called a bounce.
None the less: If one is interested in a user privacy aware solution to replace GA with a focus on funnels, eCommerce, and such I would probably (up to a certain scale of traffic) recommend to take a look at Matomo (former Piwik). Can be run on your own server, has a lot of the basic functions of GA, a great API, can be used to do goal/path analysis as well as marketing performance reporting.
If a company/site reaches a certain scale I would probably recommend to use a paid solution like Adobe Analytics (or paid GA), after having done an evaluation into the real needs of said company/site.
- Is supporting IE11 financially justified?
- Which articles generate the most income, and why?
- Which components are useful, and which are just noise?
- Where are my visitors from? (it affects how I can help them)
Server logs can tell you that.
> Which articles generate the most income, and why?
Your affiliate partner will tell you which links bring what income assuming you're using unique links.
Otherwise the server logs will give you a good page view count. Sure, it'll include bots, but bots that have no interest in the content would tend to be randomly distributed across all articles and thus not skew the results too much.
> Which components are useful, and which are just noise?
Not sure what you mean by components? If you're talking about different links or forms (like a newsletter) then the forms would also generate log entries on the server and can be counted there.
> Where are my visitors from?
Server logs and GeoIP.
I see nothing here that justifies ratting out your users to Google just to save a tiny bit of effort.
They can't tell me how much money those users actually bring me. 70% of my content is not monetised.
> Your affiliate partner will tell you which links bring what income
My affiliate partners go from Amazon to people who fax things around. Their data is not always accurate or complete, if they gather it at all. I used Google Analytics to spot many such problems in the past.
> the forms would also generate log entries
That would just confirm that a form was submitted. It won't tell me on which pages it performs poorly. It won't tell me that people opened a collapsible, but didn't like its contents.
> Server logs and GeoIP
The point isn't just to know where users come from, but how to better serve them. Server logs won't answer questions like "are there enough non-EU, Spanish-speaking visitors to warrant translating this page?"
> I see nothing here
It might have something to do with myopia. Your judgements are based on inaccurate preconceptions of how websites operate.
Easy: use a 1st party self-hosted tracker (matomo/piwik), anomnize last digits of IP, respect DNT and provide an optout (matomo provides an embeddable widget) on your privacy policy page.
And bam, no legal need for cookie consent OR notification! No popup at all! And you still get perfectly usable statistics for most applications.
Receive users’ consent before you use any cookies except strictly necessary cookies?
Couldn’t find the forum post it’s referring to.
[0]: https://github.com/matomo-org/matomo/issues/15425#issuecomme...
This solution takes your server log files and does an analysis/reporting based on that. As these log are written, when the browser accesses the resources (sites) you get clear stats oof how often your resources (sites/files) got requested.
As others stated nobody will filter out bots for you. So this will inflate the numbers with traffic from "none users". But also "adblock users" will show up.
As always - web stats are but an approximation of the real world. Their analysis depends on a lot of factors. From experience with different clients I know of cases were AdBlockers blocked up to 25% of traffic from showing up in analytics on sites with a more tech savvy audience.
This doesn't work anymore. uBlock Origin, Pi-Hole, and many others do CNAME inspection to uncover the true host.
Surely you jest. I had to quit using GA because the tech behemoth with all it's tens of thousands of software and algo experts couldn't figure out how to filter out referrer spam from their analytics.
Such a simple problem you'd think they'd solve it in a day. I gave them 2yrs and they still couldn't solve that problem so I left.
It is not by default, but you certainly can self host it, and the author has been quite open about that being a viable path for people interested in doing so. I self host GoatCounter myself and it works very well.
[1] https://github.com/zgoat/goatcounter/blob/master/docs/sessio...
Exactly, the marketing/communication/sales people need those bits in a UI, they need tools to analyze those bits easily, mark them for specific analyzes and to share reports.
* We allow our users to bypass ad-blockers and exclude themselves from tracking their own page views (https://usefathom.com/blog/custom-domains-embed-code)
* We are both full time on Fathom, bootstrapped (we've turned down millions in VC) and profitable (https://usefathom.com/blog/quit)
* We are adding in unlimited uptime monitoring on Friday (SMS, Telegram, Slack and email notifications)
* We run on auto-scaling infrastructure and are used by individuals, small businesses, governments and some of the biggest companies in the world
There are companies that live and die by analytics and demographics but your personal blog doesn't need the information that GAnalytics sucks up.
GoAccess (suggested in a article) is a fine choice, although I found it did not do a good job of filtering out bot hits. For most people this might not be a big deal but it annoyed me.
In the end I just wrote[0] a simple hit counter that triggers off a js beacon.
It's cheaper than Simple Analytics (mentioned in the article) and no data is sent to a service operated by a 3rd party because it's self-hosted.
If you are using a CDN then I’m assuming that multiple access.log files need to be aggregated at some point unless the CDN has a service that automates the process. Logstash and the full ELK Stack (or alternative) seem to be required when multiple heterogeneous servers are involved in serving content. Browser-side JavaScript analytics seems to avoid the DevOps surrounding the ELK Stack. GoAccess seems like a minimalist solution when you control a single httpd-style server and can run a local daemon to process the access.log file.
As a side note, it looks like you need an Enterprise account to use Cloudflare’s Logpush Service or Logpull API. Amazon’s CloudFront has an advantage here.
Avoiding Google Analytics is non-trivial for the lazy and/or price conscious.
Also usage of javascript doesn't make one page non-static. Static is usually referred to a page that is rendered in full before a request comes in so the content does really change based on the request. More simply, content doesn't change dynamically based on the request. Having javascript to generate metrics doesn't make the page dynamic.
Analysing server logs also makes it harder to filter bots, and won't include some useful metrics like screen size.
* No javascript.
* Does not need a database.
* Realtime stats in html format.
I use it in my blog, but also believe, that the numbers are completely inflated. I don't trust them. This has been discussed on Github a few times [1], so don't expect accurate numbers (yet).
It's also hard to see what's going on recently on you server, because you only get totals. I'd love if I could change the time interval of the shown html stats.
I like the way GoAccess is going though and I hope it will improve.
[1] https://github.com/allinurl/goaccess/issues/964#issuecomment...
> I'd love if I could change the time interval of the shown html stats.
GoAccess displays the data that you pass it. So while it doesn't have any date filter option (at least the last time I've checked), you can just filter your logs beforehand. There's even a more simple solution that I'm using: Set the logrotate to a specific time frame (e.g. weekly), so you can pass "access.log" to GoAccess to only get the latest stats. You can still pass "access.log*" to get ALL stats at the same time.
However, even if the numbers may not be accurate, you still see overall trends, which is valuable.
And thanks for the log-rotation trick. I will definitely make use of it.
On the other hand a lot of browser plugins or privacy/incognito mode kill analytics and do not have any effect on your log files. This would lead to higher numbers in your log files as well.
So I would expect somewhere between 10% - 25% increased numbers from your log files depending on the audience you serve and the overall traffic volume your site has.
At least this were the numbers some years back, when we did some additional backend tracking for some clients, were we linked the front end tracking tool ID (from the cookie) to the tracking hit being sent from the backend with additional information. Back in 2015 it was between 7% and 19%, in 2018 (before GDPR kicked in) it was 'tween 15% and 27% of backend tracking hits that did not have a frontend ID associated with them. So we knew the amount of tracking calls that had FE tracking blocked.
One of the signals is from various JS properties though (navigator.webdriver, window._phantom), so you'll miss out on that. I have some other ideas as well.
Either way, it's better than nothing?
Non the less one doesn't need to use log analysis and py2.X if you want to use Matomo as a GA replacement in the frontend.
So yeah - they should fix the log analysis part with py2 -> py3. But that doesn't invalidate the whole tool imho.
I'm working on a Google Analytics alternative myself [1] and we make it clear that it is not meant as a clone or a full blown replacement of Google Analytics.
Some people are fine running GA and are happy to integrate with Google Ads and the rest of the Google ecosystem.
On the other hand, some would prefer to focus more on privacy of their visitors or on not having to get cookie / GDPR consent or on having a faster loading website or support a more independent web etc. And alternative solutions to Google products such as these are more meant for those use cases.
Server side analytics advantages: - No overhead on your website, because no external resources are loaded - Not affected by content blockers - Can track resources other than web pages, like images or redirects - Show resources that could not be found
Client side analytics advantages: - Can capture more data about the user, like device size, browser and OS - Better track user behavior, like time spent on each page - Provide real-time feedback about visitors - Usually easier to setup (3/8)
I've been playing around with different analytics options on my blog recently - Netlify on the server and Plausible Analytics on the client side. The results from 7 days comparison turned to be quite different [0].
The server side tool shows much more views across all pages in my blog. I think this is because the pages are accessed many times from automated systems that don't run JavaScript and are therefore not counted on the client side. This happens when you post a link on Twitter or WhatsApp for example, because their websites or clients then make a request to fetch the metadata of the page and display a card preview. Therefore, it counts on the server, but not on the client side. A perfect example is the draft article, which I only sent per WhatsApp to my wife for proof reading. The difference there is just 2 views (I guess one preview each on my and on her phone). I sent all other links to several people and posted them on Twitter and Reddit.
You can also somewhat see this effect in the referrers [1]. The server side tool counted many hits from a RSS reader and Google Translate (my parents in law reading my blog in Bulgarian :D). The preview requests from Twitter and WhatsApp are probably counted as direct traffic.
I think client side analytics more realistically count the number of people reading my blog (even if not many). However, there are cases that can be captured only on the server side (for example Google Translate). So, the best way would be to use both or maybe even make a service that combines client and server side - I think there is a lot of potential there!
[0] https://pbs.twimg.com/media/EY-IqtdXsAAJvu9?format=jpg&name=...
[1] https://pbs.twimg.com/media/EY-J0c8WoAEwn2J?format=jpg&name=...
Google IS interested in making Google Analytics better, because that ensures that more people use it on their websites, because then, with your cynical framing, Google can use it to sell you better ads.
It's bizarre how people here pretend like Google is simultaneously zealous about selling you ads but also stupid enough to not realize what parts of the Google eco-system synergize with the whole machinery.
And an addition: If you're enterprise and need Google 360, which is very much not free ($100k+/year I believe), not only are you paying - but your customers are still the product!