Track Website Visitors Without Google Analytics Privacy Issues
You need to know how many people visit your website, what pages they look at, and where they come from. But Google Analytics 4 is complex, requires cookie banners, and many users block it with ad blockers — meaning you're missing data.
Plausible Analytics is a lightweight, privacy-first alternative. No cookies, no consent banners needed, and it loads in under 1 KB. (GitHub | Official Website)
What Is Plausible Analytics?
Plausible is an open-source web analytics tool that tracks website visitors without cookies. It's GDPR-compliant by default, doesn't collect personal data, and shows a clean, simple dashboard with exactly the metrics you need.
- Free and open source (AGPL-3.0 license)
- No cookies — no cookie banner needed
- 1 KB script — 45x smaller than Google Analytics
- GDPR compliant by default — no personal data collected
- Simple dashboard — visitors, pageviews, bounce rate, sources
- Goal and event tracking — track clicks, downloads, signups
- Not blocked by ad blockers when self-hosted on your domain
What You'll Need
- A VPS with at least 1 GB RAM ($5/month VPS)
- A domain name (e.g., stats.yourbusiness.com)
- About 10-15 minutes of setup time
- No coding skills required
Step 1: Install Plausible with Docker
# Install Docker
apt-get update && apt-get upgrade -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Download Plausible self-hosting files
git clone https://github.com/plausible/community-edition.git
cd community-edition
# Edit environment config
cp .env.example .env
nano .env
Update these values:
BASE_URL— set tohttps://stats.yourbusiness.comSECRET_KEY_BASE— generate withopenssl rand -base64 48DATABASE_PASSWORD— set a strong password
docker compose up -d
# Verify it's running
curl -I localhost:8000
Set Up Nginx and SSL
apt install nginx certbot python3-certbot-nginx -y
cat > /etc/nginx/sites-enabled/stats.yourbusiness.com.conf << 'EOF'
server {
server_name stats.yourbusiness.com;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
}
listen 80;
}
EOF
nginx -t && systemctl reload nginx
certbot --nginx -d stats.yourbusiness.com
Visit https://stats.yourbusiness.com, create your account, and register your website.
Step 2: Add the Tracking Script to Your Website
Plausible gives you a single line of code to add to your website:
<script defer data-domain="yourbusiness.com" src="https://stats.yourbusiness.com/js/script.js"></script>
Add this before the closing </body> tag on your website. That's it — you're tracking visitors.
Because the script is hosted on your own domain, ad blockers don't recognize it as a tracking script and won't block it. You get more accurate data than Google Analytics.
Step 3: Set Up Goals and Events (Optional)
Track specific actions like button clicks, downloads, or signups:
<script>
plausible('signup', { props: { plan: 'pro' } });
</script>
Add this to any button or form submit. Plausible logs it as a custom event with conversion rates in your dashboard.
What This Gives You
- Real-time visitor count and page views
- Traffic sources (search, social, direct, referral)
- Bounce rate and visit duration
- Top pages and countries
- Goal tracking with conversion rates
- No cookie banner needed — fully GDPR compliant
- Not blocked by ad blockers when self-hosted
- 1 KB script — your site loads faster
Cost Comparison
| Solution | Monthly Cost | Cookie Banner Required | Ad Blocker Impact |
|---|---|---|---|
| Google Analytics 4 | Free | Yes (GDPR) | Blocked by ~30% of users |
| Plausible Cloud | $9-69/mo | No | Partially blocked |
| Fathom Analytics | $14-64/mo | No | Partially blocked |
| Plausible (self-hosted) | ~$5 (VPS only) | No | Not blocked (your domain) |
Self-hosting Plausible on your own domain means no ad blocker blocks it — you capture ~30% more visitor data than Google Analytics.
Too Complex? We'll Set This Up for You
We'll install Plausible, configure your tracking, set up goals, and show you how to read the dashboard:
- One-time setup: $199
- Monthly managed: $49/month
- 6-month bundle: $1,499 (3 tools + training)
Frequently Asked Questions
Is Plausible really GDPR compliant without a cookie banner?
Yes. Plausible doesn't use cookies or collect personal data (no IP addresses, no user IDs, no cross-site tracking). It measures aggregated, anonymous data only. No consent banner is required under GDPR.
How is Plausible different from Google Analytics?
Plausible shows a simple dashboard with 10-15 metrics. Google Analytics 4 has 100+ reports and requires training to use. Plausible is built for business owners, not data analysts.
Why does self-hosting avoid ad blockers?
When you self-host Plausible on your own domain (e.g., stats.yourbusiness.com), the tracking script is served from your domain. Ad blockers only block known analytics domains like google-analytics.com or plausible.io — they don't block your custom domain.
Can I track multiple websites?
Yes. Plausible supports multiple sites in one installation. Add each site in the dashboard and use the appropriate data-domain attribute in the script tag.
Does Plausible track individual users?
No. Plausible intentionally does not track individuals. It shows aggregated data: total visitors, pageviews, bounce rate. This is what makes it privacy-compliant.
Can I import data from Google Analytics?
No. Plausible starts tracking from the moment you install the script. Historical GA data cannot be imported because the data structures are fundamentally different.
How much server resources does Plausible use?
Very little. Plausible runs on 1 GB RAM and handles thousands of daily visitors. For high-traffic sites (100K+ daily visitors), 2 GB RAM is recommended.
