Why Plausible Analytics Is the Top Open-Source Web Analytics Tool for Privacy
TL;DR
Plausible Analytics is a modern, privacy-respecting analytics platform designed to measure website traffic without compromising user privacy.
Plausible Analytics is an open-source, privacy-first alternative to Google Analytics, designed for lightweight website traffic tracking without cookies or personal data collection. It aggregates visitor stats server-side to comply with GDPR and other privacy laws while providing essential metrics like unique visitors, page views, bounce rates, and referrers. Self-hosting aligns perfectly with your interest in privacy-focused, self-hosted tools like Whoogle.
Core Philosophy and Key Features
Plausible is built on a foundation of privacy, simplicity, and accuracy. Here’s how it achieves this:
Privacy-First by Default: It does not use cookies or generate any persistent identifiers to track users across websites or over time. This means no cookie consent banners are needed for compliance with regulations like GDPR, CCPA, and PECR.
Minimal and Anonymous Data Collection: Plausible only collects aggregate data to show overall trends, not to identify individuals. The data collected is limited to what fits on a single dashboard page.
Lightweight and Fast: The analytics tracking script is less than 1 KB, which is 45 times smaller than a typical commercial analytics script. This ensures it doesn’t slow down your website.
100% Data Ownership: You fully own and control all your website data. Plausible never sells or shares your data with any third parties or advertising companies.
Open Source and Transparent: All of Plausible’s source code is publicly available on GitHub. Anyone can inspect, review, and verify that the software does exactly what it claims to do, ensuring complete transparency.
Accurate and Unsampled Data: Plausible provides real, unmodeled numbers. It does not use sampling or statistical modeling, so your data is always accurate and directly comparable over time. Its bot detection also automatically filters out spam traffic.
Simple Interface: Provides all essential stats (unique visitors, total visits, bounce rate, visit duration, top pages, referral sources) on a single, one-page dashboard.
Functionality: Supports goal/conversion tracking, custom event tracking, campaign (UTM) tagging, and 404 error tracking.
Bot Detection: Automatically filters out referrer spam and bot traffic.
What Data Does It Collect?
Plausible collects only the essential data points needed for understanding website traffic, all of which are anonymized.
Data Point | Example | How It’s Used / Collected |
Page URL | yoursite.com/pricing | Shows which pages have been viewed and how many times. |
HTTP Referrer | Shows which sites are sending you traffic. | |
Browser | Chrome 86.0 | Shows the browsers used by your visitors (derived from User-Agent header, which is then discarded). |
Operating System | macOS 10.15 | hows the operating systems used (derived from User-Agent header, which is then discarded). |
Device Type | Desktop, Mobile, Tablet | Shows what device types people use (derived from User-Agent header). |
Country, Region, City | United Kingdom, England, London | Shows the geographic location of your visitors (derived from IP address, which is then discarded). |
How Unique Visitors are Counted Without Cookies
Plausible counts unique users by creating a daily-changing, anonymized identifier. It combines the visitor’s IP address and User-Agent with a daily “salt” (a random string) and runs this through a hash function. This creates a random string used solely for counting unique visitors for that day. The raw IP address and User-Agent are never stored in any database or logs, and the salts are deleted every 24 hours, making it impossible to link visits from one day to the next.
Advanced Features (v3.0.0 and Enterprise)
Plausible has evolved to include more advanced features suitable for larger teams and enterprises.
Recent Features (v3.0.0): The latest version introduced key improvements:
Scroll Depth Tracking: Automatically measures how far down a page visitors scroll.
Improved Time on Page: Now based on engagement signals, counting only active time spent on a page.
Teams Functionality: Allows for better user management with roles like Viewer, Editor, and Admin, and supports multiple owners per site.
Saved Segments: Lets you save custom filters (e.g., traffic from a specific country) for quick reuse.
Enterprise-Only Features: For large organizations with high traffic and advanced needs, Plausible offers custom enterprise plans with features such as:
Single Sign-On (SSO) with SAML 2.0 support (Okta, Google Workspace, Azure AD).
Managed Proxy to bypass ad-blockers and ensure complete data collection.
Scheduled Raw Data Exports to data warehouses like BigQuery or Snowflake.
A Sites API to programmatically create and manage websites.
5+ Years of Data Retention and higher API rate limits.
How to Install and Use Plausible
You can use Plausible in two main ways: their managed cloud service or self-hosting the open-source version.
Option 1: Hosted Cloud Service (Recommended for Most Users)
The easiest way to get started is to sign up for Plausible’s official cloud service. It includes a 30-day free trial with no credit card required. Once signed up, you add your website’s domain and get a small JavaScript snippet to insert into your site’s HTML (e.g., in the <head> section). For platforms like WordPress or Laravel, there are plugins and packages to simplify the integration.
Option 2: Self-Hosting (Open Source)
For those who prefer to manage everything themselves, Plausible offers a free, self-hosted community edition. You can run it on your own server, which gives you full control over your data. The primary method for self-hosting is using Docker, as the project provides a docker-compose.yml file to orchestrate the necessary services: the Plausible app, a Postgres database, and a Click House database for storing analytics stats.
Basic Self-Hosting Steps (via Docker)
Prepare a Server: You’ll need a Linux server (Ubuntu is recommended) with at least 2 GB of RAM and Docker installed.
Download Plausible: Download the community-edition files from GitHub.
bash
curl -L https://github.com/plausible/community-edition/archive/master.tar.gz | tar -xz
Configure: Enter the directory, generate a 64-character SECRET_KEY_BASE, and edit the plausible-conf.env file to set your BASE_URL and secret key.
Launch: Start the services in the background using Docker Compose.
bash
docker-compose up -d
Access: Your Plausible instance will be available at the BASE_URL you configured.
You can also find one-click installers on platforms like DigitalOcean, which automate much of this setup.
Using the Stats API
For developers who want to pull Plausible data into other applications or custom dashboards, a robust Stats API is available. Libraries like njoguamos/laravel-plausible for Laravel provide a convenient wrapper to interact with this API. You can fetch data such as:
Realtime Visitors: Get the current number of active visitors.
Aggregates: Get summary metrics (visitors, pageviews, bounce rate) for a given period.
Time Series: Get metrics broken down by date for plotting graphs.
Breakdown: Get a list of top pages, sources, countries, etc., with their respective stats