Self-hosted, open-source web analytics platform positioned as a privacy-respecting alternative to Google Analytics.
Open-Web-Analytics/Open-Web-Analytics
Self-hosted, open source web analytics server and JavaScript tracker, an alternative to Google Analytics that keeps visitor data under your control.
Open-source alternative to:Google Analytics
- Stars
- 2,693
- Forks
- 487
- Open issues
- 115
- Last commit
- 3 hours ago
What is it?
Open Web Analytics (OWA) is a self-hosted web analytics server, written in PHP, that collects visitor and pageview data from your websites or applications. It ships with a first-party JavaScript tracker, so the data is recorded on your own domain and stored on infrastructure you run rather than with a third-party analytics vendor.
The server tracks visitors, pageviews, e-commerce transactions and custom actions across an unlimited number of sites from a single instance. It includes a reporting dashboard where reports can be viewed and customized, heatmaps, "Domstream" session recordings, visitor geolocation, and a multi-user reporting interface. A REST API covers administration and data access, and custom modules can extend the framework.
For WordPress sites there is an integration plugin, and a PHP SDK is available for other PHP applications. The project is GPL-2.0 licensed, and its wiki documents technical requirements, installation and tracker options such as cookie lifetimes.
Key features
- 01Tracks visitors, pageviews, e-commerce transactions and custom actions
- 02Supports an unlimited number of websites on one server instance
- 03First-party JavaScript tracker client
- 04Customizable reporting dashboard with multi-user access
- 05Heatmaps and Domstream session recordings
- 06REST API for administration and data access
Use cases
- Replacing Google Analytics on a site where visitor data must stay in-house
- Measuring traffic and conversions for a WordPress site via the plugin
- Adding privacy-focused analytics to a PHP application with the SDK
- Running analytics across many sites from one self-hosted server
Quick start
- 1
Check the technical requirements in the wiki before installing
- 2
Clone the repository
- 3
Install PHP dependencies with Composer
composer install - 4
Install JavaScript dependencies and build front-end assets
npm install && npm run build
Things to know
- Requires a PHP and web server setup you must host yourself.
- Build steps are needed after cloning because vendor and built assets are not tracked in git.
- Licensed under GPL-2.0, a copyleft license.
Topics
FAQ
- What is Open-Web-Analytics?
- Self-hosted, open source web analytics server and JavaScript tracker, an alternative to Google Analytics that keeps visitor data under your control. Open Web Analytics (OWA) is a self-hosted web analytics server, written in PHP, that collects visitor and pageview data from your websites or applications. It ships with a first-party JavaScript tracker, so the data is recorded on your own domain and stored on infrastructure you run rather than with a third-party analytics vendor.
- Is Open-Web-Analytics free to use? What license does it have?
- Open-Web-Analytics is open source under the GPL-2.0 license. Check the license terms before using it in commercial products.
- Is Open-Web-Analytics still maintained?
- Actively maintained. The last commit to Open-Web-Analytics was on Oct 22, 2026.
- What can I use Open-Web-Analytics for?
- Replacing Google Analytics on a site where visitor data must stay in-house Measuring traffic and conversions for a WordPress site via the plugin Adding privacy-focused analytics to a PHP application with the SDK Running analytics across many sites from one self-hosted server
- How do I install Open-Web-Analytics?
- Check the technical requirements in the wiki before installing Clone the repository Install PHP dependencies with Composer: composer install Install JavaScript dependencies and build front-end assets: npm install && npm run build
- Where can I get Open-Web-Analytics?
- The source code and installation instructions are on GitHub: https://github.com/Open-Web-Analytics/Open-Web-Analytics
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Privacy-first web analytics platform that tracks traffic, campaigns, behavior, conversions and revenue without cookies, self-hosted or in the cloud.
Open-source, cookieless product analytics for startups, with events, funnels, an AI analyst, feature flags, short links and uptime monitoring.
Self-hosted, cookieless web analytics shipped as one Go binary, with custom tracking domains, SSO, open exports, and AI visibility reports.
Open source, cookie-free web analytics tool positioned as a privacy-first alternative to Google Analytics, available as cloud or self-hosted.
Open-source web analytics that combines traffic stats, session replay, error tracking, Core Web Vitals and uptime monitoring in one dashboard.