Skip to content
HitKeep
Select language
Select theme
GitHub
Start free in Cloud

Connect Codex to HitKeep Analytics

Use the first-party plugin for analytics instructions and a separate MCP connection for data. Codex can then investigate traffic or tracking questions using aggregate evidence from the HitKeep sites you explicitly authorize.

  • Use a Codex version with native plugin marketplace and HTTP MCP support. The installation flow was checked with Codex CLI 0.164.0; current commands are also available through codex plugin --help and codex mcp --help.
  • Sign in to the HitKeep instance that owns the sites you intend to share.
  • Use a canonical HTTPS MCP endpoint that advertises OAuth support. The published skills package is independent of the 2.15.0 application rollout; check release availability before using OAuth or the Assistants page on an older instance.
  • Keep analytics access separate from any repository or execution permissions you give Codex. HitKeep MCP grants neither source access nor administrative writes.

Add the versioned repository marketplace and install the analytics package:

Terminal window
codex plugin marketplace add HitKeep/hitkeep-assistant-plugins --ref v2.15.0
codex plugin add hitkeep-analytics@hitkeep
codex plugin list --marketplace hitkeep --json

Check that hitkeep-analytics@hitkeep is installed and enabled at version 2.15.0. The package supplies five skills:

  • hitkeep-analytics
  • hitkeep-traffic-diagnosis
  • hitkeep-ai-visibility-analyst
  • hitkeep-ecommerce-analyst
  • hitkeep-tracking-verifier

It contains no bundled MCP endpoint, credentials, or executable hooks. Start a fresh session if the new skills are not visible in an existing conversation. Repository marketplace installation is separate from approval in the universal ChatGPT/Codex directory.

The first-party release also provides the portable ZIP and checksums. Use the ChatGPT guide for native private archive installation in ChatGPT; do not assume a CLI install installs a cloud plugin into that account.

Open Integration → Assistants and copy the MCP endpoint. Use your actual EU, US, or self-hosted instance, including its custom MCP path or proxy prefix.

HitKeep Assistants page with the canonical MCP endpoint and Codex setup link
The displayed endpoint identifies your instance. Copying it does not verify a connected Codex session.

Replace the example URL with your copied endpoint:

Terminal window
codex mcp add hitkeep --url https://analytics.example.com/mcp
codex mcp login hitkeep --scopes sites:read,analytics:read

Complete the browser flow if the add command starts it immediately; otherwise use the login command. Sign in to HitKeep and review the requesting client, MCP resource, team, scopes, and selected sites. Approve only the sites needed for the investigation.

Use the native client’s validated HTTPS Client ID Metadata Document (CIMD) by default. If an explicit native registration is necessary, ask the HitKeep operator to pre-register an operator-controlled public client, then use its client ID with Codex’s supported setup. Integration → OAuth clients accepts HTTPS callbacks only; it cannot register a native HTTP loopback callback. Preserve the exact callback hostname and allow only the permitted loopback port variation. Do not add a client secret or relax callback validation. See the OAuth guide for client and resource binding.

For an instance without OAuth, use a scoped API-client token only through a client-supported bearer-token secret store. Never put a token in a prompt, shell history, or committed configuration.

Ask Codex to list the authorized HitKeep sites. Select the intended site and try: “Summarize the last seven complete days against the previous seven. Check source changes and event coverage, and distinguish measured facts from possible causes.”

Confirm an aggregate tool response succeeded for the selected site. A plugin inventory, successful login, or endpoint copy alone is not proof that analytics queries work. The MCP catalog describes supported reports and limits; use date ranges and report sections that fit the question.

Open the HitKeep header user menu and choose Connected applications. Review the grant and revoke it when it is no longer needed. Current site permissions still apply to subsequent requests.

HitKeep Connected applications list for reviewing and revoking assistant grants
Grant management belongs to HitKeep. Removing a local skills package is a different operation from revoking data access.

After revocation or grant expiry, run the client’s login flow again and review consent. Access-token refresh and grant lifetime are separate; see the OAuth guide. If you remove a local client connection as part of troubleshooting, ensure its HitKeep grant is also revoked when you intend to stop data access.

SymptomCheck
Plugin commands unavailableCheck the installed Codex version and its native plugin feature availability.
Plugin installed but no HitKeep toolsAdd MCP separately; the skills package intentionally does not configure a server.
OAuth discovery failsConfirm the application version, HTTPS canonical URL, leader endpoint, and advertised metadata.
Callback rejectedPreserve the exact callback hostname and registered public client identity.
Authorized site missing or request deniedCheck the consented team, sites, scopes, and current site membership; dashboard site switching does not expand a grant.
Reports are emptyConfirm date ranges, tracker/event collection, imported Search Console data, and crawler feeds where relevant.

MCP excludes raw hit exports, dashboard cookies, billing, token management, and administrative writes. Authorized aggregate results are shared with the assistant you connect. See MCP behavior and the Codex integration overview.