Saltar al contenido
Skillpedia
Pruebas41 mil · #6985

check-posthog-loading

Qué hace

Esta skill revisa una lista de páginas web para confirmar que la librería JavaScript de PostHog está instalada y configurada correctamente en cada una. Está pensada para dueños de sitios que quieren asegurarse de que el seguimiento funciona en todas partes.

Cuándo usarla

  • ✓Cuando acabas de instalar PostHog y quieres confirmar que funciona en todas las páginas.
  • ✓Cuando cambió una plantilla de página y sospechas que una página perdió el fragmento de seguimiento.
  • ✓Cuando algunas páginas envían datos a un proyecto o host de PostHog distinto al de las demás.

Link de la skill

https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/check-posthog-loading/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/check-posthog-loading/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Por favor, revisa mis páginas clave para asegurarte de que PostHog está instalado correctamente y envía datos al mismo proyecto.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente abre cada página en un navegador real, espera a que PostHog arranque e informa de si se cargó, cómo se añadió y la configuración que usa. Después resume qué páginas están bien y cuáles no.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

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

¿Qué muestra el informe para cada página?

Si PostHog se cargó, cómo se añadió, la clave del proyecto y el host, y el ID de usuario que asignó.

¿Qué significa que no se cargue ninguna página?

Probablemente el fragmento de seguimiento falta en el sitio, así que el siguiente paso es reinstalarlo o revisar la estructura de la página.

¿Qué configuraciones compara?

La clave del proyecto y el host, para detectar páginas que envían datos a otro sitio.

Detalles

Descripción original del autor

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

repo: PostHog/posthog

Popularidad

Estrellas en GitHub
41 mil
Posición en el ranking
#6985
Licencia
—
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas