Plausible Analytics — Privacy-First Google Analytics Alternative
Plausible is an open-source, cookie-free web analytics tool that provides essential traffic insights while respecting visitor privacy. GDPR/CCPA compliant by design.
这个资产会安全暂存
这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。
npx -y tokrepo@latest install 55cad36c-349d-11f1-9bc6-00163e2b0d79 --target codex先暂存文件;激活前需要读取暂存 README 和安装计划。
What it is
Plausible Analytics is an open-source, privacy-first web analytics platform. It provides website traffic insights -- unique visitors, page views, bounce rate, visit duration, traffic sources, and device breakdowns -- through a clean single-page dashboard. It uses no cookies, collects no personal data, and is fully compliant with GDPR, CCPA, and PECR out of the box. Released under AGPL-3.0.
Plausible targets website owners who want actionable analytics without the complexity of Google Analytics and without requiring cookie consent banners. A single script tag (under 1KB) is all that is needed.
How it saves time or tokens
Plausible eliminates the need for cookie consent banners and GDPR compliance work around analytics. The lightweight script (under 1KB vs Google Analytics' 45KB+) improves page load times. The single-dashboard design surfaces all essential metrics without navigating through complex report builders. Self-hosting removes per-pageview pricing that scales with traffic.
How to use
- Add one script tag to your website:
<script defer data-domain='yourdomain.com' src='https://plausible.io/js/script.js'></script>. - For self-hosting, clone the hosting repository and run
docker compose up -d. - Access the dashboard to see real-time visitor data, traffic sources, and page analytics.
Example
<!-- Add to your website's <head> -->
<script defer data-domain="yourdomain.com"
src="https://plausible.io/js/script.js"></script>
<!-- Self-host with Docker -->
git clone https://github.com/plausible/hosting.git
cd hosting
docker compose up -d
# Access at http://localhost:8000
Related on TokRepo
- AI Tools for SEO -- SEO and analytics tools for web visibility
- AI Tools for Marketing -- Marketing analytics and attribution tools
Common pitfalls
- Plausible uses timezone-based location approximation instead of IP geolocation; city-level data is less precise than Google Analytics.
- Ad blockers may block the Plausible script if loaded from plausible.io; self-hosting with a custom subdomain (e.g., analytics.yourdomain.com) avoids this.
- Goal and event tracking requires additional JavaScript calls beyond the base script; the base script only captures pageviews automatically.
常见问题
No. Plausible uses no cookies and collects no personal data. It is compliant with GDPR, CCPA, and PECR by design. No consent banner is required because no personal data is processed. This is one of the primary reasons teams switch from Google Analytics.
Plausible can be more accurate for actual visitor counts because it is not blocked by cookie consent rejections. However, users with strict ad blockers may block Plausible too. Self-hosting on your own subdomain significantly reduces ad blocker interference. Overall, Plausible and GA4 typically show similar trends with minor absolute number differences.
Yes. Plausible supports custom event tracking via a JavaScript API. You call `plausible('event_name', {props: {key: 'value'}})` to track custom events. Goals can be configured in the dashboard to monitor conversion rates for specific events.
The software is free under AGPL-3.0. You pay only for your server. A small VPS (2GB RAM, 1 CPU) handles sites with up to 100K monthly pageviews. ClickHouse is used for analytics storage and requires some disk space. Total hosting cost is typically $5-20/month depending on your provider.
Yes. Plausible provides a Stats API for querying visitor data programmatically. You can retrieve time series, breakdowns by source/page/country, and aggregate metrics. The API supports filtering, date ranges, and custom properties.
引用来源 (3)
- Plausible GitHub— Plausible is an open-source privacy-first analytics platform
- Plausible Data Policy— GDPR compliance without cookies
- European Commission GDPR— GDPR requirements for web analytics
来源与感谢
- GitHub: plausible/analytics — 24.6K+ ⭐ | AGPL-3.0
- Website: plausible.io
讨论
相关资产
Invidious — Alternative Privacy-First Frontend for YouTube
Invidious lets you watch YouTube without ads, tracking, or a Google account. It proxies video content and strips all tracking — a self-hostable frontend for YouTube that respects your privacy.
Umami — Modern Privacy-Focused Website Analytics
Umami is an open-source, privacy-focused analytics platform and Google Analytics alternative with real-time dashboards, event tracking, and multi-site support.
Matomo — Self-Hosted Google Analytics Alternative
Matomo is a privacy-respecting, self-hosted web analytics platform used by over 1 million websites with full data ownership and GDPR compliance.
Fathom Lite — Privacy-First Self-Hosted Web Analytics
A simple, privacy-focused, self-hosted web analytics tool built with Go and Preact that tracks pageviews without cookies or personal data collection.