Article
What Is Vibe Coding? I Programmed a Google Analytics Alternative With AI
Not long ago, I realised I wanted a better understanding of my blog’s traffic.
I like clean and accurate data. But traditional analytics tools like Google Analytics come with serious downsides: inaccurate numbers (due to blocked consent requests and various tracking blockers) and the need for a cookie banner, because these tools process personal data beyond what I need.
That is why I decided to build my own analytics, with pure, unfiltered data and full respect for the privacy of my visitors. And since we are living in 2025, I built it with the help of generative AI.
When it comes to programming, I have always considered myself an eternal beginner, ever since I started with web development at the age of 12. But AI has opened up skills and opportunities for me that I never imagined I would have. I have already written here on my blog about how AI helps me improve my coding skills, explaining its steps and decisions along the way. Thanks to that, my horizons have expanded far beyond what I thought possible. One of the results is my own custom-built analytics tool.
There is a name for this way of working with AI: vibe coding. What is vibe coding? It means building software by describing what you want to an AI assistant in plain language and letting the model write the actual code and build the program. The term was coined by Andrej Karpathy in February 2025. I am not a professional developer, yet this is exactly how my own analytics tool came to exist.
How vibe coding actually works: defining the goals and first prompts
When building a project like this today, you really need to have a clear idea of what you want it to do and why. Just saying "I want my own analytics" is not enough.
So we started by defining exactly what I wanted to measure: daily traffic, traffic sources, purchases of my premium articles, and a deeper analysis of visitor types (humans vs. suspicious activity vs. bots).
At first, creating the initial tables and charts seemed easy. But it did not take long before the first real challenges emerged.
The issues I had to solve
The first SQL queries we used were slow and inefficient. They dragged the whole website down. We gradually tuned them, replaced wasteful LIKE comparisons with exact matches, and optimised the logic to only process the data we really needed, and suddenly everything worked better.
Another interesting challenge was attribution. Since I do not track individual users, I had to find a way to link a visit to an article with a later premium purchase. A temporary visit identifier, created at the start of the session and carried through until a possible payment, did the trick.
Join the Library
The rest of this article is in the Library. Get full access to my findings, personal stories, and what I learn from the people I meet.
Join the Library · €29.99 per year How to get your first job with no experience… How a small business, creator or politician can be… What should I study in the age of AI?… I Left My Job for Several Months to Read… How I Fell in Love With Her, at First… How do you stop depending on social media? Can…Get the full article by email and feel free to reply if you want to discuss it further.
Summary
Common questions on this article's topic
What is vibe coding?
How do you build your own web analytics?
Can you set up website analytics without coding?
How do you measure website traffic without cookies and without a cookie banner?
Why not use Google Analytics?
Related articles
Are you a content creator playing by the rules of YouTube, Instagram or Google? Are you a small business owner whose business model depends on how often Amazon recommends you, how expensive Facebook ad impressions will be or how expensive Google Ads clicks will be? If all or most of your contact with your audience or customers depends on a big platform showing you to them, you are not in a strong position.
This is a serious issue, and it is high time we start acting responsibly.
Over the past few years I have interviewed hundreds of candidates for marketing specialist, advertising specialist and data analyst roles. I often invited beginners to interviews with a practical task: people who had only completed a course, had studied the subject, or had tried the work on a small project of their own. I saw in them the motivation to develop in the field.
More articles
The development of artificial intelligence changes how we look at which paths in life make sense. Which studies and which profession to choose.
It was Thursday, 31 March 2022, when I handed over the last of my responsibilities to my colleagues, closed my laptop and went to the library. I left my job for several months and immersed myself in philosophy. And I am immensely grateful for it. Today I am, like most people, on a merry-go-round, and it is hard for me to stop and think about the fundamental questions of my own life.
It was September 2023. My life, my work, everything was completely different from now. It was simpler. I owned almost nothing. I needed to film an advert, I went up to a floor inside the company where the product I needed for that advert was, and there I noticed her for the first time. She laughs at me when I describe it like this, but at that moment the universe told me, that is her.
How and why I am gradually leaving social media and the big platforms. When I read that Meta is testing a new way to charge for organic posts that link outside its platform, it confirms how right I was to become steadily less dependent on the big platforms and on social media. It does not mean I have left them completely. It means that whether or not I stay in touch with my readers depends on them less and less, and today almost not at all.
One of my family members described a firm that has its data in several different tools, and its employees still join it by hand, in spreadsheets. That is the ordinary state of firms. When somebody tells such people not to do it by hand and to use AI, they will not understand. Most firms do not even have the basic connectors between the tools they use. These firms need help with AI transformation.
The same task, two models. Fable 5 against Opus 4.8. On paper Fable is the better model, with a larger context and stronger specs. And still it lost. Opus handled the task with a single round of checking for 721,000 tokens, while Fable needed nine rounds and burnt through 2.78 million tokens. The difference was not in the model, but in how I set the task. And I know it, because I measured it.
A few weeks ago I installed a small local AI model on my laptop that watches a live camera feed. I turned the webcam on in the dark, and in near total darkness it recognised me and the objects in the room. That such things exist, I have known for a long time. What opened my eyes was the accessibility. I installed it in one prompt, free, and it runs entirely on my machine, sending data nowhere.
I have Heidegger and my notebook beside me. I am asking where all of this is heading, where artificial intelligence is taking us.
For years I mostly read books. I found blogs and articles by chance: on social media, or while searching for something on Google. In the age of AI that stopped working, a large share of new content online is now written or co-written by a machine. The internet is not one place, it has layers, and a part of the population has moved to the cozy web and to quiet personal blogs. I show what those layers are and how to reach them through RSS, a reader and one OPML file, on my own example with the Human filter.
I once wrote about building my own privacy-friendly analytics tool. It had bot detection from the first version, yet it was not enough. Direct visits took a strangely high share of my traffic. When someone claims that 20% of their visits are bots and 80% are humans, I used to think the same. Today I would say the opposite ratio is closer to the truth. This is how I got there.
Four days in Catalonia. No computer, no AI, almost no social media. I bought this notebook so that I could write down what I would think about, and what I would come across and learn on the trip.

