Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeThe benefits of open source analytics are inspectable code, control over where data lives, no per-event price, customisation and the freedom to leave. Each one comes with a cost the licence does not remove: you run, secure and upgrade the software. In the sample here, self-hosting only beats hosting above about 8 million events a month.
What you will learn
- Open source is a licence, not a service: free to obtain is not free to operate
- Sample break-even: hosted $80 per million events vs self-hosted $480 fixed plus $20 per million gives 8 million events
- Decide by requirement and owner first (audit, data location, a named person), price second
What "open source" promises and what it does not
The benefits of open source analytics are real, but each one comes with a cost that the licence does not remove: you can read and change the code, and you must run, secure and upgrade it yourself. "Open source" describes the licence on the code. It says nothing about who pays for servers, who is on call at 2 a.m., or who answers a data deletion request.
The Open Source Initiative's Open Source Definition (version 1.9) lists ten criteria a licence must meet: free redistribution, source code available, derived works allowed, integrity of the author's source code, no discrimination against persons or groups, no discrimination against fields of endeavour, distribution of the licence, a licence that is not specific to one product, a licence that does not restrict other software, and a technology-neutral licence. Notice what is not on the list: hosting, support, a free service or a free price for running it.
Two practical consequences follow before any benefit is counted:
- Free to obtain is not free to operate. Source code costs nothing; a database that holds your events does.
- Not every "open" licence meets the definition. A licence that limits who may use the software or for what purpose fails the "no discrimination against fields of endeavour" criterion, however public the source is. Read the licence before you count on the benefit.
For a comparison of the tools themselves, see open source analytics; for the business intelligence side, see open source BI. This page weighs the benefits against what they cost to keep.
The benefits, each with its hidden cost
| Benefit | What you actually get | Hidden cost | When it is worth it |
|---|---|---|---|
| You can inspect the code | Verify what is collected and where it is sent | Someone has to read and understand it | You face audits or strict security review |
| You control where data lives | Choose the region and the provider | You operate the database, backups and access control | Contracts or law require a specific place |
| No per-event price | Costs rise with your hardware, not your traffic | Fixed labour cost even at low volume | Traffic is high and steady |
| You can customise | Add fields, change reports, connect internal systems | You maintain a fork or plugin through every upgrade | You have a need no product covers |
| You can leave | Your data and your code stay with you | Migrating still takes work, and old data needs a format | You expect to change vendors |
| A community maintains it | Many people find and fix problems | Maintenance is spread thin; a few people do most of it | The project is active and well funded |
A note on the last row. Harvard Business School researchers estimated that the widely used open source packages would cost about $4.2 billion to rebuild once, and that companies would spend about $8.8 trillion to rewrite the software they use if it did not exist. The same work found that roughly 5% of programmers account for over 90% of the value created. Open source is valuable, and a small group carries much of the maintenance, so a quiet project is a risk you carry.
What it costs to run: a break-even example
Sample data: the prices below are invented to show the method. Replace them with your own quotes.
Assumptions for one month:
- Hosted analytics: $80 per million events.
- Self-hosted: 6 hours of engineer time at $75 per hour for upgrades, patches and monitoring = $450; $30 for backups; $20 of infrastructure per million events.
| Events per month | Hosted | Self-hosted | Cheaper |
|---|---|---|---|
| 2 million | $160 | $520 | Hosted |
| 8 million | $640 | $640 | Equal |
| 20 million | $1,600 | $880 | Self-hosted |
| 50 million | $4,000 | $1,480 | Self-hosted |
The break-even is where 80x = 480 + 20x, which gives x = 8 million events a month. Below that, hosting is cheaper; above it, self-hosting wins on money. The result moves with your labour rate: at 12 hours a month instead of 6, labour doubles to $900 and the break-even becomes (900 + 30) ÷ 60 = 15.5 million events.
The example leaves out an incident. One bad weekend with the database full costs more than the monthly figure, and you cannot buy back the missing events. Treat the self-hosted line as a minimum.
Monthly cost at 20 million events
sample assumptions, USDCosts that do not appear on the invoice
Self-hosting shifts these tasks to you. Put an owner and a frequency next to each:
- [ ] Security patches. Dependencies and the operating system need regular updates. Who applies them, and how fast?
- [ ] Upgrades. Releases can change the data schema. Who tests the upgrade before it hits production?
- [ ] Backups and restore tests. A backup you have not restored is a hope, not a backup.
- [ ] Scaling. Event tables grow quickly. Who plans storage, indexes and retention?
- [ ] Bot and spam traffic. Without filtering, robots inflate counts and storage.
- [ ] Privacy requests. Access and deletion requests do not go away because you run the software. You still need a way to find and delete one person's data.
- [ ] Uptime. If the collector is down, events are lost, not delayed.
If you cannot name an owner for five of the seven, you are buying a project, not a tool.
A ten-minute project health check
Before you commit, read three numbers from the project's public repository. They are not official benchmarks; they are a quick way to turn "is it maintained?" into something you can write down.
- Months since the last release. If it is more than six months and the project handles personal data, ask why.
- Share of recent issues that got a maintainer reply. Sample 20 issues from the last 90 days and count the replies.
- People who merged code in the last year. If one person merged most of it, a single departure can stop the project.
Write the three numbers next to your break-even table. A project that is cheap on paper but fails these checks has a cost that does not appear until the day you need a fix.
What the licence means for how you use it
Open source licences differ in what they require of you when you modify or host the software. Permissive licences ask little. Copyleft licences ask for more, and the GNU Affero General Public License goes furthest for network software: its section 13 says that if you modify the program, your modified version must prominently offer all users interacting with it remotely an opportunity to receive the source. In practice, if you customise an AGPL-licensed analytics server and users reach it over the network, you may need to share your changes.
Check three things before you commit:
- Does it meet the Open Source Definition? Some licences that look open restrict commercial use or competing services and do not qualify.
- What does it require if you modify and host it? If you plan to customise, read the network clause.
- Is there a paid edition with features the free one lacks? Features you rely on, such as single sign-on or long retention, may sit in the paid edition.
| Licence check | Question to ask | If the answer is no |
|---|---|---|
| Open Source Definition | Does it meet all ten criteria? | Treat it as source-available, not open source |
| Network clause | Do you modify it and serve users over a network? | Plan to share changes, or avoid it |
| Paid edition | Do features you need sit behind it? | Price the paid edition, not the free one |
| Maintainers | Is the project active and funded? | Budget for a fork or a move |
Four checks before committing to an open source analytics tool.
A decision rule
Use these rules, in order:
- Do you have a requirement the hosted product cannot meet (data location, a code audit, a deep customisation)? If yes, open source is justified; budget for the operations.
- Do you have someone who will own it? If you cannot name a person with time in the calendar, choose hosted.
- Is your volume above the break-even you calculated? If no, hosted is cheaper. If yes, the saving must be bigger than the risk of running it.
- Is your goal to avoid lock-in? Then you need an exit path (a raw export you can load elsewhere), not necessarily self-hosting.
Many teams end up with a middle option: a hosted product that lets you export raw data. You give up the code audit but keep the exit.
How to do it in TapCub
TapCub is run as a hosted service, so there is no server for you to patch and no open source code of the platform to modify. What it offers on the points above is control over your data and a way out.
- Know what is collected. Web analytics › Events and All-platform analytics › Data › Tracking plan show every event and property you send, and the script records form id, name and action only, not what people type.
- Control the privacy settings. Configuration › Privacy center sets the collection tier, retention and data-subject requests (export and delete).
- Keep an exit. All-platform analytics › Data › Data export runs asynchronous exports of raw detail, within the retention period, so you can load it into your own warehouse.
- Bring data in, too. All-platform analytics › Data › Data import takes CSV events, user properties and Nginx or Apache logs.
- Share without handing over access. Configuration › Settings › Public sharing creates read-only links, with an optional password and a limit on days.
If your reason for open source is that you must audit or modify the code, TapCub does not meet it; if your reason is control and exit, the steps above cover most of it.
FAQ
What are the benefits of open source analytics?
You can inspect the code, choose where data lives, avoid per-event pricing, customise reports and leave without losing the software. Each one has a cost: you operate the servers, backups and upgrades yourself, and customisations must be kept up to date through every release.
Is open source analytics really free?
The software licence is free, but running it is not. In the sample above, self-hosting costs $520 a month at 2 million events, because six hours of engineering time and backups are a fixed cost. It becomes cheaper than an $80 per million events hosted plan only above about 8 million events a month.
What are the disadvantages of open source analytics?
Operating cost, security patching, upgrade testing, backups, scaling and privacy requests all fall to you. Support depends on the community unless you buy a paid edition, and a project maintained by a few people can slow down or stop.
Is open source analytics better for privacy?
Not automatically. It lets you choose where data lives and see what is collected, which helps. But you also become responsible for security, retention and handling access and deletion requests. A hosted product can meet the same needs if it offers the settings and exports you require.
When should you choose a hosted product instead?
Choose hosted when you have no named owner for operations, your volume is below the break-even point you calculated, or you need support with response commitments. If your concern is lock-in, make sure the hosted product lets you export raw data.
Sources
- Open Source Initiative, The Open Source Definition, version 1.9 (ten criteria; last modified 2007-03-22). Checked 2026-11-23.
- Free Software Foundation, GNU Affero General Public License, version 3 (section 13, remote network interaction). Checked 2026-11-23.
- Harvard Business School, Open source software: the nine trillion resource companies take for granted (supply-side value about $4.2 billion; demand-side value $8.8 trillion; 5% of programmers create over 90% of value). Checked 2026-11-23.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Engineer
Writes about event design, data quality, and collection workflows, with verifiable implementation methods for reliable analytics.
