check-posthog-loading
/check-posthog-loading
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).
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
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).
Original author description
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 it works
- When to use
- How to invoke
- Interpreting the result
SKILL.md preview
--- name: check-posthog-loading description: > 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). --- # Check PostHog loading For each URL, navigates a real browser to the page, waits for PostHog to initialize, and reports: - Whether `window.posthog` is defined and `__loaded`. - Which load method was used: `head_snippet`, `snippet`, `array_js_only`, or `none`. - Where in the document the snippet lives (`head` / `body`). - The init config: `api_key`, `api_host`, `person_profiles`. - Runtime state including the assigned `distinct_id`. ## When to use - Sanity-check a fresh install — does the snippet actually load on every page? - After a page-template change — did one page lose the snippet? - When investigating split data — are some pages pointing at a different `api_host` or `api_key` than others? - Onboarding a new customer — confirm SDK is wired up before debugging events. ## How to invoke Call the `check_posthog_loading` MCP tool with: - `urls` (required) — list of URLs to inspect. - `posthog_host` (default `https://us.i.posthog.com`). 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: - **Empty `loaded` list, full `not_loaded` list** — snippet not present anywhere. Re-run install or check that the layout includes the snippet. - **Mixed `loaded` / `not_loaded`** — snippet missing from some pages. Common cause: a page rendered by a different template or layout. - **Multiple distinct `api_key` values across pages** — a page is pointing at the wrong PostHog project. - **Multiple distinct `api_host` values** — a page is pointing at the wrong 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. - **`load_method: array_js_only`** with no init config — `array.js` was loaded but `posthog.init()` was never called. Common with manual installs that miss the second half.
Versions
The database has no other skills named check-posthog-loading.
Database snapshot: 13.11.2026 · package version b578c779c3a8 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95instrument-integration
Add PostHog SDK integration to your application. Use when setting up PostHog for the first time or reviewing PRs that need PostHog initialization. Covers SDK installation, provider setup, and basic configuration for any framework. - 90verify-posthog-instrumentation
Use this skill to verify that PostHog instrumentation is firing correctly on a website. Drives a real browser at one or more URLs, observes which PostHog events actually arrive, and reports a pass/fail summary. Use after installing the PostHog SDK on a site, after a deploy that… - 100diagnosing-sdk-health
Diagnoses the health of a project's PostHog SDK integrations — which SDKs are out of date and how to fix them. Use when a user asks about PostHog SDK versions, outdated SDKs, upgrade recommendations, "SDK health", "SDK doctor" (the former name), or when events or features seem… - 100posthog-install-auth
Install and configure PostHog SDK/CLI authentication. Use when setting up a new PostHog integration, configuring API keys, or initializing PostHog in your project. Trigger with phrases like "install posthog", "setup posthog", "posthog auth", "configure posthog API key". - 93posthog-debugger
Debug and inspect PostHog implementations on any website. Use this skill when a user wants to understand how PostHog is implemented on a page, troubleshoot tracking issues, verify configuration, check what events are being sent, or audit a PostHog setup. Works with Chrome… - 100posthog
PostHog is an open-source product analytics platform: event tracking, funnels, retention, session replay, feature flags and experiments in one tool, on PostHog Cloud or self-hosted. Use when someone asks to "add product analytics", "track events with PostHog", "set up session…