If you run an online storefront, a SaaS product, or a technical publication, there is a strong chance your traffic numbers still originate from Google Analytics. On paper, dropping a familiar snippet into your site header feels like the safe default. In daily operations, that default quietly distorts the exact signals you rely on to decide what to build or promote next.
First, browser privacy shields and ad blockers intercept known third-party tracking domains right at the network edge. Whenever your audience skews toward engineers, designers, founders, or privacy-conscious buyers, your dashboard ends up measuring how many visitors browse without content blockers rather than how many people read your landing page.
Second, conventional tracking bundles add tangible network weight and script execution work right while a prospect waits for your pricing table or checkout form to paint. Third, every raw clickstream stays inside someone else's infrastructure, subject to retention changes, interface overhauls, and consent-banner laws that interrupt visitors before they read a single headline.
Self-hosting Plausible Analytics resolves all four problems inside one compact stack you own end to end. You serve a sub-kilobyte cookieless script from your own subdomain, eliminate annoying consent modals for pageview counting, and keep every visitor record on disks under your control.
The command center
Before touching a single compose manifest, inspect the operational posture you get once Plausible runs on dedicated infrastructure. Three containers—the Plausible Elixir application, PostgreSQL for configuration and goals, and ClickHouse for high-throughput event queries—work behind a TLS proxy on your own subdomain.
If you want that full stack provisioned automatically without writing environment files or reverse-proxy rules by hand, you can deploy Plausible on a dedicated server in roughly ninety seconds. Every ticker in the executive card below maps to a concrete capability you control directly.
Measurement should illuminate what customers actually do on your site, not sample the minority who forgot to install a content blocker or clicked past a consent wall.
— the operating principle behind first-party cookieless web analytics
Where third-party analytics breaks down
Most founders paste a free third-party analytics tag into their site template during launch week and assume the numbers are roughly accurate. Early on, seeing any chart move upward feels reassuring enough that nobody questions the denominator.
The distortion compounds as soon as you market to buyers who care how their browser behaves. Modern privacy-focused browsers and common content-blocking extensions maintain blocklists targeting famous ad-tech script hosts right out of the box.
When your product serves software engineers, product designers, security teams, or technical operators, that silent drop-off stops being a minor rounding error. Your weekly traffic report quietly turns into a census of unblocked browsers rather than a truthful picture of landing-page demand.
Page performance pays a second hidden tax. Traditional enterprise scripts fetch sizable runtime bundles and dispatch chained network beacons right while the browser tries to render fonts, hero imagery, and interactive checkout buttons.
Even when an extra network stall shaves only fractions of a second off interactive readiness, Core Web Vitals feel the friction across mobile connections. Making buyers wait for an ad-network tracker before your signup button responds works directly against conversion.
Then comes the cookie-banner tax under European and comparable privacy regulations. The moment an analytics tag stores persistent identifiers or enables cross-site profiling, you must block first-time visitors with a modal asking permission before counting their visit.
That modal creates a double blind spot. A significant share of readers declines tracking outright—erasing their session from your funnel—while another share closes the tab rather than negotiating privacy toggles on a blog post.
Finally, keeping your clickstream on someone else's servers strips away long-term operational control. Reporting schemas change, historical retention policies tighten, and team seats turn into recurring upsells while you never hold the underlying raw table on your own disk.
You do not need persistent cookies, device fingerprints, or a sprawling behavioral dossier to learn which blog post drove signups and which referrer wasted your afternoon.
Plausible was engineered from the start around that restraint, earning roughly twenty-two thousand GitHub stars by leaving ad-network machinery behind. Instead of building cross-site user profiles, it answers the exact questions a lean product, marketing, or editorial team checks every week.
Two architectural decisions drive that clarity. First, its tracking script weighs under one kilobyte and loads with the defer attribute, so HTML parsing never pauses while analytics initialize.
Second, Plausible never writes persistent cookies and never tracks a visitor across websites or across days. Daily unique visitors are derived from a salted hash of the incoming IP address and User-Agent, and that salt rotates automatically every twenty-four hours so the raw identity cannot be reconstructed.
Four workflows, before and after
Analytics tools only earn their keep when they clarify decisions on launch day, campaign reviews, and Monday morning planning. Each workflow below contrasts a noisy third-party setup against the direct loop inside self-hosted Plausible.
Pay attention to how much operational clutter drops out of the loop once the script sits on your own subdomain. When you remove consent blockers, multi-tab menu sprawl, and external data silos, teams actually read their numbers again.
Workflow one — measuring real developer and buyer traffic without ad-blocker blind spots
https://analytics.yourdomain.com/js/script.js, bypassing generic third-party blocklists and recording live visitor counts within seconds without hurting Core Web Vitals.Serving your tracking script from a subdomain you own changes how browsers and extensions treat the request. Because the endpoint belongs to analytics.yourdomain.com rather than a well-known advertising network, far fewer blockers intercept the pageview ping.
Integration takes a single line inside the head section of your HTML template or layout component. Placing defer and data-domain directly on the tag tells the browser to fetch the sub-kilobyte payload asynchronously without stalling page rendering.
Once deployed, opening your site in a browser tab updates the live current-visitor counter inside Plausible within seconds. You verify instrumentation immediately without digging through real-time debuggers or waiting hours for batch reports to process.
Your engineering team keeps Core Web Vitals clean at the same time. Storefront pages, documentation hubs, and SaaS onboarding flows stay snappy because there are no megabyte-scale tag containers piggybacking on every navigation.
Workflow two — shipping European and global landing pages without cookie-banner friction
Most teams tolerate consent popups not because they run retargeting ads, but because their analytics snippet drops persistent client cookies by default. Removing those persistent identifiers eliminates the exact behavior that triggers consent-wall requirements for simple traffic counting.
Under the hood, Plausible generates a daily identifier by combining the visitor's IP address and User-Agent string with a server-side salt. Every twenty-four hours, that salt rotates cleanly, severing any ability to link a reader across consecutive days or across unrelated websites.
You still get the operational geography and device context required to tune your site. Country, region, and city breakdowns sit alongside screen size, operating system, and browser share inside the dashboard without assembling a permanent dossier on any individual.
For visitors, the first impression becomes noticeably calmer. They land on your headline, read your pricing or documentation immediately, and convert without wrestling through three layers of cookie preference toggles.
Workflow three — attributing campaigns, goals, and signups on one scannable screen
Plausible compresses the core growth funnel onto a single scannable view instead of scattering metrics across dozens of nested menus. At a glance, you inspect unique visitors, total pageviews, bounce rate, and average visit duration over any date window.
Right beneath the main trend chart, Top Pages shows exactly which landing URLs attract readers, which blog posts hold attention, and which exit pages leak prospects. The Referrers panel tracks search engines, social links, newsletters, and standard UTM campaign parameters (utm_source, utm_medium, and utm_campaign) side by side.
Conversion tracking stays equally lightweight. Page-visit goals—such as hitting /thank-you or /order-confirmed—take thirty seconds to define directly inside the UI without touching application code.
When you need button-level granularity, trigger a custom event with plausible('Signup', { props: { plan: 'starter' } }) in frontend code, or attach a CSS class like plausible-event-name=Newsletter+Subscribe to links when you want zero-JavaScript event tracking. Both show up immediately under your goals breakdown filtered by referrer or campaign.
Workflow four — catching traffic spikes and keeping weekly cadence via automated email digests
plausible-conf.env power automatic Monday weekly digests, monthly summaries, and live traffic spike alerts, while built-in visit exclusions filter out your team's own browsers and office IP.Even the cleanest analytics screen fails if nobody remembers to check it between product sprints. Wiring outbound SMTP variables—MAILER_EMAIL, SMTP_HOST_ADDR, port 587, credentials, and SSL enabled—turns Plausible into a proactive weekly briefing.
Under Site Settings and Email Reports, you toggle Monday morning digests and monthly summaries for founders, editors, or marketing teammates. You can also enable traffic spike notifications so an unexpected mention or referral surge lands in your inbox while there is still time to engage.
Clean digests depend on clean inputs, especially on early-stage sites where internal QA sessions skew daily totals. Plausible filters known bots and scrapers automatically so automated crawlers never distort your bounce rate.
For your own team, open Site Settings and Visibility to toggle browser visit exclusion or register your office IP range. Every copy tweak, deployment smoke test, and CSS check disappears from your visitor counts, leaving pure customer signal behind.
Reading analytics telemetry like an operator
Dashboard aesthetics matter far less than measurement integrity. Two operational curves determine whether your marketing and product choices rest on real customer behavior or broken instrumentation: how much signal survives browser blocking and consent drop-offs, and who handles server upkeep.
Start with signal retention across your funnel. When a third-party tracker hits privacy-browser filter lists, encounters ad-blocking extensions, and loses readers who reject cookie modals, observed traffic shrinks unevenly across audience segments.
Moving that same script onto your own analytics.yourdomain.com subdomain while eliminating persistent cookies recovers visibility across the exact technical and privacy-minded visitors who otherwise vanished. The infographic below traces how those architectural choices shape observed funnel signal without quoting a single price.
Notice why the curve climbs steeply when you pair own-subdomain delivery with cookieless counting. You recover both the visitors whose extensions strip shared tracking domains and the visitors who refuse intrusive consent prompts.
Because the script stays under a kilobyte and defers execution, you also eliminate the subtle bounce penalty caused by heavy third-party bundles stalling mobile page loads. Cleaner inputs translate directly into sharper attribution for every campaign you run.
The second operational chart examines who performs the surrounding server work. Self-hosting Plausible means running a three-container stack—application, PostgreSQL, and ClickHouse—yet most repetitive infrastructure chores can be absorbed cleanly by your hosting control plane.
That boundary makes self-hosting sustainable for small teams without a dedicated DevOps hire. Provisioning Docker, setting up TLS certificates, wiring custom domains, and watching host security logs belong in automated platform plumbing.
Meaningful analytics decisions stay with your product and growth leads. You choose which signup buttons emit custom events, which UTM conventions your newsletter follows, and when to promote a new pinned release tag after snapshotting Postgres and ClickHouse.
What the dashboard actually does
Running Plausible on an unmanaged Linux box gives you total freedom, yet it also asks your team to maintain reverse proxies, TLS cron renewals, firewall hardening, and volume backups by hand. Most product teams would rather focus on conversion funnels and product launches than babysit host plumbing.
Every dedicated DeployInstant server organizes host controls into clear, predictable tabs so daily server operations never require hunting through shell history. Here is what each tab handles for a self-hosted Plausible Analytics instance.
Overview, Ops and Activity
Overview puts the server vitals on one screen: live running state, dedicated CPU and memory cards, public IP address, hosting region, and direct SSH access. Stop, Restart, and Open app controls sit one click away whenever you want to bounce the analytics stack or jump straight into your dashboard.
The Ops tab keeps the three-container Plausible runtime steady with automated health checks and container auto-healing. If a traffic surge spikes ClickHouse memory or a host reboot finishes, the runtime recovers without waiting for manual SSH intervention.
Activity records every provider-executed lifecycle action—boots, stops, restarts, and reboots—with exact timestamps. Whenever you compare a brief dip in ingested pageviews against host maintenance, you have an authoritative timeline on hand.
Domain, Email business and clean TLS
First-party analytics depends entirely on serving script.js from your own HTTPS domain rather than a raw IP address or mismatched certificate. Every instance launches with a free managed subdomain right out of the gate so you can sign in and test instrumentation within seconds.
Once you are ready to wire analytics.yourdomain.com, the Domain tab lets you point a standard DNS A record at your server IP or delegate nameservers for managed DNS. Certificates issue and renew automatically, ensuring modern browsers never throw mixed-content or expired-TLS errors that silently block your tracking script.
The Email business tab attaches a clean domain-matched mailbox alongside your deployment. Sending Plausible registration verification messages, Monday traffic digests, and spike alerts from an address on your own domain prevents reports from landing in spam folders.
SSE Security, Backups and Shield
Any public server accepting HTTPS analytics beacons from around the internet also attracts automated SSH scanners. The SSE Security tab runs an always-on daemon from boot and streams security events over Server-Sent Events without adding third-party monitoring agents.
It catches SSH brute-force attempts in the authentication log, flags CPU or memory spikes before ClickHouse hits resource pressure, and throttles outbound alerts so a noisy scanner cannot flood your Telegram room or inbox. You can even flip a switch to open automatic admin tickets for suspicious findings while preserving full event history.
Backups and Shield round out day-two operations with scheduled snapshots, one-click restore paths, and edge protection. If you want a pre-wired Plausible host with all of these controls ready in roughly ninety seconds, launch Plausible via DeployInstant on its own dedicated server.
Operational and TCO comparison across analytics models
Evaluating a raw unmanaged VPS, a hosted SaaS analytics vendor, and a managed dedicated instance comes down to measurement accuracy, data custody, and scaling friction. To ground how commercial SaaS vendors meter monthly pageviews and events, published SaaS analytics pricing benchmarks appear strictly inside the comparison table below.
DeployInstant provisions a dedicated single-tenant server sized for the Plausible stack, with zero per-pageview meters, zero per-seat fees, and unlimited websites within your server capacity.
| Operational & TCO parameter | Raw unmanaged VPS | Hosted SaaS analytics (published tiers) | Managed DeployInstant instance |
|---|---|---|---|
| Time from signup to live script.js | 45-120 minutes configuring Docker, Compose, Postgres, ClickHouse, and reverse proxy | 5-10 minutes via web onboarding and DNS CNAME | Roughly 90 seconds of guided deployment |
| Ad-blocker resilience (first-party delivery) | High once you configure custom subdomain + TLS proxy yourself | Requires paid custom-domain proxy or CNAME setup; default script domain often blocked | First-party subdomain + automatic HTTPS ready out of the box |
| Published SaaS scaling & volume tiers | Self-managed VPS infrastructure bills only | Metered monthly pageviews/events: Plausible Cloud Starter $9/mo (10k), Growth $14/mo, Business $19/mo (100k+); Fathom $15/mo (100k), $25/mo (200k), $45/mo (500k); Simple Analytics $20/mo (100k), $40/mo (500k), $60/mo (1M) | Flat dedicated server model; unlimited sites, pageviews, custom events, and team logins within hardware headroom |
| Team seats & client sites | Unlimited inside Plausible; you manage SMTP invites | Entry plans often cap websites (1-10 sites) and team seats (1-3 users) | Unlimited sites and teammates with zero seat surcharges |
| Cookie-banner impact & GDPR posture | Cookieless 24h salted IP+UA hash; zero banners needed for pageviews | Cookieless by design on privacy SaaS; GA4 relies on cookies/identifiers | Cookieless 24h salted IP+UA hash hosted on hardware you designate |
| Script payload & Core Web Vitals | < 1 KB deferred Plausible script | ~1-2 KB on privacy SaaS; tens of KB on traditional ad-tech trackers | < 1 KB deferred Plausible script served from your own TLS edge |
| TLS certificate issuance & renewal | Manual Caddy or Nginx + Certbot cron maintenance | Managed invisibly on vendor domain or CNAME proxy | Automatic TLS issuance and renewal via Domain tab |
| Default address before custom DNS | Raw IP and port 8000 until reverse proxy is wired | Vendor dashboard URL | Free managed HTTPS subdomain ready immediately |
| SMTP digests & spike notifications | Manually configure MAILER_EMAIL and SMTP vars in plausible-conf.env | Built-in weekly and spike emails | Email business tab + SMTP env vars ready for Monday digests and alerts |
| Server security & ClickHouse spike alerts | DIY fail2ban, journalctl, and memory monitoring scripts | Opaque SaaS infrastructure; zero host visibility | Always-on SSE Security daemon for SSH probes and CPU/RAM spikes |
| Dual-database backup & state custody | Manual pg_dump for Postgres + ClickHouse snapshot scripts | CSV export only; raw ClickHouse event tables stay inside vendor cloud | Full ownership of db-data (Postgres) and event-data (ClickHouse) + snapshots |
| OS patching & lifecycle visibility | Entirely manual over SSH | Managed invisibly | Server-level start, stop, reboot, and health logged in Activity and Ops |
| Provider exit & migration portability | Copy compose.yml, plausible-conf.env, Postgres dump, and ClickHouse volume | Export historical CSVs and reconfigure tracking tags if migrating | Standard Docker volumes, SQL dumps, and instance clone controls |
Look closely at the third and fourth rows of that table. Hosted privacy analytics tiers stay modest when a single hobby blog receives ten thousand monthly views, yet adding three client storefronts, custom conversion events, and a traffic spike quickly bumps accounts into higher volume brackets.
On your own dedicated Plausible instance, a viral blog post or a new marketing microsite triggers zero overage upgrades and zero per-seat billing surprises. You size the virtual machine for your actual event throughput and keep every historical row on your own storage.
Architecture, three-container stack, and exit rights
Understanding how Plausible separates responsibilities across three containers takes the mystery out of running it in production. Instead of cramming user accounts and billions of raw pageview rows into one overloaded engine, Docker Compose pairs two specialized databases behind the web application.
The plausible/analytics container serves the web dashboard, the ingestion API, and the sub-kilobyte tracking script on loopback port 8000 behind a TLS reverse proxy. PostgreSQL (postgres:16-alpine) stores user accounts, site settings, and configured goals inside the db-data volume.
ClickHouse (clickhouse/clickhouse-server:24-alpine) stores and queries high-volume pageviews and custom events inside the event-data volume with file-descriptor limits raised to 262144. That columnar engine is why filtering twelve months of traffic by UTM campaign and country returns in milliseconds.
Because state lives across two distinct volumes, exit freedom and backup hygiene depend on protecting both. Backing up only PostgreSQL preserves your logins and goal definitions while wiping out every historical visitor chart, whereas backing up both keeps the entire analytics archive portable across any Linux Docker host.
Step-by-step Docker Compose deployment and configuration
If you choose the manual path on a Linux VPS with Docker, Docker Compose, and a TLS reverse proxy such as Caddy or Nginx, setup follows a clean, reproducible sequence. Start by creating an isolated directory for your manifests and generating a cryptographic SECRET_KEY_BASE for session signing:
mkdir -p plausible && cd plausible
openssl rand -base64 48
Copy the generated secret string and create a plausible-conf.env file inside the same directory. Point BASE_URL at your dedicated analytics subdomain and supply strong matching credentials for PostgreSQL alongside the internal ClickHouse connection string:
BASE_URL=https://analytics.yourdomain.com
SECRET_KEY_BASE=paste-your-generated-key-here
DATABASE_URL=postgres://postgres:choose-a-strong-db-password@plausible_db:5432/plausible_db
CLICKHOUSE_DATABASE_URL=http://plausible_events_db:8123/plausible_events_db
Next, create your compose.yml file defining plausible_db, plausible_events_db with the required nofile ulimit of 262144, and the plausible web service bound strictly to localhost port 8000:
services:
plausible_db:
image: postgres:16-alpine
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=choose-a-strong-db-password
- POSTGRES_DB=plausible_db
plausible_events_db:
image: clickhouse/clickhouse-server:24-alpine
restart: always
volumes:
- event-data:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
plausible:
image: plausible/analytics:latest
restart: always
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
depends_on:
- plausible_db
- plausible_events_db
ports:
- "127.0.0.1:8000:8000"
env_file:
- plausible-conf.env
volumes:
db-data:
event-data:
Launch all three containers in detached mode with docker compose up -d, point a DNS A record for analytics.yourdomain.com to your server, and proxy HTTPS traffic to http://127.0.0.1:8000. When you visit your subdomain over TLS, Plausible presents a first-run registration screen to create your admin account, register your website domain, and select a reporting timezone.
If outbound mail is not configured yet during local testing, you can temporarily mark the initial admin user verified in Postgres, though production teams should wire SMTP variables immediately in plausible-conf.env and re-apply with docker compose up -d:
[email protected]
SMTP_HOST_ADDR=smtp.your-mail-provider.com
SMTP_HOST_PORT=587
SMTP_USER_NAME=smtp-username
SMTP_USER_PWD=smtp-password
SMTP_HOST_SSL_ENABLED=true
Once your site is added inside the dashboard, paste the single deferred tracking tag inside your HTML head element and watch live visitors increment within seconds. To record custom actions alongside pageviews, either call the lightweight frontend helper or add a CSS class directly on buttons and links:
<script defer data-domain="yourdomain.com" src="https://analytics.yourdomain.com/js/script.js"></script>
// Optional JavaScript custom event with properties:
plausible('Signup', { props: { plan: 'starter' } })
// Or zero-JavaScript CSS class trigger on HTML links/buttons:
// class="plausible-event-name=Newsletter+Subscribe"
Those three export doors guarantee you never trade one form of vendor lock-in for another. Your team definitions, conversion goals, and raw ClickHouse event tables move cleanly using standard PostgreSQL dumps, ClickHouse snapshots, and portable Compose manifests.
When upgrading Plausible in production, avoid leaving plausible/analytics:latest unpinned indefinitely. Pin a specific release tag inside compose.yml, review the release notes for any environment variable or schema migration changes, snapshot both volumes, and then update cleanly with docker compose pull && docker compose up -d.
Rollout playbook: migrating without losing a single day of numbers
Switching analytics platforms never requires an abrupt overnight cutover. Run your self-hosted Plausible script in parallel alongside Google Analytics or your existing tracker for two full weeks before retiring the legacy tag.
Start by deploying Plausible on analytics.yourdomain.com and confirming TLS certificate validation across desktop and mobile browsers. Add the sub-kilobyte deferred tag to your shared layout template so every page—marketing, blog, documentation, and checkout—reports cleanly.
During week one, compare daily trends rather than expecting identical absolute totals. Expect Plausible to record higher real human traffic on developer, design, and European landing pages because your first-party subdomain avoids common third-party blocklists and consent-banner attrition.
Next, replicate every key conversion goal and verify UTM attribution. Confirm that /thank-you or /order-confirmed page-visit goals and custom Signup events fire reliably, and register your team's browsers and office IP addresses under Site Settings Visibility so internal QA stays excluded.
At the end of week two, archive historical summary exports from your old provider for reference and delete the legacy script tag from your layout. Immediately verify your next page-load audit: faster script parsing, fewer outbound requests, and zero consent popups needed solely for counting visits.
Day-two operations, written down
Self-hosted analytics stays remarkably quiet once wired properly, provided your team keeps five small maintenance habits on the calendar. Each habit takes minutes rather than hours and prevents preventable surprises months after launch.
First, verify that both db-data and event-data appear in your automated backup schedule. Run pg_dump against plausible_db alongside a ClickHouse backup or stopped-container volume snapshot, and test restoring both onto a scratch server once a quarter.
Second, watch disk consumption on the ClickHouse volume as traffic grows. Pageview and custom-event tables compress efficiently in ClickHouse, yet monitoring disk headroom through your instance overview or SSE alerts prevents silent write stalls during a traffic surge.
Third, keep release tags pinned in production rather than chasing unpinned latest pulls automatically. Reading release notes before stepping up versions catches deprecated environment keys or database migration flags before downtime occurs.
Fourth, audit UTM hygiene and goal names whenever new campaigns launch. Keeping utm_source and utm_medium lowercase and consistent stops fragmentation across newsletter, social, and paid referral rows.
Fifth, re-check internal visit exclusions whenever teammates switch laptops or your office ISP rotates IP blocks. Clean exclusions keep small conversion funnels truthful when every dozen signups matters.
Alternatives weighed honestly
Self-hosted Plausible is not the only credible way to measure web traffic, and matching the tool to your actual constraint saves rework later. Looking plainly at the leading options clarifies where each tool belongs.
Google Analytics 4 remains standard when your marketing operation depends directly on tight bidirectional integration with Google Ads bidding pipelines and you already staff an analytics specialist to maintain Tag Manager and consent-mode banners. For product teams who simply want honest pageviews, referrers, and conversion goals without third-party data sharing, GA4 brings far more friction than signal.
Plausible Cloud gives you the identical single-screen UI and cookieless architecture operated by the upstream creators without touching Docker or ClickHouse. If your monthly traffic is modest and you prefer paying a metered subscription over managing any server at all, their managed cloud is straightforward; once multiple sites, high-traffic spikes, or strict data-residency policies enter the picture, self-hosting on a dedicated box removes volume ceilings.
Fathom Analytics and Simple Analytics offer comparable privacy-first hosted experiences with clean dashboards and custom-domain options. Both shine for founders who strictly want SaaS billing per monthly volume tier, whereas self-hosting Plausible appeals to teams who want open-source code, zero per-pageview fees, and direct ownership of raw ClickHouse tables.
Matomo covers the heavier self-hosted end of the spectrum, packing session recordings, heatmaps, and extensive behavioral plugins into an older enterprise interface. If your workflow specifically demands granular session-level replays, Matomo fits that brief; if you want a sub-kilobyte script and a fast one-screen summary backed by ClickHouse, Plausible is significantly lighter to operate and easier for teammates to read.
Instrumenting goals, custom properties, and clean taxonomies
Analytics setups rot fastest when every team invents conflicting event names during separate product sprints. Establishing a short, predictable naming convention before you add custom triggers keeps your ClickHouse event tables readable years after launch.
Start with page-visit goals for your clearest commercial milestones. Destination URLs such as /thank-you, /order-confirmed, or /welcome require zero JavaScript instrumentation because Plausible evaluates them directly inside the dashboard whenever matching pageviews arrive.
Reserve JavaScript calls and CSS class hooks for interactions that never change the browser URL. A static documentation download, an outbound partner click, or an inline newsletter subscription works cleanly with plausible-event-name=Newsletter+Subscribe attached directly to the button or anchor element.
When an interaction carries context that determines product strategy, emit a structured event via plausible('Signup', { props: { plan: 'starter' } }). Keep property keys tight and low-cardinality—such as tier names, billing cadence, or template categories—rather than dumping raw user IDs or unconstrained search strings that fragment reports.
Test every new goal immediately after deploying to staging or production by triggering the button once from an un-excluded test browser. Watching the conversion count increment in real time confirms your event taxonomy works before campaign traffic hits the page.
Compliance evidence and data residency without legal guesswork
B2B buyers, European procurement teams, and security reviewers routinely ask where website telemetry travels before signing an annual contract. Relying on a third-party ad-tech script turns a routine security questionnaire into an uncomfortable audit of sub-processors and cross-border data transfers.
Self-hosting Plausible simplifies that conversation down to three verifiable facts. First, your tracking endpoint sits on analytics.yourdomain.com inside a hosting region you explicitly pick when provisioning the server.
Second, the script writes zero persistent cookies and performs zero cross-site or cross-device tracking. Daily unique visitor counts rely solely on a salted hash of the request IP address and User-Agent, and that salt rotates automatically every twenty-four hours.
Third, both PostgreSQL and ClickHouse run inside containers on your own isolated disk rather than inside an external advertising network. You can document the exact container versions, volume layout, and retention posture directly from your own Compose manifest without waiting on a vendor privacy portal.
That clarity protects more than compliance checklists. When visitors see no invasive consent overlay and zero outbound beacons to third-party trackers, your brand earns immediate trust from the first page load.
The first week, as a checklist
- Provision your Plausible stack via Docker Compose or a guided instance template with PostgreSQL 16 and ClickHouse 24 configured.
- Generate a unique cryptographic
SECRET_KEY_BASEwithopenssl rand -base64 48and store database credentials safely inplausible-conf.env. - Point a custom subdomain such as
analytics.yourdomain.comat your server and verify automatic HTTPS certificate issuance. - Complete first-admin registration, register your primary site domain, and lock in your team's reporting timezone.
- Wire outbound SMTP settings in
plausible-conf.envso email verification, Monday digests, and traffic spike alerts deliver reliably. - Add the single deferred tracking tag to your site layout and confirm live visitor counts tick up within seconds.
- Configure page-visit goals for key conversion URLs alongside custom
plausible()events or zero-JS CSS class hooks. - Exclude your own browsers and office IP ranges under Site Settings Visibility while letting Plausible filter crawlers automatically.
- Run Plausible alongside your legacy tracker for two weeks to compare ad-blocker recovery and confirm UTM attribution parity.
- Verify scheduled backups covering both
db-data(Postgres) andevent-data(ClickHouse), then remove the old heavy tracking tag.
Working through those ten steps moves web measurement out of third-party ad-tech pipelines and onto quiet, transparent infrastructure you control. Within a single afternoon, your storefront, documentation, and SaaS app shed render-blocking script weight and annoying consent modals.
More importantly, your team regains confidence in the numbers guiding product and marketing bets. Every visit, campaign link, and signup conversion reflects real readers rather than whoever happened to browse without an ad blocker.
Questions operators ask before cutting over
Does serving Plausible from my own subdomain really reduce ad-blocker distortion?
Yes, significantly. Popular browser privacy shields and content-blocking extensions maintain default filter lists targeting major third-party tracking domains such as Google Analytics.
When you serve Plausible's sub-kilobyte script from your own analytics.yourdomain.com subdomain as a first-party endpoint, far fewer blockers intercept the request, giving you a much truer reading of technical and privacy-minded visitors.
Why does Plausible not require a cookie banner just to count pageviews?
Under EU privacy rules, consent banners are triggered when a site stores persistent identifiers on a visitor's device or tracks individuals across sites and sessions. Plausible never sets persistent cookies and never stores cross-session personal profiles.
Instead, it computes daily unique visitors from a one-way salted hash of the visitor's IP address and User-Agent, rotating the salt every twenty-four hours so visitors remain anonymous across days.
Will adding Plausible slow down my storefront or hurt Core Web Vitals?
No. The tracking script weighs under one kilobyte and loads with the HTML defer attribute, meaning the browser parses and paints your headline, styles, and checkout controls before executing the analytics snippet.
Replacing multi-script third-party tag managers with a single deferred first-party call routinely improves page speed and interactive readiness on mobile connections.
Why does self-hosted Plausible run both PostgreSQL and ClickHouse?
Each database solves a different workload cleanly. PostgreSQL (postgres:16-alpine) handles transactional application state such as user logins, site configurations, email report settings, and goal definitions inside db-data.
ClickHouse (clickhouse/clickhouse-server:24-alpine) is a high-speed columnar analytics database storing pageviews and custom events inside event-data, keeping dashboard filtering fast even as historical traffic grows into millions of events.
What happens if I back up only PostgreSQL and forget ClickHouse?
Restoring only db-data recovers your admin account, domain list, and goal definitions, while leaving every historical traffic chart and pageview count completely empty. Always back up both db-data (via pg_dump) and event-data (via ClickHouse backup or a stopped-container volume snapshot).
Rehearsing a test restore onto a staging box once a quarter confirms both volumes recover cleanly together.
How can I track button clicks or newsletter signups without writing complex JavaScript?
For destination pages like /thank-you or /order-confirmed, create a page-visit goal directly inside the Plausible UI with zero code edits. For button clicks or downloads without a destination URL, add a CSS class such as plausible-event-name=Newsletter+Subscribe straight onto the link or button element.
If you want structured metadata on a conversion—such as the chosen subscription tier—call plausible('Signup', { props: { plan: 'starter' } }) from your frontend handler.
How do I stop my own team and automated bots from skewing traffic metrics?
Plausible automatically filters out known crawlers and scraper bots so automated traffic never inflates pageviews or ruins bounce rates. For your internal team, toggle browser visit exclusion under Site Settings Visibility or add your office IP address to the exclusion list.
Doing that before launch keeps staging checks and copy edits cleanly separated from customer visits.
How should I handle version upgrades in production?
Pin a specific release version tag in compose.yml rather than relying on plausible/analytics:latest indefinitely. Before upgrading, read the Plausible release notes for any new environment variables or database migration guidance, snapshot both db-data and event-data, and then apply the update with docker compose pull && docker compose up -d.
Keeping upgrades deliberate prevents unexpected schema changes during a busy marketing campaign.
Honest analytics begins the moment your numbers stop reflecting who turned off an ad blocker and start reflecting every real human who arrived on your site.
Running your own web analytics does not require enterprise contracts or bloated client-side tag managers. With self-hosted Plausible on a dedicated server, you get a sub-kilobyte cookieless script on your own subdomain, zero cookie banners for pageview counting, single-screen campaign and goal clarity, automated Monday digests, and full custody of your PostgreSQL and ClickHouse volumes.
Skip writing Docker Compose files, ulimit overrides, and TLS reverse-proxy configs from scratch: deploy Plausible in about ninety seconds on DeployInstant, attach your custom analytics subdomain with automatic HTTPS, and measure your actual audience rather than your ad-blocker gap.