
HitKeep Analytics
v0.5.0Pascale · 2026年5月13日 上架
Adds the first-party HitKeep tracker to WordPress without analytics cookies, third-party CDNs, or a tag manager.
- 正在使用
- 10+
- 评分
- 5.0 / 5
- 累计下载
- 799
- 最近更新
- 2026年11月24日
贡献者
截图





HitKeep Analytics 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.
View the actual HitKeep dashboard inside the WordPress HitKeep menu. Create a HitKeep Cloud account or sign in starting from WordPress, complete site setup and explicit consent, and return to your WordPress dashboard. WooCommerce is optional and uses its existing Action Scheduler for durable paid-order and refund delivery; the plugin adds no analytics database or required service.
See the WordPress analytics guide for a walkthrough of post traffic, newsletter campaigns, goals, and WooCommerce sales in wp-admin.
Privacy-first web analytics for WordPress
HitKeep is built for teams that want useful web analytics without adopting a heavy analytics stack. Choose your HitKeep instance, connect with OAuth, approve the WordPress site, and select one of the tracking endpoints returned by HitKeep.
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.
- Cloud account creation and sign-in starting from WordPress.
- Full read-only HitKeep dashboard inside WordPress, using a dedicated short-lived embed credential.
- Optional WooCommerce product, cart and checkout funnel events, paid-order purchases and refunds; classic and Blocks checkout plus HPOS order storage.
- Durable, idempotent purchase/refund delivery through WooCommerce Action Scheduler, with order-level delivery status and retry.
- Separate opt-in for logged-in WooCommerce customers; existing logged-in and DNT exclusions remain the default.
- OAuth 2.1 Authorization Code with mandatory PKCE; no copied API token or bundled client secret.
- Authorized HitKeep site selector populated from the live integration API.
- Default and active custom tracking-domain selector populated from HitKeep.
- Logged-in WordPress users are skipped by default.
- Do Not Track is respected by default.
- Pageview tracking through HitKeep’s normal
hk.jstracker. - Built-in HitKeep automatic events for outbound links, file downloads, and form submissions.
- Optional named click and form events, visible time per pageview, and paid click presence with HitKeep 2.18 or later.
- Optional page_not_found event for eligible native WordPress 404 views.
- Optional Web Vitals reporting for LCP, INP, CLS, FCP, and TTFB.
- Optional redirect click events for supported short-link, affiliate, and
wp_redirectredirects through HitKeep’s server-side ingest API. - Automatic short-lived access-token refresh and rotating refresh-token revocation.
- 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.
- It does not ask administrators to create, copy, or paste API tokens.
- It does not print OAuth access or refresh tokens into public page source.
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.euhttps://cloud.hitkeep.com- Your own self-hosted HitKeep URL
Self-hosted installations are controlled by your own HitKeep instance and infrastructure.
Connecting opens HitKeep’s OAuth consent flow and requests sites:read, tracking_domains:read, ingest:write, and analytics:read for the exact HitKeep API resource. WordPress publishes a small HTTPS Client ID Metadata Document so the installation acts as a public OAuth client without a client secret. Access and rotating refresh tokens are stored server-side. Disconnecting revokes the refresh-token family and removes local credentials.
Optional redirect link tracking sends server-side outbound click events from WordPress to the selected HitKeep instance when a supported redirect resolves to an external host. The current adapters support BetterLinks, PrettyLinks, ThirstyAffiliates, and other redirects that use wp_redirect. Redirect source, referrer, and target query strings are stripped before delivery.
Source code
The main HitKeep project is available on GitHub.