SlimStat 6 launchfrom $34.30/yr1 site · 5 sites $83.30 · unlimited sites $139.3030% off every planEnds Nov 16 (UTC)

Google Analytics alternatives for WordPress

Want analytics inside WordPress and control over the database? Compare self-hosted plugins by reporting, retention and cost. First, decide how much you rely on Google's Ads, Looker Studio and BigQuery integrations.

Dimension Google Analytics 4 A self-hosted WordPress plugin
Where visits are collected Google's data collection centres Your own web server
Where the rows are stored Google's infrastructure A table in your WordPress database
Sampling Possible above 10 million events Depends on the plugin and report; SlimStat’s optional heatmap capture samples visits
Event-level history 2 or 14 months, selectable As long as you keep the rows
Account needed A Google account and a GA4 property None
Price Free at the standard tier Free to $119 a year, depending on the plugin

What actually changes, in Google's own words

Three documented behaviours account for most of why WordPress site owners go looking. Each is quoted below from Google's help centre rather than from a comparison article, including the ones that are less damning than the internet believes.

Reports can be sampled, and the threshold is published

Google documents a 10-million-event limit for event-level queries in standard properties, with higher limits for Analytics 360. Reports can use a sample when the data needed exceeds the applicable limit. Check the data-quality indicator for the percentage used. This is a query limit, not a monthly traffic allowance. See Google's sampling explanation.

Sampling and estimation are different. Google also estimates distinct user and session counts in unsampled reports. A self-hosted plugin's behavior depends on the report: SlimStat traffic reports use recorded visits, while optional heatmap recording samples visits.

Event-level history is capped, but not in the way most articles claim

On a standard property, user-level and event-level data can be retained for "2 months" or "14 months"; the longer options, "26 months", "38 months" and "50 months", are marked "360 only". Age, gender and interest data is always held for two months regardless of the setting, and a property that grows into Google's Large or XL categories is "limited to 2 months" automatically.

Here is the part that comparison pages routinely get wrong, and that a GA4 user will challenge you on: the cap does not delete your reporting. Google is explicit that "the data retention setting does not affect standard aggregated reports" and "only affects explorations and funnel reports". So the honest statement is narrower than the popular one — after 14 months you lose the ability to explore the raw events, not the trend line.

Collection and processing happen on Google's servers

Google describes the path: "When Analytics establishes a connection with the closest available Google data collection center, measurement data is sent to Analytics over an encrypted HTTPS connection", after which "the data is further encrypted before it's forwarded to Analytics processing servers". Google names its own role too: "Google operates as a data processor for Google Analytics", with customers as "data controllers who retain full rights over the collection, access, retention, and deletion of their data at any time."

You can pull raw event rows back out — the free tier includes a BigQuery export documented at "Daily export: 1 M events" per day, and BigQuery is the one surface Google marks as never sampled. What no tier offers is keeping the data on your own server at the point of collection: Google Analytics is a hosted service, and Google publishes no self-hosted or on-premise deployment option. Three plugins below store analytics on your hosting; MonsterInsights instead helps you use Google Analytics inside WordPress.

The shortlist

Four plugins worth a serious look, with install counts and ratings read from wordpress.org and prices from each vendor's own pricing page on August 31, 2026. Three store visits in your WordPress database. One does not, and is on the list because it solves a different problem honestly.

Plugin Installs Rating Data lives in Paid entry price Best for
SlimStat Analytics 70,000+ 4.8 Your WordPress database $49/yr for Pro, 1 site WordPress traffic and store reports, with optional Pro visual insights
WP Statistics 600,000+ 4.1 Your WordPress database $119/yr for Premium, 1 site Content and marketing teams reporting on posts and campaigns
MonsterInsights 2,000,000+ 4.5 Google Analytics — a GA4 property is required $99.50 first year, then $199 Staying on GA4 but reading it inside wp-admin
Matomo for WordPress 100,000+ 4.6 Your WordPress database Free, self-hosted Segments, attribution and multi-site reporting depth

MonsterInsights is on the list because a great many people who search for a Google Analytics alternative do not actually want to leave GA4 — they want to stop opening a second website to read it. MonsterInsights is a connector for exactly that: its own documentation lists "You've created a Google Analytics property" as a prerequisite, and its data still lives in Google's infrastructure. If that is what you want, it is the mature answer, and its published price is $99.50 for the first year against a regular $199, with the vendor's own footnote reading "all renewals are at full price."

What you give up by leaving

A page selling you a plugin owes you this section. Four things get worse, and for some sites one of them is disqualifying:

  • Advertising attribution. GA4 links to Google Ads natively. If you buy traffic through Google and optimise on conversions, nothing self-hosted replaces that loop.
  • Looker Studio and the wider Google stack. Dashboards, Search Console joins and BigQuery at Google's scale all assume GA4 as the source.
  • Cross-device and cross-platform journeys. A first-party plugin sees your WordPress site. It does not see your app, and it does not follow one person across devices.
  • Your server carries the load. Analytics that lives in your database grows your database. One row per pageview is the trade for owning the rows, which is why retention and auto-purge is a setting worth configuring on day one rather than a year in.

Where SlimStat fits

SlimStat has been on wordpress.org since 2010 and runs on 70,000+ sites, rated 4.8 out of 5 across 816 reviews. It brings traffic, popular pages and campaign reports into WordPress. Free 6 also includes WooCommerce sales reports after setup; Pro 3 adds visual heatmaps, funnels and automatic sharing.

Your visit records stay on your hosting. Choose who can see reports, which visits to exclude and how long to keep the data. Reports describe what was recorded: consent choices, blockers and settings can leave gaps. Visitor locations are estimates. Additional heatmap recording is optional and uses a sample of visits.

Start with the installation guide to configure privacy, choose tracking that works with your cache and check a test visit. Then explore Pro if your next question is where people click, where they leave before a sale, or how to send reports to your team.

What the free plugin gives you, and what Pro adds

Free covers your everyday analytics. Get traffic reports, campaign tracking with the top two channels and campaigns, WooCommerce sales reports, the Shortcode Playground and one goal. Pro adds tools to act on what you learn: visual heatmaps, every campaign and channel, deeper store reports, more goals, funnels, Pro shortcodes, CSV downloads and automatic email reports.

This comparison covers Free 6 and Pro 3. Store reports need WooCommerce and setup; heatmap recording is optional.

What you can do FreeIncluded at no cost Pro Everything in Free, plus the extras below
Traffic reports & privacy controls Included Same as Free
Heatmaps Page list and top 5 clicked links or buttons Spot frustrating clicksVisual click and scroll maps, filters and downloads
Ecommerce Sales, products, traffic sources and recorded purchase steps See what drives salesSales by campaign, device and coupon; downloads and scheduled emails
UTM Campaigns & Channels Top two channels and campaigns in each report; UTM link builder Compare every campaignEvery channel and campaign, with paging and links to their sales
Goals & Funnels 1 active goal; no funnels Find where visitors leave5 active goals; 3 funnels
Email Reports Preview a weekly email; send yourself a sample Keep your team informedDaily, weekly or monthly emails; choose recipients and attach CSV files
Real-Time Report Live counters and Access Log Watch activity liveLive chart and report controls
Admin Bar Widget Toolbar shortcuts Check stats as you workLive quick stats
Data Export Report downloads not included Share spreadsheet reportsSpreadsheet downloads (CSV or tab-delimited)
Pro Shortcodes Shortcode Playground with Free reports and live counters Publish Pro reportsAdds Funnels, Heatmap insights, User Overview and Pages by User
User Overview Registered-user reports not included Understand member activityRegistered-user reports
Custom Database WordPress database Separate analytics storageSeparate MySQL-compatible database
Advanced Whois External lookup link Look up IP locationsLocal lookup panel
Network Analytics Individual site reports See your whole networkMultisite network reports

Pro is a paid add-on that works alongside Free, with one year of updates and support. Free keeps working if your Pro licence expires. See Pro pricing.

How to switch without losing the year you already have

  1. Install SlimStat from the plugin directory and leave Google Analytics running. The two do not conflict, and a fortnight of overlap tells you how far apart the numbers are before you rely on either.
  2. Export what you need out of GA4 first. Explorations only reach back as far as your retention setting allows, so this is the step that is genuinely irreversible.
  3. Set Tracking Mode to Client if any page cache sits in front of your site, then clear the cache so the tracking code reaches newly cached pages.
  4. Exclude your own team at Settings, so your editors do not become your best-performing audience segment. The exclusion settings cover logged-in users, IP ranges, bots and whole countries.
  5. Set a retention window that matches what you actually review. Analytics you never look at past 90 days does not need three years of rows.
  6. Once the two sets of numbers stop surprising you, remove the GA4 tag. If you keep it, keep it deliberately — the consent obligations of running both are the obligations of the stricter one.

Common questions

Will the numbers match Google Analytics?

No, and any plugin promising they will is not being straight with you. A server-side or first-party tracker records visits that ad blockers stop GA4 from ever seeing, so the totals usually come out higher. Sessions are defined differently as well. Compare direction and proportion between the two, not absolute figures.

Does a self-hosted plugin remove the need for a cookie banner?

That depends on your configuration and your jurisdiction, and this is not legal advice. What is a matter of fact is that SlimStat can be configured to anonymise or hash IP addresses, to honour Do Not Track, and to require consent before tracking at all through the WP Consent API or its own banner. What obligations follow from a given configuration is a question for someone qualified to answer it.

How much will my database grow?

One row per pageview, so it scales with traffic rather than with time. A site taking 100,000 pageviews a month writes 100,000 rows a month, and the auto-purge setting is what keeps that bounded — see retention and auto-purge for the settings and what each one does to old records.

Is the free plugin enough?

For most single sites, yes. The access log, real-time report, geolocation, outbound-link tracking, exclusion filters and one conversion goal are all free. $49 a year for Pro buys five goals, three funnels, heatmaps, scheduled email reports, the registered-user report and CSV export.

Own the record, not a summary of it

SlimStat Pro is $49 billed annually for one site, with all Pro features included. 816 reviews on wordpress.org, rated 4.8 out of 5.

See SlimStat Pro pricing

Want to try it against your current setup first? Install the free plugin and run both for a fortnight.

SlimStat Pro 30% off, from $34.30