analytics
Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
Top Related Projects
Empowering People Ethically 🚀 — Matomo is hiring! Join us → https://matomo.org/jobs Matomo is the leading open-source alternative to Google Analytics, giving you complete control and built-in privacy. Easily collect, visualise, and analyse data from websites & apps. Star us on GitHub ⭐️ – Pull Requests welcome!
🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.
Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.
Quick Overview
Plausible Analytics is an open-source, lightweight, and privacy-friendly alternative to Google Analytics. It provides simple and easy-to-understand website analytics without using cookies and fully compliant with GDPR, CCPA, and PECR. The project aims to offer a more ethical approach to tracking website visitors while still providing valuable insights.
Pros
- Privacy-focused: Does not use cookies or collect personal data
- Lightweight: Weighs less than 1KB, having minimal impact on website performance
- Simple and intuitive dashboard: Easy to understand analytics without complex metrics
- Self-hostable: Can be deployed on your own infrastructure for complete data control
Cons
- Less detailed data compared to Google Analytics
- Limited integrations with other tools and platforms
- Fewer advanced features for in-depth analysis
- Requires self-hosting or paid subscription for use, unlike free alternatives
Getting Started
To get started with Plausible Analytics, follow these steps:
- Sign up for an account at https://plausible.io/ or self-host the application
- Add your website to the Plausible dashboard
- Add the following script to your website's HTML, replacing
yourdomain.comwith your actual domain:
<script defer data-domain="yourdomain.com" src="https://plausible.io/js/plausible.js"></script>
- Wait for data to start appearing in your Plausible dashboard (usually within 24 hours)
For self-hosting instructions, refer to the official documentation: https://plausible.io/docs/self-hosting
Competitor Comparisons
Empowering People Ethically 🚀 — Matomo is hiring! Join us → https://matomo.org/jobs Matomo is the leading open-source alternative to Google Analytics, giving you complete control and built-in privacy. Easily collect, visualise, and analyse data from websites & apps. Star us on GitHub ⭐️ – Pull Requests welcome!
Pros of Matomo
- More comprehensive feature set, including e-commerce tracking and A/B testing
- Highly customizable with a plugin system and API
- Offers both self-hosted and cloud-hosted options
Cons of Matomo
- More complex setup and maintenance due to its extensive features
- Higher resource requirements, potentially impacting performance on smaller servers
- Steeper learning curve for new users
Code Comparison
Matomo (PHP):
$tracker = new MatomoTracker($idSite = 1, 'http://example.org/matomo/');
$tracker->doTrackPageView('Page Title');
Plausible (JavaScript):
plausible('pageview', { props: { page: '/blog' } });
Matomo uses a server-side PHP tracking approach, while Plausible employs a simpler client-side JavaScript implementation. Matomo's code allows for more detailed configuration, reflecting its broader feature set, while Plausible's code is more concise and straightforward.
Both projects prioritize user privacy and offer GDPR-compliant analytics solutions. Plausible focuses on simplicity and lightweight implementation, making it ideal for smaller websites or those prioritizing minimal impact on page load times. Matomo, with its extensive features and customization options, is better suited for larger organizations or those requiring in-depth analytics capabilities.
🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.
Pros of PostHog
- More comprehensive feature set, including session recording, feature flags, and A/B testing
- Highly extensible with plugins and integrations
- Supports both cloud and self-hosted deployments
Cons of PostHog
- More complex setup and configuration process
- Higher resource requirements for self-hosted installations
- Steeper learning curve due to the extensive feature set
Code Comparison
PostHog (JavaScript snippet):
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('YOUR_PROJECT_API_KEY', {api_host: 'https://app.posthog.com'})
Plausible (JavaScript snippet):
<script defer data-domain="yourdomain.com" src="https://plausible.io/js/plausible.js"></script>
The code comparison shows that PostHog's implementation is more complex and customizable, while Plausible offers a simpler, more lightweight integration.
Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Pros of Umami
- Self-hosted and completely free, offering full control over data
- Simpler setup process, especially for users familiar with Node.js
- More customizable dashboard with additional metrics and chart options
Cons of Umami
- Less polished UI compared to Plausible's clean and modern interface
- Fewer built-in features for advanced analytics (e.g., custom events, goals)
- Smaller community and ecosystem, potentially leading to slower development and fewer integrations
Code Comparison
Umami (JavaScript):
export async function savePageView(website_id, data) {
const { url, referrer, browser, os, device, screen } = data;
const [pageView] = await db.transaction(async () => {
// ... (implementation details)
});
return pageView;
}
Plausible (Elixir):
def insert(site, attrs) do
params = Map.merge(attrs, %{
"hostname" => URI.parse(attrs["pathname"]).host,
"site_id" => site.id,
"timestamp" => NaiveDateTime.utc_now() |> NaiveDateTime.truncate(:second)
})
%Pageview{}
|> cast(params, [:hostname, :pathname, :referrer, :user_agent, :screen_size, :country_code, :operating_system, :browser, :site_id, :timestamp])
|> validate_required([:hostname, :pathname, :timestamp, :site_id])
|> foreign_key_constraint(:site_id)
|> Repo.insert()
end
Both projects implement similar functionality for saving page views, but Umami uses JavaScript with async/await, while Plausible uses Elixir with a more functional approach.
Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.
Pros of Fathom
- More mature project with longer development history
- Offers a hosted solution in addition to self-hosted option
- Provides more detailed documentation and user guides
Cons of Fathom
- Less frequent updates and releases compared to Plausible
- Larger codebase, potentially more complex to set up and maintain
- Fewer built-in integrations with third-party services
Code Comparison
Fathom (Go):
func (s *SQLStore) GetSiteStats(siteID int64, startDate time.Time, endDate time.Time) (*models.SiteStats, error) {
var stats models.SiteStats
err := s.db.Get(&stats, `
SELECT
COUNT(DISTINCT(pageviews.visitor_id)) as visitors,
COUNT(*) as pageviews,
COUNT(DISTINCT(pageviews.hostname || pageviews.pathname)) as pages
FROM pageviews
WHERE site_id = $1 AND timestamp >= $2 AND timestamp <= $3
`, siteID, startDate, endDate)
return &stats, err
}
Plausible (Elixir):
def aggregate(site, query) do
from(e in base_query(site, query),
select: %{
visitors: fragment("COUNT(DISTINCT visitor_id)"),
pageviews: fragment("COUNT(*)"),
bounce_rate: fragment("ROUND(100 * SUM(CASE WHEN sign = -1 THEN 1 ELSE 0 END)::float / COUNT(DISTINCT visitor_id), 1)"),
visit_duration: fragment("ROUND(AVG(duration::float), 2)")
}
)
|> Repo.one()
end
Both repositories implement analytics data aggregation, but use different programming languages and database query approaches.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Plausible Analytics
Live Demo |
Open Source |
Docs |
Contributing
Plausible Analytics is an open source, privacy-first web analytics tool. Lightweight, cookie-free alternative to Google Analytics. Available in managed cloud or self-hosted community edition.
- ð Privacy-focused
- ð¡ï¸ GDPR, CCPA, PECR compliant
- ð Simple, fast dashboard
- 𪶠Lightweight script
- ðªðº Made and hosted in the EU

Why Plausible?
Here's what makes Plausible a great Google Analytics alternative and why we're trusted by thousands of paying subscribers to deliver their website and business insights:
-
Clutter-free
Plausible provides simple web analytics that cut through the noise. No layers of menus or need to create custom reports. All key insights are on a single page, with no training required. -
Privacy-first and compliant
Measure traffic, not individuals. No personal data or IP addresses are stored, and no cookies or persistent identifiers are used. Fully compliant with GDPR, CCPA and PECR.
Read more about our data policy -
Lightweight
Our script is tiny, helping your website load faster. You can also send events directly to our events API. -
Built for modern workflows
Works with modern frameworks and supports SPAs out of the box, including pushState and hash-based routing. See details. -
Define key goals and track conversions
Track goals, conversions, revenue attribution and funnels using custom events and dimensions. Turn on codeless tracking for outbound link clicks, form completions, file downloads and 404 error pages. -
Easy reporting and sharing
Get weekly or monthly reports via email or Slack, including traffic spike/drop notifications. Invite team members with role-based access, share dashboards publicly or with anyone using a simple link. Make your analytics transparent by default. -
Search insights included
Integrate with Google Search Console to get accurate keyword data directly in your dashboard. -
API and integrations
Send events directly via our API and export your stats using the stats API or CSV. Build custom workflows and integrations on top of your data. -
Real-time insights
Monitor live traffic and understand whatâs happening on your site as it happens. -
Smooth transition from Google Analytics
Familiar metrics, campaign tracking and Search Console integration. Import your historical Google Analytics stats and continue where you left off.
Thousands of teams use Plausible to understand their traffic without sacrificing privacy or simplicity. Learn how to get the most out of your Plausible experience.
We are dedicated to making web analytics more privacy-friendly. Our mission is to reduce corporate surveillance by providing an alternative web analytics tool which doesnât come from the AdTech world. We are completely independent and solely funded by our subscribers.
Interested to learn more? Read more on our website, learn more about the team and our goals on our about page or explore the documentation.
Why is Plausible Analytics Cloud not free like Google Analytics?
Plausible is an independent, open source project funded entirely by our users. We charge a subscription to sustainably develop, maintain and improve the product over the long term.
Google Analytics is free to use because Google monetizes user data for advertising. That model comes with trade-offs: data collection, complexity and additional overhead for compliance and consent.
With Plausible, the business model is simple:
- No data collection beyond aggregated, anonymized stats
- No third-party data sharing
- No advertising or tracking ecosystem
- You fully own and control your data
We believe paying for analytics should be straightforward. You pay for a product, not with your usersâ data, but with a transparent subscription. Learn more.
Getting started with Plausible
The easiest way to get started with Plausible Analytics is with our official managed service in the cloud.
- Takes ~2 minutes to set up
- Global CDN, high availability, backups and security included
- No maintenance required
In order to be compliant with the GDPR and the Schrems II ruling, all visitor data for our managed service in the cloud is exclusively processed on servers and cloud infrastructure owned and operated by European providers. Your website data never leaves the EU.
Our managed hosting can save a substantial amount of developer time and resources. For most sites this ends up being the best value option and the revenue goes to funding the maintenance and further development of Plausible. So youâll be supporting open source software and getting a great service!
Can Plausible be self-hosted?
Plausible is open source web analytics and we have a free as in beer and self-hosted solution called Plausible Community Edition (CE). Here are the differences between Plausible Analytics managed hosting in the cloud and the Plausible CE:
| Plausible Analytics Cloud | Plausible Community Edition | |
|---|---|---|
| Infrastructure management | Easy and convenient. It takes 2 minutes to start counting your stats with a worldwide CDN, high availability, backups, security and maintenance all done for you by us. We manage everything so you donât have to worry about anything and can focus on your stats. | You do it all yourself. You need to get a server and you need to manage your infrastructure. You are responsible for installation, maintenance, upgrades, server capacity, uptime, backup, security, stability, consistency, loading time and so on. |
| Release schedule | Continuously developed and improved with new features and updates multiple times per week. | It's a long term release published twice per year so latest features and improvements won't be immediately available. |
| Premium features | All features available as listed in our pricing plans. | Premium features (marketing funnels, ecommerce revenue goals, SSO and sites API) are not available in order to help support the project's long-term sustainability. |
| Bot filtering | Advanced bot filtering for more accurate stats. Our algorithm detects and excludes non-human traffic patterns. We also exclude known bots by the User-Agent header and filter out traffic from data centers and referrer spam domains. We exclude ~32K data center IP ranges (i.e. a lot of bot IP addresses) by default. | Basic bot filtering that targets the most common non-human traffic based on the User-Agent header and referrer spam domains. |
| Server location | All visitor data is exclusively processed on EU-owned cloud infrastructure. We keep your site data on a secure, encrypted and green energy powered server in Germany. This ensures that your site data is protected by the strict European Union data privacy laws and ensures compliance with GDPR. Your website data never leaves the EU. | You have full control and can host your instance on any server in any country that you wish. Host it on a server in your basement or host it with any cloud provider wherever you want, even those that are not GDPR compliant. |
| Data portability | You see all your site stats and metrics on our modern-looking, simple to use and fast loading dashboard. You can only see the stats aggregated in the dashboard. You can download the stats using the CSV export, stats API or the Looker Studio Connector. | Do you want access to the raw data? Self-hosting gives you that option. You can take the data directly from the ClickHouse database. The Looker Studio Connector is not available. |
| Premium support | Real support delivered by real human beings who build and maintain Plausible. | Premium support is not included. CE is community supported only. |
| Costs | There's a cost associated with providing an analytics service so we charge a subscription fee. We choose the subscription business model rather than the business model of surveillance capitalism. Your money funds further development of Plausible. | You need to pay for your server, CDN, backups and whatever other cost there is associated with running the infrastructure. You never have to pay any fees to us. Your money goes to 3rd party companies with no connection to us. |
Interested in self-hosting Plausible CE on your server? Take a look at our Plausible CE installation instructions.
Plausible CE is a community supported project and there are no guarantees that you will get support from the creators of Plausible to troubleshoot your self-hosting issues. There is a community supported forum where you can ask for help.
Our only source of funding is our premium, managed service for running Plausible in the cloud.
Technology
Plausible is built with a modern, scalable stack:
- Backend: Elixir + Phoenix
- Databases: PostgreSQL (general data), ClickHouse (analytics)
- Frontend: React + TailwindCSS
Our architecture allows Plausible to handle large volumes of traffic efficiently while keeping the dashboard fast and responsive.
Contributors
For anyone wishing to contribute to Plausible, we recommend taking a look at our contributor guide.
Feedback & Roadmap
We welcome feedback from our community. We have a public roadmap driven by the features suggested by the community members. Take a look at our feedback board. Please let us know if you have any requests and vote on open issues so we can better prioritize.
To stay up to date with all the latest news and product updates, make sure to follow us on X (formerly Twitter), Bluesky, LinkedIn and Mastodon.
License & Trademarks
Plausible CE is open source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find it here.
To avoid issues with AGPL virality, we've released the JavaScript tracker which gets included on your website under the MIT license. You can find it here.
Copyright (c) 2018-present Plausible Insights OÃ. Plausible Analytics name and logo are trademarks of Plausible Insights OÃ. Please see our trademark guidelines for info on acceptable usage.
Top Related Projects
Empowering People Ethically 🚀 — Matomo is hiring! Join us → https://matomo.org/jobs Matomo is the leading open-source alternative to Google Analytics, giving you complete control and built-in privacy. Easily collect, visualise, and analyse data from websites & apps. Star us on GitHub ⭐️ – Pull Requests welcome!
🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.
Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot