TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Umami: Self-hosted open-source alternative to Google Analytics

820 点作者 bananaoomarang超过 4 年前

48 条评论

mcao超过 4 年前
Hi everyone!<p>Author of Umami here. I totally did not expect this response so it looks like you all hugged my little server to death. The demo should be back up now.<p>A little background. This is a side project I started 30 days ago because I was tired of how slow and complicated Google Analytics was. I just wanted something really simple and fast that I could browse quickly without diving through layers of menus. So I created Umami to track my own websites and then open sourced it. The stack is React, Redux, and Next.js with a Postgresql backend.<p>Would be happy to answer any questions you have.
评论 #24201488 未加载
评论 #24201664 未加载
评论 #24207105 未加载
评论 #24203245 未加载
评论 #24208263 未加载
评论 #24206801 未加载
评论 #24200044 未加载
评论 #24201874 未加载
评论 #24220175 未加载
评论 #24204145 未加载
评论 #24204959 未加载
评论 #24208780 未加载
评论 #24201085 未加载
评论 #24210764 未加载
评论 #24202322 未加载
malisper超过 4 年前
One of the claims of Umami is that it&#x27;s GDPR compliant:<p>&gt; Umami does not collect any personally identifiable information so it is GDPR and CCPA compliant. No cookie notices are needed because Umami does not use cookies.<p>From auditing the source code, this doesn&#x27;t seem to be the case. First, it claims it doesn&#x27;t use cookies, but it clearly uses localStorage to store a &quot;sessionKey&quot;[0].<p>The other claim, that Umami is GDPR and CCPA compliant because it does not collect any personally identifiable information is only half true. While the data collected isn&#x27;t PII (because you can&#x27;t use it on it&#x27;s own to identify a user), it&#x27;s still &quot;personal data&quot;. This is because the &quot;sessionKey&quot; stored alongside all events is actually a pseudonymous user identifier. It&#x27;s really just a hash of the user&#x27;s IP along with a few other properties[1]. Because the data Umami collects, when combined with some other data, can be attributed back to the user, the data is still considered &quot;personal data&quot;. That means you&#x27;re still subject to most of GDPR such as GDPR deletion requests[2].<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;mikecao&#x2F;umami&#x2F;blob&#x2F;f4ca353b5c68750bf391e5874f19c609b9c421ef&#x2F;tracker&#x2F;index.js#L44" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mikecao&#x2F;umami&#x2F;blob&#x2F;f4ca353b5c68750bf391e5...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;mikecao&#x2F;umami&#x2F;blob&#x2F;master&#x2F;lib&#x2F;session.js#L29" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mikecao&#x2F;umami&#x2F;blob&#x2F;master&#x2F;lib&#x2F;session.js#...</a><p>[2] <a href="https:&#x2F;&#x2F;gdpr-info.eu&#x2F;art-17-gdpr&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gdpr-info.eu&#x2F;art-17-gdpr&#x2F;</a>
评论 #24201851 未加载
评论 #24205604 未加载
评论 #24207034 未加载
eric4smith超过 4 年前
Lots of home-grown analytics are very privacy focussed these days and do not use cookies. That&#x27;s a good thing.<p>For simple sites like blogs, simple low volume ecommerce, etc.<p>But for more &quot;serious&quot; eCommerce, SAAS based applications and sites that are concerned with marketing on email, social and web then then optimizing what you show then and finally generating leads for salespeople to call or actual sales...<p>Cookies or local storage, or some way of tracking the customer across all the channels and their actions are essential.<p>If one can avoid using Google Analytics, then that&#x27;s a good thing also.<p>But let&#x27;s get real -- the idea of a cookie-less future is not gonna happen because people actually do business in the web.
评论 #24222300 未加载
评论 #24209630 未加载
andrewzah超过 4 年前
I have been using goatcounter [0] and love the simplicity. I used to use Matomo, but they want a lot of money to see the referrals from google search&#x2F;etc. And it&#x27;s a heavier dependency. Goatcounter is a drop-in golang binary.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;zgoat&#x2F;goatcounter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zgoat&#x2F;goatcounter</a>
lxe超过 4 年前
I&#x27;ve seen a bunch of these simple self-hosted log dashboards here on HN, but I don&#x27;t think they directly compare with google analytics, which is just a much more powerful and much much more complicated product. Not to say this isn&#x27;t a great product, but it really isn&#x27;t an alternative to GA.
评论 #24204871 未加载
评论 #24207758 未加载
评论 #24205264 未加载
arielm超过 4 年前
This looks really nice! If... you’re only looking for high level numbers for something like a personal blog or a simple landing page for a mobile app.<p>I wouldn’t call this a replacement to Google Analytics.<p>The reason to have something like Google Analytics is to track traffic at a more granular level, and with very specific intent.<p>Some of the things I _rely_ on include:<p>- custom parameters - segments - goals - A&#x2F;B testing - specific views<p>And that’s just the short list.<p>Now, I use Analytics heavily because we spend a lot of effort on growth, both organic (content, seo) and paid (ads), so knowing what’s going on at that level is essential.<p>If you don’t, there’s not much reason to use something like GA.
vs4vijay超过 4 年前
Looks neat! will explore.<p>Also, I did research on alternatives to GA few days back, might be helpful of someone:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Open-Web-Analytics&#x2F;Open-Web-Analytics" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Open-Web-Analytics&#x2F;Open-Web-Analytics</a><p><a href="https:&#x2F;&#x2F;matomo.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;matomo.org&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;matomo-org&#x2F;matomo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;matomo-org&#x2F;matomo</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;usefathom&#x2F;fathom" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;usefathom&#x2F;fathom</a><p><a href="https:&#x2F;&#x2F;www.goatcounter.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.goatcounter.com&#x2F;</a><p><a href="https:&#x2F;&#x2F;plausible.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;plausible.io&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;PostHog&#x2F;posthog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PostHog&#x2F;posthog</a><p><a href="https:&#x2F;&#x2F;www.usertrack.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.usertrack.net&#x2F;</a>
评论 #24199191 未加载
评论 #24200313 未加载
评论 #24199403 未加载
评论 #24200637 未加载
评论 #24203140 未加载
评论 #24200249 未加载
评论 #24199166 未加载
评论 #24201186 未加载
评论 #24199114 未加载
评论 #24201234 未加载
评论 #24199341 未加载
评论 #24199519 未加载
评论 #24199805 未加载
评论 #24208706 未加载
评论 #24199192 未加载
评论 #24199372 未加载
评论 #24201823 未加载
评论 #24199186 未加载
thinkmassive超过 4 年前
A comparison of Umami and Matomo (formerly Piwik) would be helpful since they seem very similar. I looked at both websites and didn&#x27;t see any mention of the other project.
colechristensen超过 4 年前
Is there a similar product that does this server side (without injected javascript telemetry) with http logs?
评论 #24199672 未加载
评论 #24199590 未加载
评论 #24201060 未加载
评论 #24199706 未加载
评论 #24201206 未加载
ln_00超过 4 年前
to be honest, if you are using nginx, just use &#x2F; run <a href="https:&#x2F;&#x2F;goaccess.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;goaccess.io&#x2F;</a> It collects the same information as umami and is even more lightweight, since it just runs whenever you tell it to.<p>just add the command as a cron job, and you get an auto generated static dashboard. very neat.
评论 #24199237 未加载
chrisblackwell超过 4 年前
I&#x27;m very excited to see this space heating up. It seems for years we defaulted to using Google Analytics and no one wanted in the market. Now there are plenty alternatives, with many of them open source.
dzink超过 4 年前
It needs more granularity of OS versions and browser versions. Knowing which iOS version your users have is important to decide on what base level version you need for an iOS app, for example.
eden_h超过 4 年前
When I&#x27;ve seen GA used or recommended to people, it&#x27;s because their use case is tracking the marketing performance of their website.<p>Tackling the privacy focus for GA is great, but they&#x27;re a good deal of products out there that already fill that niche, not to mention the requirements of the privacy crowd usually being a venture into itself.<p>If you wanted to make it relatively competitive for marketing, the simplest addition would be adding labelling via regex for referrers.<p>i.e. - Some users want to be able to group Baidu, Google, DuckDuckGo, into a single bucket for comparison. Some users want to break them down into common market segments by country. &quot;<a href="https:&#x2F;&#x2F;www.baidu.com&#x2F;link?url=FyYbCZqj65Vc7A4XeSNrOcQCS2qFXD_8SBAcDWSlJnm&amp;wd=&amp;eqid=d43dbd6c00005f90000000025f3c6d2a&quot;" rel="nofollow">https:&#x2F;&#x2F;www.baidu.com&#x2F;link?url=FyYbCZqj65Vc7A4XeSNrOcQCS2qFX...</a><p>is from your live demo referrers, and makes it difficult to actually assess the amount of traffic from Baidu. Using a regex label means that users can break down traffic from Paid&#x2F;Organic marketing fairly quickly, and start to build up dashboards they can use.<p>If you ever extended it to allow multiple labels for each hit, could re-run the regex over past data, and could build reports off it, you&#x27;d easily have a benefit over GA that would start to wean the marketing crowd off it.
hitekker超过 4 年前
For something this simple, I was hoping to see an option for SQlite, not just MySQL and PostgresSQL.
评论 #24200266 未加载
busymichael超过 4 年前
Congrats on launching -- really impressive. One important issue that these self hosted analytics solve is ad blocking. Ad blocking by users really undermines the ability of a site or app to figure out what is working and not working. When you host your own analytics, you can get usability information for all of your users, not just those that don&#x27;t block. That allows you to make a better product.<p>I have been working on something similar at <a href="https:&#x2F;&#x2F;argyle.cc" rel="nofollow">https:&#x2F;&#x2F;argyle.cc</a> -- we combine cloud analytics with a self-hosted analytics collector js. That gives you the best of both worlds: privacy focused, user respecting analytics, but full featured reporting in the cloud and ad-blocker resistance. It also allows event tracking to be done over js&#x2F;web or in-line&#x2F;server side.
marcus_holmes超过 4 年前
I&#x27;d love to use this. But 34 dependencies?<p>I know ~10 of them are React, and there&#x27;s some in there that make sense. But I haven&#x27;t got the time to audit them all, and re-audit it every time any of those dependencies update .<p>And escape-string-regexp? Really? it&#x27;s literally 2 lines of code [0]. Why have I got to give the maintainer of that project commit access to this program that will be seeing potentially sensitive data?<p>Why, if the developer couldn&#x27;t come up with those 2 lines themselves, isn&#x27;t this a Stack Overflow copy&#x2F;paste?<p>[0]<a href="https:&#x2F;&#x2F;github.com&#x2F;sindresorhus&#x2F;escape-string-regexp&#x2F;blob&#x2F;master&#x2F;index.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sindresorhus&#x2F;escape-string-regexp&#x2F;blob&#x2F;ma...</a>
评论 #24204426 未加载
m90超过 4 年前
Is there a way for me as a user to opt out of this tool other than relying on third party tools like uBlock? I&#x27;m starting to get annoyed by so many &quot;privacy focused&quot; tools with literally no consent options at all.
评论 #24200670 未加载
shattl超过 4 年前
Wow, Piwik is now Matomo, how fast time flies!
gowld超过 4 年前
If you want to respect user privacy while collecting analytics data, I recommend using Local Differential Privacy (via Randomized Responses) when collecting information from browsers.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Local_differential_privacy" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Local_differential_privacy</a> and <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Randomized_response" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Randomized_response</a>
nickthemagicman超过 4 年前
Am I wrong for thinking that Google Analytics has bad UI?<p>As a noob at UI it was bizarre and unintuitive for me.<p>Just finding the region locations of the traffic was odd and didn&#x27;t make immediate sense.
评论 #24203339 未加载
llacb47超过 4 年前
The whole script is 502... <a href="https:&#x2F;&#x2F;stats.umami.is&#x2F;umami.js" rel="nofollow">https:&#x2F;&#x2F;stats.umami.is&#x2F;umami.js</a>
markl42超过 4 年前
I&#x27;ll throw a shoutout for a top tier project - <a href="https:&#x2F;&#x2F;github.com&#x2F;zgoat&#x2F;goatcounter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zgoat&#x2F;goatcounter</a><p>Using it for some personal stuff, and does absolutely everything I need it to, and then some.<p>I love the ethos of the project, and whilst it&#x27;s open source, there&#x27;s a hosted option that looks super reasonable too.
epoch_100超过 4 年前
This looks great! For what it’s worth, I also maintain an open source (and self hosted) website analytics tool called Shynet [0] (someone else mentioned it in this thread, but thought I’d share here as well). Really great to see more options in this area!<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;milesmcc&#x2F;shynet" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;milesmcc&#x2F;shynet</a>
dylan604超过 4 年前
How useful are the metrics from non-GA sources trusted when validated traffic to various groups like investors, advertisers, etc?
评论 #24204481 未加载
te_chris超过 4 年前
This would be amazing if, out of the box, it sent data to BiqQuery and&#x2F;or Redshift. Postgres is fine, but for most companies this data is most useful in the warehouse. If this was a simple, drop-in solution to get well formatted data into BQ plus a bit of easy vis, that would be cool and VERY useful.
hugey010超过 4 年前
I&#x27;ve used <a href="https:&#x2F;&#x2F;count.ly&#x2F;" rel="nofollow">https:&#x2F;&#x2F;count.ly&#x2F;</a> instead of Google Analytics to gather exception data and business analytics from mobile and web apps. Relatively cheap for decent scale and they&#x27;re very nice and helpful.
superlupo超过 4 年前
Slightly off-topic: Does anyone have recommendations for self-hosted open source analytics that can handle a large volume site (think 500.000.000 impressions per month)? I can&#x27;t imagine systems with MySQL&#x2F;PostgreSQL as database can handle this.
评论 #24333637 未加载
评论 #24208269 未加载
评论 #24208310 未加载
评论 #24220181 未加载
buraksarica超过 4 年前
I wish to see a line about backend platform on installation documentation. Yes, it&#x27;s simple, but IMO no one will find &quot;Umami requires bla bla platform on bla bla operating system.&quot; sentence useless.
评论 #24199673 未加载
评论 #24199725 未加载
dandigangi超过 4 年前
I always like seeing competitors to GA but the website could really use some more information on why you should use it and the features it gives you. It&#x27;s hard to beat top competitors in a saturated space.
mikece超过 4 年前
Are there any &quot;Google Analytics&quot; alternatives that aren&#x27;t based on Python, Node, Go, etc but something with a PHP back-end that can be deployed to any commodity LAMP hosting provider?
评论 #24198761 未加载
评论 #24198939 未加载
评论 #24199863 未加载
评论 #24198669 未加载
评论 #24200370 未加载
zanecraw超过 4 年前
Awesome project! Google is definitely fading out for sure. I know many businesses and developers are tired of it. Looking forward to seeing what other inventions will give Google some competition.
anderspitman超过 4 年前
I&#x27;ve been happily paying for GoatCounter for several months. I don&#x27;t imagine I&#x27;ll ever need to self host but it&#x27;s nice knowing I can if necessary.
tobilg超过 4 年前
If you have an AWS account, you can use <a href="https:&#x2F;&#x2F;ownstats.cloud" rel="nofollow">https:&#x2F;&#x2F;ownstats.cloud</a> to self-host website analytics
songzme超过 4 年前
noticed you didn&#x27;t write any tests: <a href="https:&#x2F;&#x2F;github.com&#x2F;mikecao&#x2F;umami" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mikecao&#x2F;umami</a><p>What was your reasoning? Personally, I write tests for all my projects, it forces me to really think hard about how to break down the different components and functionalities and it helps others feel more confident to contribute.
dirtnugget超过 4 年前
Can anyone tell how this holds up against Matomo?
anvarik超过 4 年前
I liked the image on the home page, how can I create such an image to show case my product? only way is PS?
1f60c超过 4 年前
From the screenshots, the design looks very slick and I can’t wait to give it a try!
dsalzman超过 4 年前
+1 to <a href="https:&#x2F;&#x2F;goatcounter.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;goatcounter.com&#x2F;</a> o use it for my personal blog <a href="https:&#x2F;&#x2F;dannysalzman.com" rel="nofollow">https:&#x2F;&#x2F;dannysalzman.com</a> . This is a good reminder to donate.
armandososa超过 4 年前
This is super cool!<p>FlightPHP looks nice, too, what didn&#x27;t you use that for the backend?
quaffapint超过 4 年前
Any suggestions for collecting server side logs via nginx pods in k8s?
sahnasidol超过 4 年前
Is there any way to create and track custom events like clicks?
评论 #24200302 未加载
gitgud超过 4 年前
Demo is throwing back &quot;502 Bad Gateway&quot;<p>Hacker News hug of death?
takein超过 4 年前
Good job. Getting 502 error!
ethor超过 4 年前
Seemingly no api? :(
gramakri超过 4 年前
Demo gives a 502
评论 #24201148 未加载
kmfrk超过 4 年前
Does this use cookies and similar to warrant a GDPR prompt?
评论 #24200315 未加载
bambam24超过 4 年前
Clicked on love demo and get 505 bad gateway. I hope they analyzed it
rockwotj超过 4 年前
Demo website 502&#x27;s for me :&#x2F;
评论 #24198678 未加载
评论 #24201170 未加载
评论 #24198657 未加载