News for hackers. Stuff that matters.
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @11:32AM (#24199910)
Hi everyone!

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.

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.

Would be happy to answer any questions you have.

Re:Umami: Self-hosted open-source alternative to Google Anal... by sorenbs on Tuesday August 18, 2020 @01:26PM (#24201488)
This is a really cool project. I’m happy to see that you are using Prisma for data access. If you are interested we can set up a shared slack channel so you can provide feedback and we can make sure we support everything you need for this project :-)
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @02:03PM (#24201994)
This is my first time ever using Prisma and I'm a huge fan of it already. It did run into a few gotchas and would love to discuss.
Re:Umami: Self-hosted open-source alternative to Google Anal... by sorenbs on Tuesday August 18, 2020 @02:40PM (#24202491)
Contact info is in my profile. Please send an email so we can set something up :-)
Re:Umami: Self-hosted open-source alternative to Google Anal... by anderspitman on Tuesday August 18, 2020 @01:39PM (#24201664)
Since it's self-hosted, is there a reason you went postres rather than something simpler like sqlite or even flat files?
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @02:01PM (#24201964)
It uses prisma.io for the database connections and SQLite is supported. I just haven't had the time to implement it yet and make sure all the custom queries are working. I would welcome a PR.
Re:Umami: Self-hosted open-source alternative to Google Anal... by ksec on Wednesday August 19, 2020 @12:18AM (#24207105)
Are there any reason why you dont use currently available Open Sources solutions and decided to create your own? ( Other than it is fun to do it yourself :D )

I am wondering why in the past 2 years we went form having little to zero GA alternative to all of a sudden having dozens of them.

I am genuinely curious.

Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Wednesday August 19, 2020 @01:13AM (#24207349)
This may just be me, but I'm very particular about my software. I want it to look and flow a certain way. So I wrote Umami mainly for my needs first. Plus it was just a fun project.

I always start side projects so I can learn something new. In this case it was Prisma.io, Chart.js, Next.js authentication, JWT and Postgresql. All of which I didn't know about until this project.

Re:Umami: Self-hosted open-source alternative to Google Anal... by anaxag0ras on Wednesday August 19, 2020 @09:29AM (#24210137)
Pretty impressive you learned all this and implemented in just 30 days.
Re:Umami: Self-hosted open-source alternative to Google Anal... by mescalito on Tuesday August 18, 2020 @03:31PM (#24203245)
Looks really neat! It might be really interesting if the live demo is the actual live stats of your umami.is :)
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @06:05PM (#24204901)
I will switch it over at some point. I've been running it on my own sites for a month so I just wanted to provide an example with more data to play with.
Re:Umami: Self-hosted open-source alternative to Google Anal... by aliswe on Wednesday August 19, 2020 @04:12AM (#24208263)
Just a little remark: A "Page not found" label flashes by when loading eg. https://app.umami.is/share/ISgW2qz8/flightphp.com
Re:Umami: Self-hosted open-source alternative to Google Anal... by nodesocket on Tuesday August 18, 2020 @11:13PM (#24206801)
How does a post on HN that has 591 points and on the front page only have 1184 views and 567 visitors in the last 24 hours according to the live demo? Something is not right. Should be seeing lots more page views and users right?

EDIT: just noticed the demo is for another site flightphp.com not the landing page umami.is which is sort of weird. That explains it. The demo should really be demoing the metrics for umami.is. Which is a shame, because that would prove how scalable umami.is is. Unfortunately umami.is is not eating its own dog food.

Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Wednesday August 19, 2020 @01:20AM (#24207393)
I actually am using it to record metrics for umami.is:

https://app.umami.is/share/8rmHaheU/umami.is

I'm using it for all my websites. The reason I went with another site for the demo is because I wanted something with at least 30 days of data so users can play around with the different settings. Once I get enough data, I'll switch it over.

Re:Umami: Self-hosted open-source alternative to Google Anal... by archon810 on Wednesday August 19, 2020 @12:07PM (#24211957)
Just FYI, some mobile optimization is needed.

https://imgur.com/a/j9MYG9z

Re:Umami: Self-hosted open-source alternative to Google Anal... by nodesocket on Wednesday August 19, 2020 @06:10PM (#24217325)
Recommend to create an issue on the Github https://github.com/mikecao/umami
Re:Umami: Self-hosted open-source alternative to Google Anal... by dom96 on Tuesday August 18, 2020 @11:43AM (#24200044)
Nice! Question for you, how did you make that nice 3D image on the front page with various screenshots overlaid over each other? :)
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @11:52AM (#24200174)
It's all done in Photoshop. Just take screenshots, then transform, rotate, distort them to look flat. Then add some drop shadows for a 3d look.
Re:Umami: Self-hosted open-source alternative to Google Anal... by blahblah4332 on Tuesday August 18, 2020 @01:55PM (#24201874)
This would definitely be really interesting if it had the ability to create analytics in response to UI interactions. There are a lot of SPAs out there that use analytics for feature tracking, and the self-hosted aspect would fit well with those users.
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @01:59PM (#24201940)
Event tracking is already supported in the build. I just haven't completed the UI components yet. You simply add a custom CSS class on an element and it will automatically be tracked.
Re:Umami: Self-hosted open-source alternative to Google Anal... by blahblah4332 on Tuesday August 18, 2020 @02:04PM (#24202010)
Oh OK, I didn't see that when I scanned the documentation. CSS is an interesting solution for that
Re:Umami: Self-hosted open-source alternative to Google Anal... by shermozle on Thursday August 20, 2020 @01:26AM (#24220175)
I have a feeling this requires the database to be available to collect data. That's a bad pattern. No database can be up all the time and an application like this should not lose data.

Have a look at patterns that resolve this like Snowplow Analytics.

Re:Umami: Self-hosted open-source alternative to Google Anal... by killerpopiller on Tuesday August 18, 2020 @04:47PM (#24204145)
Matomo (former Piwik) is an alternative imho.
Re:Umami: Self-hosted open-source alternative to Google Anal... by modoc on Tuesday August 18, 2020 @05:04PM (#24204321)
Unsure about Umami's performance, but Piwik was a non-starter for several higher traffic sites I worked with due to performance issues (even after throwing big hardware at it).
Re:Umami: Self-hosted open-source alternative to Google Anal... by ksec on Wednesday August 19, 2020 @12:06AM (#24207054)
Out of the similar alternative, I think Plausible is currently leading in scaling and performance.

I think this is also the reason why they are the most affordable in pricing.

Note: Not affiliate with them, just observation from researching GA alternatives.

Re:Umami: Self-hosted open-source alternative to Google Anal... by noahth on Tuesday August 18, 2020 @06:38PM (#24205178)
One big difference is that Matomo doesn’t support PostgreSQL and has said they don’t plan to.
Re:Umami: Self-hosted open-source alternative to Google Anal... by adventured on Tuesday August 18, 2020 @06:12PM (#24204959)
Great project. I'm going to follow its development and consider using it in the near future.
Re:Umami: Self-hosted open-source alternative to Google Anal... by sabas_ge on Wednesday August 19, 2020 @06:00AM (#24208780)
Oh, thank you for flightphp, I recognized you from the url used in the demo :D
Re:Umami: Self-hosted open-source alternative to Google Anal... by newusertoday on Tuesday August 18, 2020 @12:56PM (#24201085)
what are your thoughts on using ui-frameworks like material/ant etc. I checked the github and it looks like you have written all components including css by yourself.
Re:Umami: Self-hosted open-source alternative to Google Anal... by mcao on Tuesday August 18, 2020 @02:10PM (#24202087)
For personal projects I tend to write all the CSS and components myself. I just like being able to control everything down to the pixel without reading some documentation. But that's just my workflow. I say just use whatever gets the job done. The only thing I used was Bootstrap grid for responsive layouts. Tailwind CSS is pretty popular.
Re:Umami: Self-hosted open-source alternative to Google Anal... by throwanem on Tuesday August 18, 2020 @05:51PM (#24204774)
Can confirm, Tailwind is legit.
Re:Umami: Self-hosted open-source alternative to Google Anal... by btian on Wednesday August 19, 2020 @10:33AM (#24210764)
That's very impressive, Mike. Very fast, looks beautiful
Re:Umami: Self-hosted open-source alternative to Google Anal... by imedadel on Tuesday August 18, 2020 @02:28PM (#24202322)
This is an awesome project. Is Postgres good enough for high traffic or would it be better to switch to Redis?
Re:Umami: Self-hosted open-source alternative to Google Anal... by anaganisk on Wednesday August 19, 2020 @01:53AM (#24207549)
Tho very rare, why would you use a database that is at risk to be erased completely, and with a limited set of queries as the main DB? Honest question.
Re:Umami: Self-hosted open-source alternative to Google Anal... by imedadel on Wednesday August 19, 2020 @04:53AM (#24208466)
My concern was the performance of Postgres when it's receiving thousands of writes per second. I assumed that such a task would be more suited for Redis, then the data could be filtered and sent to Postgres for longer storage (or some storage solution such as S3).
Re:Umami: Self-hosted open-source alternative to Google Anal... by ponyous on Wednesday August 19, 2020 @05:02AM (#24208507)
I think bigger issues would be time related queries when dataset gets bigger as opposed to write speeds.

I think a time series database is best suited for this kind of project (timescale build on top of postgres, influxdb, ...)