Connect once, choose the HitKeep site that should receive your traffic, and open its analytics from WordPress admin. The first-party plugin loads the standard cookieless HitKeep tracker and displays the same native charts as the full dashboard. Optional WooCommerce and redirect tracking use the connection you approve.
You can use EU Cloud, US Cloud, or your own HitKeep instance. You do not need to copy an API token or client secret into a new connection.
Before you start
Section titled “Before you start”- You need permission to install plugins and manage settings in WordPress.
- WordPress and the HitKeep instance must be publicly reachable over HTTPS for OAuth connection.
- Use an existing HitKeep account, or start a Cloud account from the plugin. Choose EU or US before creating the account.
- You must have access to the HitKeep site you approve. Creating a first site also requires the normal team permissions and available site capacity.
For managed hosting, compare HitKeep Cloud options. For your own infrastructure, follow the self-hosted installation guide.
1. Install HitKeep Analytics
Section titled “1. Install HitKeep Analytics”- In WordPress, open Plugins → Add New Plugin.
- Search for HitKeep Analytics, then install and activate it.
- Open Settings → HitKeep.
Avoid installing another copy of the HitKeep snippet in your theme or tag manager. One plugin-managed tracker is enough.
2. Choose where your analytics live
Section titled “2. Choose where your analytics live”Select EU Cloud, US Cloud, or Self-hosted, then choose Save instance.
For self-hosting, enter the canonical public HitKeep URL, such as https://analytics.example.com. Include a deployment path prefix when applicable: https://www.example.net/hitkeep. Do not append /hk.js; the plugin normalizes a pasted script URL back to the instance URL.
A custom tracking domain is chosen after connection. Keep the canonical HitKeep URL here: it owns sign-in, permission approval, token refresh, discovery, and server-side delivery.
3. Sign in and approve the connection
Section titled “3. Sign in and approve the connection”Choose Sign in and connect. If you are starting with Cloud, Create a HitKeep Cloud account opens signup on the region you selected. Complete the normal signup, email verification, and account checks there.
On the HitKeep consent screen:
- Review the WordPress application and requested permissions.
- Choose the team that owns your site.
- Explicitly select the sites WordPress may access.
- Approve the connection to return to WordPress.
If the team has no site yet, enter the WordPress domain and choose Create site. Normal team permissions and site limits still apply. Creating an account or site alone does not authorize WordPress: review and approve the site afterward.
When you select an existing site, Create site is hidden. Clear the selection if you need to create a different site instead.

The connection uses OAuth Authorization Code with PKCE S256. The requested scopes are sites:read, tracking_domains:read, ingest:write, and analytics:read. They let the plugin discover approved destinations, deliver events, and display read-only analytics. Access and rotating refresh tokens stay on the WordPress server.
To change Cloud region during signup, return to WordPress and restart the connection with the other region selected. Self-hosted sign-in stays on your own instance.
4. Select the site and tracking endpoint
Section titled “4. Select the site and tracking endpoint”Back in WordPress, choose the approved HitKeep site and Tracking endpoint, then choose Save HitKeep Settings. The choices come from HitKeep; the plugin does not invent a tracker URL or grant access to another site.
Use the default endpoint, or an active custom tracking endpoint returned for that site. The selected endpoint serves browser assets and receives browser events. Server-side integrations continue to use the canonical instance and the selected site grant.

For a deployment under a path prefix, the proxy must serve the tracker assets and ingest routes under that prefix too. See public URL path prefixes.
5. Check a public page, then open analytics
Section titled “5. Check a public page, then open analytics”Open a public WordPress page while logged out, with Do Not Track disabled for this intentional check. Confirm the tracker appears once and requests go to the selected endpoint. Then open HitKeep in the WordPress admin menu and look for the new visit. Use the tracking verifier in HitKeep site settings when a visit does not appear.
The embedded dashboard provides the selected site’s traffic charts, date ranges, filters, events, goals, funnels, ecommerce, AI visibility, UTM reports, and Web Vitals. These are HitKeep’s native analytics views. Reports depend on the data you collect; opening a report does not enable its tracker.
The WordPress surface is read-only. Site configuration, account administration, billing, and exports remain on the full HitKeep instance. Use Open connected HitKeep instance in settings to manage them.

How dashboard access stays private
Section titled “How dashboard access stays private”WordPress obtains a separate five-minute, read-only credential for the selected site. An exact-origin handshake passes it to the embedded page in memory. General OAuth access and refresh tokens stay on the WordPress server, and embedded analytics requests omit cookies.
The embed is bound to the approved site, connection, and WordPress origin. It is not a public share link and does not depend on third-party cookies. Revoking the grant or removing the user’s site permissions stops access. The ordinary WordPress connection and charts do not require AI features to be enabled.
Choose your tracking settings
Section titled “Choose your tracking settings”| Setting | Default | What to change deliberately |
|---|---|---|
| Logged-in WordPress users | Excluded | Include only if you want staff or member traffic in reports. |
| Logged-in WooCommerce customers | Excluded | Opt in separately if you want customer accounts included while staff remain excluded. |
| Do Not Track | Respected | Keep visitor choices consistent with your deployment’s privacy policy. |
| Pageviews and route changes | Enabled | Turn route tracking off if the site should record only full page loads. |
| Outbound links, downloads, form submissions | Enabled | Disable individual event families when unnecessary. |
| Web Vitals | Disabled | Enable to collect performance measurements. |
| WooCommerce and redirect events | Disabled | Enable each integration explicitly. |
Form tracking records the action path and method, without field values or request bodies. Automatic link events omit link text, query strings, and fragments. Web Vitals loads the same-origin hk-vitals.js asset and reports LCP, INP, CLS, FCP, and TTFB without attribution/debug fields. See automatic events and Web Vitals.
The plugin does not create WordPress analytics tables or set analytics cookies. Your configured HitKeep instance receives analytics. Cookieless tracking does not by itself determine your legal obligations; review your own use against PECR and ePrivacy guidance.
Enable WooCommerce reporting
Section titled “Enable WooCommerce reporting”After connecting and selecting a site, enable Track WooCommerce and save. The integration supports classic and Blocks cart/checkout flows and High-Performance Order Storage (HPOS).
| Shopper action | Event | Delivery |
|---|---|---|
| View a product | view_item | Browser |
| Add or remove a cart item | add_to_cart, remove_from_cart | Browser |
| Open the cart | view_cart | Browser |
| Start checkout | begin_checkout | Browser |
| Order becomes paid | purchase | Server, including delayed payment |
| Full or partial refund | refund | Server |
Confirmed purchases and refunds use WooCommerce’s Action Scheduler. See two worked funnel examples to turn these events into a report.
Purchases follow paid-order transitions rather than thank-you page reloads. Stable event IDs prevent retries from counting the same delivery twice. The order administration screen shows delivery status and Retry HitKeep analytics delivery when delivery needs attention.

Queued events retain their original instance, site, connection, and payload. Reconnecting or changing the destination does not send old orders to the new destination. Orders without captured checkout eligibility and zero-value orders or refunds are not backfilled. Inspect unsent orders after disabling and re-enabling either plugin.
For an intentional test, use a test payment method on a staging store. Visit a product while logged out, add it to the cart, and complete checkout. Confirm the order becomes paid, inspect its HitKeep delivery status, then check the selected site’s ecommerce report. A pending or on-hold order is not yet a purchase. A test refund should appear separately and reduce reported revenue. Avoid sending test orders to a production analytics site.

Privacy and attribution
Section titled “Privacy and attribution”Checkout captures the applicable Do Not Track and logged-in-user choices and preserves them for delayed payment. Commerce payloads allow product identifiers, quantities, prices, currency, transaction IDs, and refund IDs. They omit customer names, emails, billing/shipping addresses, order keys, and stored visitor IPs or user agents.
When available, checkout carries the browser tracker’s existing opaque session UUID for attribution. It adds no analytics cookie. If the getter is unavailable, eligible purchases can arrive anonymously without visitor-session attribution. An explicit tracker opt-out or Do Not Track prevents delivery instead of using anonymous fallback.
Use one reporting currency per HitKeep site. Mixed-currency reports show a warning rather than a combined total. Amount-only refunds reduce revenue without inventing returned product units. HitKeep does not convert currencies or replace accounting and inventory records. See the ecommerce guide.
Enable redirect-link tracking
Section titled “Enable redirect-link tracking”Enable Track redirect links when you need the resolved destination of short-link or affiliate redirects. The plugin detects BetterLinks, PrettyLinks, ThirstyAffiliates, and other redirects using wp_redirect. Same-site redirects are ignored.
The server-side event records the short path and resolved target host/path, with query strings removed. The approved site grant and current site.manage_data authority govern delivery. The token stays server-side. See server-side tracking.
AI-referred human visits can appear in ordinary browser reports. AI crawler fetches require separate server-side forwarding; the WordPress browser tracker cannot observe requests made by a crawler that does not run it. See AI fetch ingest.
Upgrade an existing connection
Section titled “Upgrade an existing connection”An older saved browser/server-ingest connection keeps working until OAuth setup succeeds or you explicitly disconnect it. Failed or cancelled approval preserves the existing destination and credential.
An existing OAuth grant without analytics:read keeps tracking, but needs Authorize dashboard access before showing embedded charts. Approval is explicit; updating the plugin does not silently expand the grant.
Disconnect before changing the HitKeep instance. Disconnect HitKeep revokes the refresh-token family and removes local credentials. To restore access after revocation or an unrecoverable refresh failure, connect again and approve the required sites.
Troubleshoot the connection
Section titled “Troubleshoot the connection”| Symptom | Check |
|---|---|
| Connection cannot start | Both sites need public HTTPS; verify the saved canonical URL and any path prefix. |
| A site or endpoint is missing | Review approved sites and your current permissions, then choose Refresh sites and domains. |
| Tracking works but charts request approval | Choose Authorize dashboard access for the older grant. |
| Charts cannot be framed | Ensure the proxy preserves HitKeep’s per-response embed security headers rather than replacing them with a blanket frame denial. |
| A test visit is missing | Test logged out, check Do Not Track and blockers, confirm the saved site and endpoint, then use the tracking verifier. |
| A paid order has no event | Inspect its delivery status, checkout eligibility, and original connection; retry transient failures rather than creating another purchase event. |