What is WP Statistics plugin?
WP Statistics is a self-hosted WordPress analytics plugin that stores all visitor data directly in your own database — no Google, no third-party servers, no external tracking. This privacy-first architecture makes it the leading choice for sites operating under strict GDPR, CCPA, or data sovereignty requirements, particularly in the European Union. With over 600,000 active installations, it is the most widely used non-Google analytics plugin on WordPress.org.
Because WP Statistics collects data server-side without JavaScript tracking, it is not affected by ad blockers or browser privacy settings that block Google Analytics tags. Visitors using uBlock Origin, Privacy Badger, or Firefox Enhanced Tracking Protection are still counted in WP Statistics. This gives it a meaningful data completeness advantage over GA4-based plugins on sites with technically sophisticated audiences. The plugin tracks page views, unique visitors, referrers, search engine queries, browser and device data, geographic location via GeoIP database, and online user counts — all stored in WordPress database tables.
The limitation is analytical depth: WP Statistics does not offer funnel analysis, event tracking, conversion goals, or audience segmentation. It reports traffic, not behavior. WP Statistics Premium (starting around $69/year) adds mini charts, data plus reports, and enhanced content analytics. For sites prioritizing GDPR compliance, data ownership, and accurate traffic counting over advanced behavioral analysis, WP Statistics is the strongest free option. Sites needing conversion tracking should complement it with a consent-based analytics solution.
Need Help With WP Statistics Setup, Troubleshooting, or Customization?
Need help with WP Statistics? Whether you are dealing with errors, broken functionality, styling problems, plugin conflicts, or advanced customization, we can help you fix the issue and get the plugin working properly on your WordPress site.
Get WP Statistics Expert HelpKey Features
- Self-hosted analytics — all data stored in your WordPress database
- No JavaScript tracking — immune to ad blockers
- Page views, unique visitors, sessions, and bounce tracking
- Referrer tracking (traffic sources, search engines, social)
- Geographic data via GeoIP database
Pros & Cons
Pros
- Complete GDPR compliance — no consent required in many EU configurations
- Ad blocker-resistant server-side tracking captures visitors that GA4 misses
- Full data ownership — analytics data stays on your server
Cons
- No event tracking, funnel analysis, or conversion goals
- No real-time analytics
Free vs Premium
Free: all core analytics features, traffic reports, geographic data, referrers. Premium ($69/year): mini charts, data plus reports, advanced content analytics, email reports, extended support.
Common Problems & Fixes
WP Statistics visitor counts seem much lower than expected — could data be missing?
WP Statistics tracks visitors server-side, but certain configurations cause undercounting. Check: (1) caching plugins — if pages are served as full HTML cache without PHP execution, WP Statistics cannot record visits — use the REST API tracking method in WP Statistics Settings → General → Tracker Method, which works with cached pages; (2) CDN configurations that serve pages without hitting your origin server; (3) bots and crawlers are filtered out by WP Statistics by design, which reduces counts compared to tools that count bot traffic.
WP Statistics is causing database performance issues on a high-traffic site — how do I address this?
WP Statistics writes a database record for every page view, generating significant load on high-traffic sites. Mitigation: (1) enable data pruning in WP Statistics → Optimization — set automatic deletion of old records (e.g., keep 12 months of data); (2) add database indexes via the plugin optimization screen; (3) for very high-traffic sites, consider GA4 with cookie consent as the primary analytics tool and use WP Statistics only on sites where GDPR compliance prevents GA4 use.
GeoIP location data is not showing in WP Statistics — all visitors show as unknown location. How do I fix this?
WP Statistics uses MaxMind GeoIP database to resolve IP addresses to locations. The database must be downloaded and kept updated. Go to WP Statistics → Settings → GeoIP and run the database update. If the update fails, your server may have download restrictions — download the GeoLite2-Country.mmdb file manually from MaxMind (free account required) and upload it to the directory shown in WP Statistics settings.
Customization & Developer Notes
How do I display a visitor counter widget using WP Statistics?
WP Statistics provides shortcodes for displaying statistics anywhere on your site. Use [wpstatistics stat=”visitors” time=”today”] for today’s visitors, [wpstatistics stat=”pagevisits” time=”total”] for total page views, and [wpstatistics stat=”online”] for current online users. Add these shortcodes to widget areas or page content. A dedicated WP Statistics widget is also available in Appearance → Widgets for placement without shortcodes.
Can WP Statistics exclude specific user roles or IP addresses from tracking?
Yes. In WP Statistics → Settings → Privacy, configure exclusions by WordPress user role (e.g., exclude Administrators from being counted), specific IP addresses or ranges, and robots/crawlers. The plugin maintains an automatically updated robots list to filter known bots. For excluding office or agency IPs from client site statistics, add the IP range under the IP Exclusion section.
Frequently Asked Questions
Is WP Statistics fully GDPR compliant without a cookie consent banner?
WP Statistics tracks visitors using a hashed IP address method by default — it does not set tracking cookies. Under GDPR, cookieless server-side tracking based on anonymized IP hashes generally does not require explicit consent, though this depends on data protection interpretation in your country. Consult a data protection advisor for your specific jurisdiction before relying on this for compliance.
How does WP Statistics compare to Google Analytics for a GDPR-conscious site?
WP Statistics is simpler to deploy for GDPR compliance — all data stays on your server, no consent mechanism is needed in most configurations, and there is no third-party data processor relationship. Google Analytics 4, even with consent mode enabled, transfers data to Google servers and requires explicit consent under GDPR in the EU. The trade-off is depth: GA4 provides behavioral analytics, conversion tracking, and audience insights that WP Statistics does not.
Can WP Statistics break after updates?
Yes, that can happen, especially on older sites with many plugins. This usually happens when the plugin, theme, and add-ons are updated out of sequence. In most cases, testing on staging catches the issue before it reaches the live site. From experience, backups and changelog reviews save a lot of cleanup time.
What should I check before installing WP Statistics?
Start by checking whether another plugin already does the same job. In most cases, overlap is what creates avoidable conflicts and performance issues. A common issue is installing a plugin because it looks convenient without checking the stack first. From experience, a short compatibility review avoids most of the pain later.