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
hk.js tracker.wp_redirect redirects through HitKeep's server-side ingest API.https://www.example.net/hitkeep.https://cloud.hitkeep.euhttps://cloud.hitkeep.comwp_redirect. This requires a site-scoped HitKeep API client token with site.manage_data for the WordPress domain. The settings page links to the selected HitKeep instance's API client page and the API client guide. Redirect source, referrer, and target query strings are stripped before delivery.
Source code
The main HitKeep project is available on GitHub.
/wp-content/plugins/hitkeep directory, or install the plugin through the WordPress plugins screen.https://analytics.example.com or https://www.example.net/hitkeep.site.manage_data, paste it into WordPress, and save again. The token is stored server-side and is not printed into public page source.
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.You need a HitKeep Cloud account or a self-hosted HitKeep instance.
No. The plugin injects HitKeep's normal hk.js tracker. The tracker does not set analytics cookies.
No, not by default. Enable Track logged-in WordPress users in the plugin settings if you want logged-in users to load the tracker.
Yes. Select Self-hosted or custom domain and enter the public URL of your HitKeep instance.
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.
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.
No. HitKeep records the form action path and method. It does not collect field values or request bodies.
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.
Yes. Enable Track redirect links and save a site-scoped HitKeep API client token with site.manage_data in the plugin settings. Use Create token in HitKeep from the token field to open the selected HitKeep instance's API client page. When BetterLinks, PrettyLinks, ThirstyAffiliates, or another WordPress redirect resolves a short link to an external host through wp_redirect, HitKeep records a server-side outbound_click event with the short path and resolved target host/path. Same-site redirects are ignored, and source, referrer, and affiliate target query strings are not stored by default.
Open Settings -> HitKeep, enable Track redirect links, and use Create token in HitKeep from the server ingest API token field. HitKeep opens the API client page for the selected EU Cloud, US Cloud, or self-hosted instance. Create a personal or team API client with site.manage_data for this WordPress site, copy the token, paste it into WordPress, and save. The token is stored server-side and is not printed into public page source.
Use the support channels listed on hitkeep.com.
wp_redirect.site.manage_data./hitkeep when generating the tracker URL.https://www.example.net/hitkeep/hk.js without removing the deployment prefix.