Plausible Analytics dashboard showing website traffic on a laptop

How to Set Up Plausible Analytics on WordPress (Step-by-Step)

Data protection shield illustrating privacy-first analytics approach

Google Analytics has been the default choice for website owners for over a decade. But if you care about your visitors’ privacy — or need to comply with GDPR without a cookie consent banner — Plausible Analytics is one of the best alternatives available right now.

Plausible is a lightweight, open-source, cookie-free analytics tool. Its tracking script is under 1 KB (compared to Google Analytics’ 45 KB+), it collects zero personal data, and it’s fully GDPR, CCPA, and PECR compliant out of the box — no consent banner needed.

This guide walks you through setting up Plausible on a WordPress site, from account creation to verifying your first pageview.

Why Choose Plausible Over Google Analytics

Before diving into the setup, here’s why Plausible is worth the switch:

  • No cookies, no consent banners. Plausible doesn’t use cookies at all. This means you don’t need a cookie consent popup to comply with GDPR or ePrivacy Directive. Your site loads faster and looks cleaner.
  • Lightweight script. The tracking snippet is under 1 KB. Google Analytics loads 45 KB+ of JavaScript. On a WordPress site running multiple plugins, every kilobyte matters for Core Web Vitals.
  • Simple dashboard. One page with everything you need — visitors, pageviews, bounce rate, referral sources, countries, devices. No training required.
  • Data ownership. Plausible doesn’t sell or share your data. Google Analytics feeds data into Google’s advertising ecosystem.
  • Open source. The code is publicly auditable on GitHub. You can even self-host it if you want full control.

What You Need Before Starting

Setting up Plausible on WordPress takes about 10 minutes. You’ll need:

  • A WordPress site with admin access
  • A Plausible account (cloud or self-hosted)
  • That’s it — no developer skills required

Plausible Cloud starts at $9/month for up to 10K monthly pageviews, with a 30-day free trial. If your site gets under 10K views, that’s less than most WordPress plugins charge.

Step 1: Create Your Plausible Account

Head to plausible.io and sign up for an account. The registration process is straightforward:

  1. Enter your email and create a password
  2. Add your website domain (e.g., yourdomain.com — without https://)
  3. Choose your reporting timezone
  4. You’ll see a tracking snippet — keep this page open, but you won’t need to copy it manually if you use the WordPress plugin

Plausible offers a 30-day free trial without requiring a credit card. Enough time to see whether the data you get is sufficient for your needs.

Step 2: Install the Official Plausible WordPress Plugin

WordPress PHP code editor showing plugin configuration

Plausible has an official WordPress plugin that handles everything automatically. No need to edit theme files or touch code.

  1. In your WordPress admin, go to Plugins → Add New
  2. Search for “Plausible Analytics”
  3. Click Install Now, then Activate
  4. Go to Settings → Plausible Analytics
  5. Enter your domain name exactly as you registered it in Plausible
  6. Click Save Changes

The plugin automatically injects the tracking script into every page. No header.php editing, no child theme needed.

Alternative: Manual Installation Without a Plugin

If you prefer fewer plugins, you can add the Plausible script manually. Add this to your theme’s functions.php (preferably in a child theme):

add_action('wp_head', function() {
    echo '<script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>';
});

Replace yourdomain.com with your actual domain. The defer attribute ensures the script doesn’t block page rendering.

Step 3: Configure Plugin Settings

The Plausible WordPress plugin offers several optional features worth enabling:

  • Enhanced measurements. Automatically tracks file downloads, outbound link clicks, and 404 error pages — all without extra code.
  • Custom events. Track specific actions like form submissions, CTA clicks, or video plays using CSS class names. Add the class plausible-event-name=Signup to any element.
  • Proxy the script. Route the analytics script through your own domain to avoid ad blockers. The plugin has a built-in proxy option — just toggle it on.
  • Exclude admin visits. Stop counting your own page views. Enable “Track administrator” to off in plugin settings.

For most WordPress sites, enabling enhanced measurements and admin exclusion is enough. You can always adjust later.

Step 4: Verify the Installation

After saving your settings, verify everything works:

  1. Open your website in a browser (logged out, or use incognito mode if you excluded admin visits)
  2. Visit 2-3 pages on your site
  3. Go to your Plausible dashboard at plausible.io/yourdomain.com
  4. You should see “1 current visitor” in real-time within 5 seconds

If nothing shows up, check these common issues:

  • Domain mismatch. The domain in Plausible must match exactly — www.example.com and example.com are different.
  • Caching plugin. If you use WP Super Cache, W3 Total Cache, or LiteSpeed Cache, purge the cache after installing the plugin.
  • Ad blocker. Some ad blockers block the Plausible script. Use the proxy option in plugin settings to solve this.

Step 5: Remove Google Analytics

Clean analytics dashboard displaying website metrics

Once Plausible is working, remove Google Analytics to avoid loading unnecessary scripts and collecting data you no longer need. Common places where GA code hides in WordPress:

  • Google Site Kit plugin — deactivate and delete it
  • Theme settings — many themes have a “Google Analytics ID” field in the Customizer
  • Header/footer code injection plugins — check Insert Headers and Footers or similar
  • functions.php — search for gtag or UA- or G-
  • Tag Manager — if you use GTM, remove the GA tag from there

After removing GA, run PageSpeed Insights before and after. You’ll likely see a noticeable improvement in Total Blocking Time and Largest Contentful Paint.

What Plausible Tracks (and What It Doesn’t)

Understanding what data Plausible collects helps you answer stakeholder questions and write your privacy policy:

Plausible tracks:

  • Page URLs and referral sources
  • Browser and operating system (from User-Agent, without fingerprinting)
  • Country (from IP, but the IP is never stored)
  • Screen size category (mobile, tablet, desktop)
  • UTM parameters
  • Custom events (if configured)

Plausible does NOT track:

  • Individual visitors or sessions
  • Personal data (no IP addresses stored, no cookies)
  • Cross-site browsing behavior
  • Demographics (age, gender, interests)

This is by design. For a content-focused WordPress site or blog, aggregate data is all you need. You want to know which pages get traffic and where visitors come from — not who they are.

Optional: Set Up Custom Goals

Plausible supports goal tracking for measuring conversions without invasive tracking. Common goals for WordPress sites:

  • Newsletter signups. Track form submissions by adding a custom event to your email opt-in form.
  • CTA button clicks. Add the class plausible-event-name=CTA+Click to any button element.
  • File downloads. Enabled automatically with enhanced measurements — tracks PDF, ZIP, and other file downloads.
  • 404 pages. Also automatic with enhanced measurements. Shows which broken links visitors are hitting.

To create a goal, go to your Plausible dashboard → Settings → GoalsAdd Goal. Choose between pageview goals (triggered when someone visits a specific URL) and custom event goals (triggered by JavaScript events).

Plausible vs Google Analytics: Quick Comparison

FeaturePlausibleGoogle Analytics 4
Script size<1 KB45+ KB
CookiesNoneMultiple first-party cookies
Cookie banner neededNoYes (in EU)
GDPR compliant by defaultYesNo — requires configuration
Data stored in EUYes (EU-owned servers)US servers by default
Dashboard complexitySingle page200+ reports
Learning curveMinutesHours to weeks
PriceFrom $9/monthFree (you pay with data)
Open sourceYesNo

FAQ

Is Plausible accurate without cookies?

Yes. Plausible uses a hash-based system combining the visitor’s IP address, User-Agent, and a daily rotating salt. This identifies unique visitors for the current day without storing any personal data. The hash changes daily, so no visitor can be tracked across days.

Can I use Plausible and Google Analytics together?

Technically yes, but it defeats the purpose. Running both means you still load the heavy GA script and still need a cookie consent banner. If you’re evaluating Plausible, run both for 30 days during the trial, compare the data, then remove GA.

Does Plausible work with WooCommerce?

Yes. You can track WooCommerce events (add to cart, purchase completion) using custom events. The plugin also tracks revenue if you set up e-commerce goals. For most store owners, this covers 90% of what GA4’s e-commerce tracking provides.

What about self-hosting Plausible?

Plausible Community Edition is free and can be self-hosted on any VPS with Docker. You’ll need a server with at least 2 GB RAM and basic Docker knowledge. The trade-off: you handle updates, backups, and server maintenance. For most WordPress site owners, the cloud version is simpler and worth the cost.

What’s Next

You now have privacy-first analytics running on your WordPress site. Visitors aren’t tracked with cookies, your site loads faster without heavy analytics scripts, and you don’t need a consent banner cluttering your design.

If you’re evaluating other options before committing, read our comparison of privacy-focused analytics tools including Matomo, Umami, and Fathom. Each has different strengths depending on your needs.

For WordPress site owners who want to go further, our technical SEO checklist for privacy-first sites covers what to optimize once your analytics are in place.

Sophie Darge
Written by

Sophie Darge

Digital Marketing Consultant with 8+ years of experience in privacy-first analytics, SEO strategy, and cookieless marketing. Certified in Google Analytics, Google Ads, and HubSpot Inbound Marketing. Specializing in GDPR-compliant analytics solutions including Plausible, Fathom, and Matomo. Helping businesses grow online while respecting user privacy — no invasive tracking needed.

Leave a Comment

Your email address will not be published. Required fields are marked *