Linux 软件免费装
Banner图

iGuRu Daily Privacy Stats

开发者 giokat
更新时间 2026年11月16日 00:38
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy statistics analytics gdpr cookieless

下载

1.0.3 1.1.0

详情介绍:

iGuRu Daily Privacy Stats shows how your site is doing, without sending a single byte about your visitors to anyone. Everything is counted and stored in your own WordPress database, in two small tables. What you see Privacy by design Because no personal data is collected, the plugin does not require a cookie consent banner on its own. As always, mention your analytics in your privacy policy. Light and fast The plugin is fully translatable.

安装:

  1. Upload the iguru-daily-privacy-stats folder to /wp-content/plugins/, or install the zip from Plugins > Add New > Upload Plugin.
  2. Activate the plugin.
  3. Open Dashboard > Statistics. Counting starts immediately.

屏幕截图:

  • Traffic sources: where visits come from, referrers by name, countries and campaigns.
  • Referrer details: the posts its visitors landed on and the pages that linked to the site.
  • Content: posts being read now, most read posts and authors.
  • The Data section: retention period, referrer options, table size and deleting a month.

常见问题:

Do I need a cookie banner for this plugin?

The plugin stores no cookies and no personal data, only daily totals per post, referrer and country. In most cases this needs no consent banner. Laws differ between countries, so describe your analytics in your privacy policy, and ask a lawyer if you are unsure.

Does it work with page caching?

Yes. Views are counted by a small script in the page, so they are counted even when the page comes from a cache or a CDN. The script is marked so that WP Rocket, FlyingPress and Cloudflare Rocket Loader do not delay it.

Where do the countries come from?

From a header that your CDN or server adds to each request, for example Cloudflare's CF-IPCountry. The plugin does not look up IP addresses. If your setup provides no country header, the Countries card stays empty and everything else works normally. Developers can supply the country with the dpstats_country filter.

What exactly is stored about referrers?

For each day: the referring site (for example google.gr or forum.example.com), the post the visit started on, and, only for websites and public forums, the linking page without its query string (the part after "?"). Search engines, email, AI chats and apps do not provide a useful page, so only their name is kept. Nothing identifies a visitor. You can turn off recording of linking pages under Statistics > Data.

What is the difference between a view and a visit?

A view is counted each time a post is opened. A visit is counted for the first page of a visit that comes from outside your site (a search engine, social media, a direct link). Moving between your own pages adds views, not visits.

How is "Online now" counted?

Each reader is represented by a one-way hash of the IP address and browser, made with a random secret that changes every day. The IP address is never stored, the hash cannot be turned back into it, and each hash is deleted after 10 minutes. "Online now" counts the readers seen in the last 5 minutes.

Are my own visits counted?

No. Logged-in users who can edit posts are not counted. Use the dpstats_skip_user filter to change this.

How much space does it use?

Very little: only daily totals are stored. Even a busy site with thousands of posts uses a few megabytes per year. The Data section of the Statistics page shows the current size, and lets you delete a single month.

What happens when I delete the plugin?

By default your statistics are kept, so you do not lose them by accident. To remove everything, tick "Delete all statistics when the plugin is deleted" in Statistics > Data before deleting the plugin.

Can my theme provide the view counts instead of the plugin's script?

Yes. A theme that already counts views can declare add_theme_support( 'iguru-daily-privacy-stats' ) and call do_action( 'dpstats_record_view', $post_id, $referrer, $campaign ) for each counted view. $referrer is the page's document.referrer for the first view of a page load, and null for later ones. $campaign is optional: the landing page's utm_source, or utm_source/utm_campaign, for the Campaigns card. The plugin then adds no script.

Do I need to do anything for the Campaigns card?

No. The plugin's own counter reads utm_source and utm_campaign from the address of the page a visit starts on. Tag your links (for example ?utm_source=newsletter&utm_campaign=november) and they appear in the Campaigns card. If your theme counts views itself, it has to pass the campaign to the plugin (see the previous question).

Which hooks are available?

  • dpstats_record_view (action): record a view from a theme or another plugin
  • dpstats_own_counter (filter): turn the built-in counter on or off
  • dpstats_skip_user (filter): decide whether the current user is counted
  • dpstats_is_bot (filter): adjust bot detection
  • dpstats_country (filter): supply the visitor's two-letter country code
  • dpstats_visitor_ip (filter): supply the visitor's address used for the "Online now" hash
  • dpstats_referrer_name (filter): change the display name of a referrer
  • dpstats_keep_referrer_path (filter): decide whether the exact linking page of a source is recorded
  • dpstats_daily_caps (filter): the most different referrers, pages, landing posts and campaigns recorded per day
  • dpstats_alltime (filter): supply all-time totals for the "Most read" card

Can I use it instead of Jetpack Stats, or alongside it?

Both. iGuRu Daily Privacy Stats runs entirely on your own server and needs no WordPress.com account, so it can replace Jetpack Stats, or run next to it while you compare. It does not import Jetpack's past statistics: counting starts when you activate it.

更新日志:

1.1.0 1.0.3 1.0.2 1.0.1 1.0.0