Check posthog loading

From PostHog/posthog · View interactive version

Check posthog loading is an AI agent skill from the GitHub repository PostHog/posthog. Inspect how the PostHog JavaScript SDK is loaded across a list of URLs. Use to confirm consistent installation across pages, find pages missing the snippet, detect mismatched API keys or hosts between pages, and verify the load method (head snippet vs deferred vs array.js).

How to use this skill

Skill file

Check PostHog loading

For each URL, navigates a real browser to the page, waits for PostHog to

initialize, and reports:

When to use

api_host or api_key than others?

How to invoke

Call the check_posthog_loading MCP tool with:

Returns a structured summary with which URLs loaded successfully, which

didn't, and the load-method distribution.

Interpreting the result

Look for these red flags:

anywhere. Re-run install or check that the layout includes the snippet.

Common cause: a page rendered by a different template or layout.

at the wrong PostHog project.

ingestion endpoint (e.g. EU cloud vs US cloud, or vs a self-hosted reverse

proxy). This causes events to land in different projects than expected.

loaded but posthog.init() was never called. Common with manual installs

that miss the second half.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.