跳到内容

Kehai Analytics

v0.2.0

kehai · 2026年10月12日 上架

Cookieless web analytics for WordPress, with WooCommerce revenue confirmed by your server. Requires a Kehai account.

正在使用
10 以下
评分
暂无
累计下载
195
最近更新
2026年10月12日
需要 WordPress 6.5+已测试到 7.1.5PHP 8.1+

贡献者

截图

Overview: the connection, the tracker, WooCommerce, and the delivery queue at a glance.
Overview: the connection, the tracker, WooCommerce, and the delivery queue at a glance.
Settings: what this WordPress site sends to Kehai.
Settings: what this WordPress site sends to Kehai.
Deliveries: every sale and refund queued for Kehai, with its status and what to do next.
Deliveries: every sale and refund queued for Kehai, with its status and what to do next.
First run: three steps to connect a site.
First run: three steps to connect a site.

Kehai counts what happened. No sampling, no modeling, no cookies. This plugin connects a WordPress site to your Kehai account and, if you run WooCommerce, sends the revenue your server has confirmed.

Kehai is a hosted, paid service, and new accounts start with a free trial. You need a Kehai account with your site added to it: kehai.io

What the plugin does

  • Adds the Kehai tracker. No code to paste and no API key needed.
  • Sends WooCommerce revenue from the server. Paid orders and refunds go out after the payment is confirmed, not when a thank-you page loads.
  • Shows what was sent. A delivery ledger in WordPress lists every sale and refund, its status, and what to do when one needs review.

The two functions are switched on separately. Tracker-only use needs nothing but your public site ID.

Privacy

  • No cookie, and nothing written to browser storage.
  • Administrators, previews, and visitors who send DNT or GPC are left out.
  • No API key in HTML. The commerce key stays on your server.
  • No order IDs, customer details, or payment IDs leave WordPress.

For WooCommerce shops

  • A sale counts when WooCommerce confirms the payment, with its actual payment time.
  • Refunds follow their purchase: complete, itemized partial, and shipping or tax only.
  • Bank transfers, cash on delivery, and refunds recorded by hand are confirmed in one short form.
  • A delivery that fails is retried with the same identity, so a sale is never added twice.
  • Works with HPOS and legacy order storage, and with the classic and block checkout.

Where the reports are

The plugin collects. Reports, forecasts, goals, and exports are in your Kehai panel.

No Google Ads or Stripe account is connected by this plugin. Google Ads exports in Kehai require a real payment time and a retained GCLID in the explicitly supplied purchase context.

External services

The plugin sends data to the site’s Kehai account at https://stats.kehai.io:

  • GET /k.js?site=: the browser loads the Kehai tracker for that site. The tracker sends the page and declared event data described by https://kehai.io/docs/install, and the collector applies the selected site’s settings when the data arrives.
  • GET /api/v1/commerce/status: a server-side Bearer-key connection check returns site/module/query-exclusion configuration.
  • POST /api/v1/commerce: server-side confirmed order aggregates, optional bounded acquisition context and a random idempotency UUID. The secret, local order/customer IDs and payment transaction IDs are not part of the analytics payload.
  • POST /api/v1/commerce/status: at most once per minute, server-side pending/review counts and a fixed error category. No order identifier or raw error text is sent.

Commerce keys stay in a non-autoloaded WordPress option. They are never echoed in HTML, copied into JavaScript, or stored in the outbox. Protect database backups like other WordPress credentials. Outbound commerce requests require HTTPS, certificate validation and no redirects.

Kehai terms: https://kehai.io/terms-of-use
Kehai privacy: https://kehai.io/privacy-policy
Commerce contract: https://kehai.io/docs/ecommerce

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums