HitKeep Analytics
Adds the first-party HitKeep tracker to WordPress without analytics cookies, third-party CDNs, or a tag manager.
Install in
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.
Written by Joobi from the project's own listing. See the source page
0.5.0
- Expose HitKeep’s opt-in named interactions, visible time and paid click detection in Tracking coverage and the snippet preview.
- Add an opt-in fixed event for eligible WordPress 404 views using the existing tracker.
- Suppress the HTTP referrer on the initial tracker script request and show the saved legacy endpoint in the snippet preview.
0.4.0
- Refresh WordPress.org screenshots for the native dashboard, OAuth connection and consent, WooCommerce reporting, and order delivery status.
- Show the native, read-only HitKeep analytics dashboard inside WordPress with site-bound, short-lived credentials kept separate from the server-side OAuth grant.
- Add signup and site creation to the connection flow while retaining explicit team, site, and permission approval.
- Add opt-in WooCommerce product, cart, and checkout events plus durable paid-order and refund delivery, stable retry IDs, and per-order delivery status.
- Preserve checkout privacy choices, exclude customer details from commerce payloads, and keep queued events bound to their original site and connection.
- Show dashboard authorization only after approval; keep older OAuth grants usable until the administrator chooses to authorize dashboard access.
- Replace copied API client tokens with OAuth 2.1 Authorization Code and PKCE.
- Publish a per-installation Client ID Metadata Document for secretless public-client registration.
- Load authorized sites plus default and active custom tracking endpoints from HitKeep.
- Use the selected returned script URL for browser tracking and the same API-resource grant for server-side redirect events.
- Bind OAuth server-side redirect events to the selected HitKeep site while preserving legacy token payloads.
- Rotate refresh tokens proactively and request revocation on disconnect.
- Preserve legacy credentials, browser tracking, redirect settings, and the saved instance on upgrade and reactivation; remove legacy credentials only after OAuth and site discovery succeed or on explicit disconnect.
- Preserve the previous connection when consent, token exchange, site discovery, or option persistence fails, including registered WordPress settings sanitizers.
- Complete OAuth cutover and explicit legacy disconnect without the Settings API retaining the previous tracking destination.
- Preserve tracking toggle choices when WordPress sanitizes the first settings save more than once, including unchecked controls and partial updates.
- Test settings save, reload, and plugin lifecycle on WordPress 7.1.3; update Tested up to to 7.1.
0.3.5
- Fix the Respect browser Do Not Track toggle not staying disabled after the first settings save.
- Preserve existing toggle values during partial or programmatic settings updates.
0.3.4
- Add optional server-side redirect link tracking for BetterLinks, PrettyLinks, ThirstyAffiliates, and other redirects that use
wp_redirect. - Add a server ingest API token setup flow with saved-token status, token clearing, and links to create a site-scoped HitKeep API client token with
site.manage_data. - Store server ingest tokens outside the public tracker snippet and keep them out of rendered page source.
- Refresh WordPress.org screenshots and documentation for the redirect tracking and API client token flow.
0.3.3
- Preserve default-on tracker toggles when the first settings save only changes the selected HitKeep instance.
- Store explicit off values for settings toggles so later saves keep intentional opt-outs.
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
/hitkeepwhen generating the tracker URL. - Normalize pasted tracker URLs such as
https://www.example.net/hitkeep/hk.jswithout 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.
Follow this listing's changes (Atom feed)