Title: HitKeep Analytics
Author: Pascale
Published: <strong>2026 年 5 月 13 日</strong>
Last modified: 2026 年 5 月 16 日

---

搜索插件

![](https://ps.w.org/hitkeep/assets/banner-772x250.png?rev=3531058)

![](https://ps.w.org/hitkeep/assets/icon-256x256.png?rev=3531058)

# HitKeep Analytics

 作者：[Pascale](https://profiles.wordpress.org/pascalebeier/)

[下载](https://downloads.wordpress.org/plugin/hitkeep.0.3.2.zip)

 * [详情](https://cn.wordpress.org/plugins/hitkeep/#description)
 * [评价](https://cn.wordpress.org/plugins/hitkeep/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hitkeep/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hitkeep/#developers)

 [支持](https://wordpress.org/support/plugin/hitkeep/)

## 描述

[HitKeep Analytics](https://hitkeep.com/) connects WordPress to a self-hosted or
cloud HitKeep instance. It injects the normal `hk.js` tracker from your HitKeep 
instance and keeps data flowing through the core HitKeep ingest pipeline.

The plugin does not add a separate analytics backend, database, queue, or third-
party service. It only loads the tracker from the HitKeep instance you configure.

### Privacy-first web analytics for WordPress

HitKeep is built for teams that want useful web analytics without adopting a heavy
analytics stack. The WordPress plugin keeps setup simple: choose your HitKeep instance,
save the settings, and the plugin loads the first-party tracker on public pages.

Logged-in WordPress users are skipped by default, so administrators and editors 
do not pollute public traffic reports. Browser Do Not Track is respected by default.

### Features

 * EU Cloud, US Cloud, and self-hosted HitKeep options.
 * Logged-in WordPress users are skipped by default.
 * Do Not Track is respected by default.
 * Pageview tracking through HitKeep’s normal `hk.js` tracker.
 * Built-in HitKeep automatic events for outbound links, file downloads, and form
   submissions.
 * Optional Web Vitals reporting for LCP, INP, CLS, FCP, and TTFB.
 * Self-hosted URLs may include a path prefix, such as `https://www.example.net/
   hitkeep`.
 * Clear opt-outs for sendBeacon delivery, route changes, outbound links, downloads,
   and forms.
 * Shortcut to open the configured HitKeep instance from the settings page.
 * Snippet preview so site owners can see which tracker attributes will be emitted.

### What the plugin does not do

 * It does not set analytics cookies.
 * It does not create WordPress analytics tables.
 * It does not require a tag manager.
 * It does not load the tracker from a third-party CDN.
 * It does not collect form field values, request bodies, link text, or URL query
   strings through automatic events.

### Third-party service connection

This plugin connects to HitKeep. Depending on your settings, it loads JavaScript
from and sends analytics data to one of these HitKeep hosts:

 * `https://cloud.hitkeep.eu`
 * `https://cloud.hitkeep.com`
 * Your own self-hosted HitKeep URL

[HitKeep Cloud terms](https://hitkeep.com/legal/terms-of-service/)

[HitKeep Cloud privacy policy](https://hitkeep.com/legal/privacy-policy/)

Self-hosted installations are controlled by your own HitKeep instance and infrastructure.

### Source code

The [main HitKeep project](https://github.com/PascaleBeier/hitkeep) is available
on GitHub.

## 屏幕截图

 * [[
 * HitKeep settings page with connection cards, privacy defaults, tracker coverage,
   and snippet preview.
 * [[
 * Active HitKeep plugin row with the Settings shortcut.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/hitkeep` directory, or install
    the plugin through the WordPress plugins screen.
 2. Activate **HitKeep Analytics** from the Plugins screen.
 3. Open **Settings -> HitKeep**.
 4. Choose EU Cloud, US Cloud, or self-hosted.
 5. For self-hosted HitKeep, enter the public URL of your HitKeep instance, such as`
    https://analytics.example.com` or `https://www.example.net/hitkeep`.
 6. Save changes.

Add your WordPress domain to your HitKeep instance without a leading `www.`. HitKeep
resolves public tracker hits from the browser `Origin` header.

For detailed setup guidance, see the [HitKeep WordPress integration guide](https://hitkeep.com/guides/integrations/wordpress/).

## 常见问题

### Do I need a HitKeep account?

You need a HitKeep Cloud account or a self-hosted HitKeep instance.

### Does the plugin set analytics cookies?

No. The plugin injects HitKeep’s normal `hk.js` tracker. The tracker does not set
analytics cookies.

### Are logged-in WordPress users tracked?

No, not by default. Enable **Track logged-in WordPress users** in the plugin settings
if you want logged-in users to load the tracker.

### Can I use this with self-hosted HitKeep?

Yes. Select **Self-hosted or custom domain** and enter the public URL of your HitKeep
instance.

### Can I use this when HitKeep is mounted under a subdirectory?

Yes. Enter the full public HitKeep URL, including the path prefix, such as `https://
www.example.net/hitkeep`. The plugin preserves that prefix when it builds the `hk.
js` tracker URL. Your HitKeep instance and reverse proxy must also serve `hk.js`,`
hk-vitals.js`, and the ingest routes under the same prefix.

### Which automatic events can HitKeep track?

The normal HitKeep tracker can automatically track outbound links, file downloads,
and form submissions. Each of those can be disabled from the WordPress settings 
page.

### Does automatic form tracking collect form fields?

No. HitKeep records the form action path and method. It does not collect field values
or request bodies.

### Can the plugin track Web Vitals?

Yes. Web Vitals are off by default. Enable **Track Web Vitals** when you want HitKeep
to load the same-origin vitals bundle and report compact performance samples.

### Where can I report issues?

Use the support channels listed on [hitkeep.com](https://hitkeep.com/).

## 评价

此插件暂无评价。

## 贡献者及开发者

「HitKeep Analytics」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pascale ](https://profiles.wordpress.org/pascalebeier/)

「HitKeep Analytics」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/hitkeep/contributors)
为本插件所做的贡献。

[帮助将「HitKeep Analytics」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hitkeep)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hitkeep/)，查看[SVN仓库](https://plugins.svn.wordpress.org/hitkeep/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/hitkeep/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hitkeep/)。

## 更新日志

#### 0.3.2

 * Improve links to HitKeep setup, source, terms, and privacy resources.

#### 0.3.1

 * Declare compatibility with WordPress 7.0.

#### 0.3.0

 * Preserve self-hosted HitKeep path prefixes such as `/hitkeep` when generating
   the tracker URL.
 * Normalize pasted tracker URLs such as `https://www.example.net/hitkeep/hk.js`
   without removing the deployment prefix.
 * Document subdirectory self-hosted setup alongside the Web Vitals option.

#### 0.2.0

 * Add opt-in Web Vitals tracking from the settings page.
 * Add WordPress.org release assets and localized settings strings.

#### 0.1.0

 * Initial first-party WordPress integration for HitKeep.

## 额外信息

 *  版本 **0.3.2**
 *  最后更新：**8 小时前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hitkeep/) 和 [Spanish (Spain)](https://es.wordpress.org/plugins/hitkeep/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/hitkeep)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[cookieless](https://cn.wordpress.org/plugins/tags/cookieless/)
   [privacy](https://cn.wordpress.org/plugins/tags/privacy/)[self hosted](https://cn.wordpress.org/plugins/tags/self-hosted/)
   [web analytics](https://cn.wordpress.org/plugins/tags/web-analytics/)
 *  [高级视图](https://cn.wordpress.org/plugins/hitkeep/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/hitkeep/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hitkeep/reviews/)

## 贡献者

 *   [ Pascale ](https://profiles.wordpress.org/pascalebeier/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hitkeep/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://github.com/sponsors/PascaleBeier)