dojap
Especially for personal projects where you don’t need to show Google Analytics numbers to your company and stuff, I really think that for tracking users activity, what they click and when etc. Pheonix LiveView is nice.
For example, more and more people are using adblockers, so, the Google Analytics numbers are screwed, which is a non-issue with a server side solution.
But my concern is about performance. Logging every action in the database could be a lot after time and with a lot of users. What is your experience when it comes to performance and logging every action/click/pageload of users, or at least, registered users?
Or should I use some external open source server side solution?
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using.
We’re particularly inte...
New
I’m posting this in response to Jose’s recent tweet (Cr. link) :
People are sleeping on Elixir for a coding harness:
Hot-code swappi...
New
Hello,
I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
AcmeScript — Writing JS hooks as if I were still using Elixir
I’ve been having fun building a little something over the last few days: Ac...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
c4710n
Google Analytics not only can be used from client-side, but also from server-side.
Check out Server-Side Tracking in Google Tag Manager. In this way, you don’t store any action in your database, but the online service, just like using client-side tracking.
wmnnd
If you don’t have millions of users every month, a naive approach with a regular Postgres or MariaDB instance will probably handle your logs just fine. If you don’t care about permanently persisting these logs, you could also build something using ETS tables.
If you want something more sophisticated built in Elixir, you could give Plausible a try
dojap
Seems like too much hassle. At that point I would rather opt for something completely opensource like, I don’t know… I mean why not to write your own tracking for specific things you need and dismiss everything else?
I reiterate, I am talking mostly about personal projects, not about commercial businesses where people EXPECT Google Analytics so they can feel well and talk about with their managers and marketers during lunch.
dojap
I have no idea what are ETS tables, but I will definitely check Plausible.
wmnnd
ETS is a very performant in-memory storage system:
c4710n
Get it.
If I have such requirement, I will
I prefer option 2. After all, the business is where the value comes from. Tracking is not the core service.
dojap
Interesting, so via ETS I could store stuff in memory and perhaps once a day or week (I have no idea how much stuff it can hold) do a dump in a file on a disk that can be accessed via admin or put offline when necessary.
It seems nice, I will explore it further and perhaps abandon the idea of storing the clicks and actions of users in the PosgreSQL database altogether. Storing analytics in database seemed like too much bloat when what you need most of the time is just real time overview of what is happening now on your page and perhaps a few hours or days back. And the long term ego-boosting looks at the page views you do perhaps once a day or a few times a week - so, it can be compiled from files on the disk when you need it.
Thank you very much for the idea of using ETS for analytics.
edisonywh
Dashbit has some articles on building a homegrown solution - Homemade analytics with Ecto and Elixir - Dashbit Blog, though I just use Plausible (they’re built in Elixir so I’m happy to support!)