=== WP Statistics – Simple, privacy-friendly Google Analytics alternative ===
Contributors: veronalabs, mostafa.s1990, kashani, GregRoss
Donate link: https://wp-statistics.com/donate/
Tags: analytics, google analytics, gdpr, stats, cookieless
Requires at least: 6.6
Tested up to: 7.1
Stable tag: 14.17.0
Requires PHP: 7.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cookieless, privacy-friendly WordPress analytics. Clear graphs and visitor data kept on your own server.

== Description ==
Discover privacy-friendly analytics with [WP Statistics](https://wp-statistics.com/?utm_source=wporg&utm_medium=link&utm_campaign=website), the top choice for WordPress users seeking an alternative to Google Analytics. No external accounts, unlimited visitor tracking and full data ownership. Everything is stored in your own WordPress database.

[Checkout Demo](https://wp-statistics.com/demo) | [View Screenshots](#screenshots)

= Privacy-Friendly by Default (GDPR and Data Privacy) =
WP Statistics is privacy-friendly by default. Whether you need consent depends on your country and your settings.

* We do not use cookies
* We do not store personally identifiable information (PII) by default
* 100% data ownership. Data is entirely created and stored on your server
* Enhance IP Hashing with Random Daily Salt Mechanism
* Features to export and delete data for GDPR
* Optional support for the Do Not Track (DNT) signal
* Privacy Audit Tool to help you review your settings

WP Statistics uses [cookie-less tracking](https://wp-statistics.com/resources/counting-unique-visitors-without-cookies/?utm_source=wporg&utm_medium=link&utm_campaign=doc).

You can find more information in "[What we collect](https://wp-statistics.com/resources/what-we-collect/?utm_source=wporg&utm_medium=link&utm_campaign=doc)".

= Top Features =
* **Clean, simple dashboard:** Visitors, views, top pages and sources on one Overview screen, with charts that compare now, before and the change.
* **Visitor Journey:** See where each visit started, where it ended, and who bounced. Open any visitor for their full path.
* **Visitor card:** Location, browser, system and device for every visitor. With IP hashing on, you see a short hash, never the IP.
* **Online now:** A green dot marks visitors who are on your site right now.
* **Traffic sources:** Search engines, social media, AI assistants like ChatGPT and Perplexity, and paid ads from Google, Microsoft, OpenAI and Facebook, each as its own source. UTM campaigns are tracked too.
* **Content Analytics:** Views, visitors, bounce rate and exit rate for every post, page, category and author, with sortable leaderboards.
* **Stats in the block editor:** A WP Statistics panel shows each post's views, visitors and latest readers while you write.
* **Tracking alerts:** Get an email when your site stops recording visits, for example after a cache or cookie banner change, and another when visits come back.
* **Email reports:** Daily, weekly or monthly reports that look good on phones.
* **Geographic and Devices reports:** Countries, regions and cities on a map, plus browsers, systems, device types and models.
* **Multisite:** One sortable, searchable table of all your sites in Network Admin.
* **Consent plugins:** Works with CookieYes, Real Cookie Banner and Borlabs Cookie, and with any cookie plugin that supports WP Consent API, such as Complianz and Cookiebot.
* **Bypass ad blockers:** Load the tracking script under a unique name and address so ad blockers do not stop it.
* **Access and filters:** Choose which roles see reports and change settings. Exclude visits by role, IP, country, URL and more.
* **Easy to set up:** No coding or external account needed. Built for small blogs and high-traffic sites alike.
* Premium Add-on: [Data Plus](https://wp-statistics.com/product/wp-statistics-data-plus?utm_source=wporg&utm_medium=link&utm_campaign=dp)
 * **Custom Post Type Tracking**: DataPlus extends WP Statistics' tracking to include all custom post types in addition to Posts and Pages.
 * **Custom Taxonomy Analytics**: In addition to monitoring default taxonomies like Categories and Tags, DataPlus also tracks custom taxonomies.
 * **Link Tracker**: Find out which outbound links your audience clicks on, giving you insights into their preferences and behaviors.
 * **Download Tracker**: Keep track of what's being downloaded, who's downloading it, and when.
 * **Individual Author Performance**: Detailed metrics on the performance of individual authors.
 * **Detailed Analytics for Each Country**: In-depth analytics for each country to enhance geographical reporting.
 * And more!
* Premium Add-on: [Marketing](https://wp-statistics.com/product/wp-statistics-marketing/?utm_source=wporg&utm_medium=link&utm_campaign=marketing)
 * **Campaign Analytics**: Track UTM-tagged links and see which campaigns drive the most visitors.
 * **Google Search Console Integration**: Monitor impressions, clicks, and queries.
 * **Custom Event Tracking**: Create goals based on clicks, pageviews, or events and monitor conversions.
 * **Built-in UTM Link Builder**: Generate and validate campaign URLs inside your dashboard.
* Premium Add-on: [REST API](https://wp-statistics.com/add-ons/wp-statistics-rest-api/?utm_source=wporg&utm_medium=link&utm_campaign=rest-api)
 * **Ask AI about your stats**: Connect ChatGPT, Claude and other AI agents to your stats with MCP. Read only, and you can cut off any agent at any time.

**Get the most out of your website analytics by using WP Statistics Premium Add-ons**
Upgrade your analytics toolkit with our range of premium add-ons, including [Data Plus](https://wp-statistics.com/product/wp-statistics-data-plus?utm_source=wporg&utm_medium=link&utm_campaign=dp), [Advanced Reporting](https://wp-statistics.com/product/wp-statistics-advanced-reporting/?utm_source=wporg&utm_medium=link&utm_campaign=adv-report), [Real-Time Stats](https://wp-statistics.com/product/wp-statistics-realtime-stats/?utm_source=wporg&utm_medium=link&utm_campaign=realtime), [Mini Chart](https://wp-statistics.com/product/wp-statistics-mini-chart/?utm_source=wporg&utm_medium=link&utm_campaign=mini-chart), [Marketing](https://wp-statistics.com/product/wp-statistics-marketing/?utm_source=wporg&utm_medium=link&utm_campaign=marketing), and [more](https://wp-statistics.com/add-ons/?utm_source=wporg&utm_medium=link&utm_campaign=add-ons). Making informed decisions is easier with these powerful tools.

**Special Offer:** Save up to 60% on all premium features when you purchase [WP Statistics Premium](https://wp-statistics.com/pricing/?utm_source=wporg&utm_medium=link&utm_campaign=premium).

= Report Bugs =
Having trouble with a bug? Please [create an issue](https://github.com/wp-statistics/wp-statistics/issues/new) on GitHub. Kindly note that [GitHub](https://github.com/wp-statistics/wp-statistics) is exclusively for bug reports; other inquiries will be closed.

For security vulnerabilities, please report them through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/wordpress/plugin/wp-statistics/vdp). The Patchstack team will validate, triage, and handle any security issues.

== Installation ==
1. Upload `wp-statistics` to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Make sure the Date and Time are set correctly in WordPress.
4. Go to the plugin settings page and configure as required (note this will also include downloading the GeoIP database for the first time).

== Frequently Asked Questions ==
= Who should use WP Statistics? =
WP Statistics is designed for website owners, bloggers, marketers, and analysts who wish to track and understand the traffic on their WordPress site. It's user-friendly and powerful for professionals but also accessible for beginners.

= Is technical knowledge required to operate WP Statistics? =
No, WP Statistics focuses on simplicity. You don't need any coding skills to use it. Right from your WordPress dashboard, you can install and use the plugin.

= Will WP Statistics affect my site's performance? =
Your site's loading times will remain quick with WP Statistics. With our "Optimization" settings page, you can fine-tune how data is handled for high-traffic sites, providing you with the tools to optimize performance.

= Is it GDPR compliant? =
WP Statistics is built to be privacy-friendly by default: it sets no cookies, and new installs anonymize and hash IP addresses. Whether your site meets the GDPR depends on your country, your settings and how you use the plugin. You can find more information in "[What we collect](https://wp-statistics.com/resources/what-we-collect/?utm_source=wporg&utm_medium=link&utm_campaign=doc)".

= Are individual page analytics available? =
Every post, page, and custom post type is tracked in detail.

= Is it compatible with caching and CDN? =
WP Statistics is fully compatible with all caching plugins and CDNs.

= Are logged-in users tracked? =
By default, no. However, you can enable tracking logged-in users from the settings page.

= Can I use WP Statistics and Google Analytics at the same time? =
Yes, you can run them both at the same time without any problems.

= Are bot visits counted? =
We filter out bot visits using best practice techniques. Compared to Google Analytics, your views and visitors are very similar. The "[Enhancing Data Accuracy](https://wp-statistics.com/resources/enhancing-data-accuracy/?utm_source=wporg&utm_medium=link&utm_campaign=doc)" article can help you eliminate bots even further.

= Does WP Statistics show bounce rate? =
Yes. WP Statistics reports your site-wide bounce rate in Visitor Insights and a bounce rate for each entry page. Bounce rate is the share of visits that recorded a single page view, where a visit is one visitor on one day. No Google Analytics account is needed.

= Can I export data? =
Data can be exported to XML, CSV, or TSV files for backup or reporting purposes.

= Is there Multi-Site support? =
WP Statistics supports WordPress Multi-Site/Network installations. In the network admin, you can view combined or separate analytics for each subsite.

== Screenshots ==

1. Overview: Visitors, views, top pages and sources on one screen.
2. Visitor journey: See where every visit started, where it ended, and who bounced.
3. Traffic Sources: Search, social, AI assistants like ChatGPT and paid ads, side by side.
4. Visitor card: Location, browser and device for any visitor. IP hidden when hashed.
5. Content Analytics: Views, visitors, bounce and exit rate for every post and page.
6. Privacy Audit: Check every privacy setting in one place and fix issues in one click.
7. Editor panel: A post's views and visitors, right in the block editor.
8. Author leaderboard: See which writers bring the most readers.
9. Geographic: Visitors by country on a map, plus regions and cities.
10. Devices: Browsers, systems, device types and models, with share bars.
11. Real-Time Stats: Watch visitors arrive live and see what they read right now.
12. Campaigns: Visitors and views for every UTM campaign.
13. Search Console: Google clicks, impressions and search terms next to your stats.
14. Goals: Set a goal, like a sign-up, and see your conversion rate.
15. Link Tracker: See which outgoing links people click most.
16. Download Tracker: Count downloads of every file and see who downloaded what.
17. Email report: A daily, weekly or monthly email report. PDF with Advanced Reporting.
18. Mini Chart: A small views chart next to each post in your list.
19. Dashboard widgets: Your key numbers on the WordPress dashboard.
20. Tracking alert: An email if visits stop being recorded. Checked once a day.
21. Category Analytics: Find the categories and tags that bring the most readers.
22. Page Insights: Top pages, entry and exit pages, and 404 pages.
23. Visitor Insights: Visitors over time, bounce rate, logged-in users and who is online.
24. Settings: Choose what to track, who sees reports and how long data stays.
25. Optimization: Clean old data and keep your database small.

== Changelog ==
= 14.17.0 - 2026-11-25 =
Read the [14.17 release post](https://wp-statistics.com/blog/wp-statistics-14-17/) for screenshots and details.
- **New:** Refreshed admin design: cards, share bars, compact tables and new Premium pages.
- **New:** Visitors card on the Overview with a green dot for online visitors, a visitor card and a visitor journey page.
- **New:** WP Statistics panel in the block editor sidebar.
- **New:** REST API add-on: connect ChatGPT, Claude and other AI agents with MCP.
- **New:** Email alert and notice when visits stop being recorded.
- **New:** OpenAI Ads, Microsoft Ads and Facebook Ads show as their own sources.
- **Enhancement:** Network Admin lists all sites in one sortable, searchable table.
- **Enhancement:** Clearer chart tooltips, sortable leaderboards and Top Posts thumbnails.
- **Fix:** More accurate totals, filters and online counts; Top Pages works on SQLite.
- **Fix:** Multisite sets up every site on activation, keeps site tables in step and works on WordPress 6.6.
- **Fix:** Download Tracker counts files behind a link parameter ([#1202](https://github.com/wp-statistics/wp-statistics/issues/1202)) and file names with %.
- **Fix:** Any cookie plugin that supports WP Consent API works, no visit is counted before the banner is ready, and the consent setting no longer switches itself off.
- **Fix:** CookieYes through WP Consent API respects Reject, and Real Cookie Banner's free version is supported.
- **Fix:** Borlabs Cookie consent is checked before tracking, and withdrawing consent in Complianz no longer counts the page twice.
- **Fix:** Hits are no longer lost when a visitor opens several tabs at once, and login page visits keep their address.
- **Fix:** Ad clicks without a referrer (gclid, fbclid) get a source.
- **Fix:** Visits are counted when a cookie plugin like Borlabs Cookie loads the tracker after consent; no false low-memory warning when PHP has no memory limit.
- **Fix:** Emails no longer fail when sent together, and they fit phone screens.
- **Fix:** CSV exports hide raw IPs with IP hashing on; the referrer shortcode counts again.

See the full changelog: [CHANGELOG.md](https://github.com/wp-statistics/wp-statistics/blob/master/CHANGELOG.md)
