Aller au contenu
HitKeep
Selectionner la langue
Selectionner le thème
GitHub
Démarrer gratuitement dans le Cloud

HitKeep WordPress Analytics Integration Guide

Ce contenu n’est pas encore disponible dans votre langue.

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.

  • 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. In WordPress, open Plugins → Add New Plugin.
  2. Search for HitKeep Analytics, then install and activate it.
  3. Open Settings → HitKeep.

Avoid installing another copy of the HitKeep snippet in your theme or tag manager. One plugin-managed tracker is enough.

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.

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:

  1. Review the WordPress application and requested permissions.
  2. Choose the team that owns your site.
  3. Explicitly select the sites WordPress may access.
  4. 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.

HitKeep OAuth requested permissions, a demonstration team, and one explicitly selected site, with site creation hidden
Approve only the sites this WordPress installation needs. This crop shows real consent on an isolated demo.

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.

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.

Connected HitKeep settings in WordPress showing authorized scopes, approved site selection, and tracking endpoint
After approval, select the destination site and tracking endpoint. Credentials remain on the WordPress server.

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.

Native read-only HitKeep ecommerce analytics inside WordPress, showing €12.50 revenue and two orders in an isolated demonstration
The real embedded dashboard after two demo purchases and one refund. On narrow screens, the same metrics use two columns.

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.

SettingDefaultWhat to change deliberately
Logged-in WordPress usersExcludedInclude only if you want staff or member traffic in reports.
Logged-in WooCommerce customersExcludedOpt in separately if you want customer accounts included while staff remain excluded.
Do Not TrackRespectedKeep visitor choices consistent with your deployment’s privacy policy.
Pageviews and route changesEnabledTurn route tracking off if the site should record only full page loads.
Outbound links, downloads, form submissionsEnabledDisable individual event families when unnecessary.
Web VitalsDisabledEnable to collect performance measurements.
WooCommerce and redirect eventsDisabledEnable 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.

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 actionEventDelivery
View a productview_itemBrowser
Add or remove a cart itemadd_to_cart, remove_from_cartBrowser
Open the cartview_cartBrowser
Start checkoutbegin_checkoutBrowser
Order becomes paidpurchaseServer, including delayed payment
Full or partial refundrefundServer

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.

WooCommerce refunded demonstration order with HitKeep purchase and refund delivery both marked Sent
Inspect purchase and refund delivery on the order. This is an offline test order, with no real payment.

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.

Real WooCommerce Blocks checkout for a €12.50 demonstration product, with empty shopper fields and offline test payment selected
Blocks checkout in the isolated demo. The offline test payment exercises order delivery without moving money.

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 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.

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.

SymptomCheck
Connection cannot startBoth sites need public HTTPS; verify the saved canonical URL and any path prefix.
A site or endpoint is missingReview approved sites and your current permissions, then choose Refresh sites and domains.
Tracking works but charts request approvalChoose Authorize dashboard access for the older grant.
Charts cannot be framedEnsure the proxy preserves HitKeep’s per-response embed security headers rather than replacing them with a blanket frame denial.
A test visit is missingTest logged out, check Do Not Track and blockers, confirm the saved site and endpoint, then use the tracking verifier.
A paid order has no eventInspect its delivery status, checkout eligibility, and original connection; retry transient failures rather than creating another purchase event.