Install guide
WordPress analytics, without the Google round trip
Pick the kind you need first. Installing is the easy part.
Most people searching for a WordPress analytics plugin are really choosing what happens to the numbers. Decide that first.
There are three answers, and they’re genuinely different products.
The three kinds
A plugin that puts Google Analytics in your dashboard. MonsterInsights and Site Kit by Google are the two most people land on. MonsterInsights describes itself as “the best free Google Analytics plugin for WordPress”, which is exactly what it is: a nicer window onto GA4. The data still goes to Google, you still get GA4’s reports, and you still need a consent banner. Checked September 6, 2026.
A plugin that stores the data in your own WordPress database. Independent Analytics and Burst both work this way. Nothing leaves your server, which is a real advantage. The trade is that your database carries every pageview forever and your host does the counting, so the bill arrives as slower queries rather than as an invoice.
A hosted service, added with a plugin or one tag. Feasible is this. The counting happens somewhere else, your database stays the size it was, and the reports don’t compete with your site for CPU.
None of these is the right answer for everyone. If you’re already deep in Google Ads and you need GA4’s attribution, use the Google route. If you run one small site and never want a third party involved, the database route is honest and cheap. We built the third one because we had fifty sites and wanted one bill and one dashboard.
What ours does
No cookies, so most sites won’t need a consent banner. One page of reports rather than a builder. Unlimited sites and unlimited team members on one price, because we count pageviews and nothing else.
Our plugin, Feasible Analytics, counts site searches (the term, how many results came back, and whether it found anything) and 404s (the missing path and where the visitor came from) by itself, with no theme edit. Outbound clicks, file downloads and form submissions are on too, each with its own switch, and scroll depth comes with the script.
Without the plugin, the tag still counts outbound clicks, file downloads, form submissions and scroll depth on its own. A 404 then needs one line, feasible('404'), in your theme’s 404 template, because a browser can’t tell an error page from any other page. Site-search terms come with the plugin.
Installing it
Three routes. Our plugin is the one we’d pick. WPCode and the theme file are there if you’d rather not add a plugin.
The plugin
- Plugins → Add New Plugin, search for Feasible Analytics, then click Install Now and Activate.
- Open Feasible → Settings. Check the site domain matches the site in your Feasible account.
- Tick Turn on tracking, click Save Changes, and clear your cache.
Nothing is added to your pages until that box is ticked. It needs WordPress 5.9 or later and PHP 7.4 or later, and a Feasible account or your own self-hosted copy. It stores no statistics in your WordPress database.
The plugin serves the tracking script and the event endpoint from your own domain, on random paths made up for your site. That’s proxying without touching a server config. It’s on by default, so leave it on. The same screen can leave out logged-in users or the roles you pick. Paste a shared link without a password and your dashboard shows up in wp-admin under Feasible → Dashboard.
WPCode
- Plugins → Add New Plugin, search for WPCode, then install and activate it. Plenty of sites already have it.
- Open Code Snippets → Header & Footer.
- Paste the tag into the Header box, not the footer, click Save Changes, and clear your cache.
<script>window.feasible=window.feasible||function(){(window.feasible.q=window.feasible.q||[]).push(arguments)};</script>
<script defer src="https://cdn.feasible.lol/js/fs-k7m2q4x5r3n6t2v5.js"></script>This survives theme updates, theme switches, and the day someone edits the theme files by hand. Any other header-scripts plugin works the same way: use the box for the <head> section.
The theme file
- Appearance → Theme File Editor.
- Pick your child theme in the selector at the top right.
- Open Theme Header (
header.php). - Paste the tag just before
</head>and click Update File.
Use a child theme. A snippet pasted into a parent theme is erased by the next theme update, and your traffic stops with no warning at all - no error, no email, just a flat line you notice three weeks later.
Block themes - Twenty Twenty-Four, Twenty Twenty-Five, anything built for the site editor - have no header.php. Use the plugin or WPCode.
Caching plugins
This is where WordPress installs go wrong.
Don’t add the script to a “delay JavaScript execution” or “defer JavaScript” list. WP Rocket, LiteSpeed Cache and Autoptimize all offer one. The tag is already deferred. Delaying it a second time holds it until the first user interaction, and a visitor who reads one page and leaves never gets counted.
Purge the cache after you turn tracking on or paste the tag. Otherwise you’re testing a page rendered before the tag existed, and you’ll spend twenty minutes debugging a file that’s already correct.
If you use a minifier, exclude the tag or check the rendered source afterwards. Some of them rewrite or drop script tags they don’t recognise, and the tag then loads nothing.
Check it worked
Clear your cache, open your site in a normal browser window, and click through two or three pages. Then open Feasible.
You should show up under Real-time visitors. With the plugin, Tools → Site Health also says whether Feasible is measuring the site. If you don’t show up, go to Site settings → Ingestion health. It counts every event that arrived and every one that was dropped, each with a named reason - unknown_site means the snippet is for a site you haven’t registered, hostname_not_allowed means the page is on a hostname that isn’t on your list.
The send a test event button there posts through the real public URL, so it exercises what a browser does.
A brand-new site takes about fifteen seconds before its first event is accepted, so give it a moment before you start changing things.
Moving from Google Analytics
Connect your GA4 property and its pages, sources, locations, devices and browsers appear beside the new numbers, with no file to export. How that works. You keep the history and drop the banner.
Running WordPress behind something else? See Ghost, Shopify, or the full install docs.