Saltar al contenido
Skillpedia
Pruebas41 mil · #6988

verify-posthog-instrumentation

Qué hace

Esta skill combina varias comprobaciones para confirmar que la configuración de PostHog de un sitio web funciona de principio a fin. Está pensada para dueños de sitios y desarrolladores que quieren una respuesta clara después de instalar o cambiar el seguimiento.

Cuándo usarla

  • ✓Cuando acabas de instalar PostHog y quieres confirmar que funciona.
  • ✓Cuando un despliegue cambió el código de analítica y quieres comprobar que los eventos siguen llegando.
  • ✓Cuando un cliente dice que no ve eventos en PostHog.

Link de la skill

https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/verify-posthog-instrumentation/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/verify-posthog-instrumentation/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

“Acabo de añadir PostHog a mi web. ¿Puedes comprobar que está instalado en todas las páginas y que los eventos están llegando?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente revisa primero cada página clave en busca del fragmento de PostHog y de su configuración. Luego envía visitas simuladas de usuarios nuevos y recurrentes para confirmar que llegan los eventos, y muestra un resumen de aprobado o suspendido.

Contenido técnico (SKILL.md original)

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

Verify PostHog instrumentation

End-to-end check that the PostHog SDK is loaded and emitting events as expected. This skill orchestrates the three traffic-sim tools to give a complete picture of a site's instrumentation health.

When to use

  • After running npx @posthog/wizard to confirm the install actually works.
  • After a deploy that touches analytics, tracking, or layout code.
  • When a customer reports "I'm not seeing events in PostHog" — to disambiguate between snippet issues, network issues, or filtering issues.
  • As a smoke test before launching a new site or marketing page.

Workflow

Step 1 — Confirm the snippet is loaded everywhere

Run the check_posthog_loading MCP tool against the URLs you care about (homepage, key product pages, login, checkout, marketing pages). It returns which pages have PostHog initialized, the load method (head_snippet / snippet / array_js_only), and the init config.

Look for:

  • Pages where loaded: false — PostHog is missing from those pages.
  • Inconsistent api_key values across pages — multiple projects in use.
  • Inconsistent api_host values across pages — events going to different ingestion endpoints.

Step 2 — Send synthetic traffic and confirm events arrive

Pick one URL where Step 1 confirmed PostHog is loaded. Call:

  • simulate_new_user — a few fresh-browser visits. Confirms $pageview fires for first-time visitors and that an anonymous distinct_id is assigned.
  • simulate_returning_user — a few page views in a single session. Confirms cookies persist and $pageview keeps firing across navigations.

The tools return verified: true when at least one $pageview was captured and there were no errors.

Step 3 — Cross-check in PostHog

If Steps 1 and 2 pass but events don't show up in the PostHog UI, the issue is downstream of the snippet:

  • Check for ingestion lag (events can take ~30s to appear).
  • Check that the api_host matches the project's ingestion host.
  • Check feature flag and ingestion warnings in the PostHog UI.

What "verified" means in this skill

A site is verified when:

  1. check_posthog_loading reports loaded: true on every URL we expect.
  2. simulate_new_user and simulate_returning_user both return at least one $pageview event per visit, with no errors.
  3. (Optional) The events appear in the PostHog UI within 1-2 minutes.

What this skill does not check

  • Whether your custom events (e.g. signup_completed) are being sent — the tool watches for any PostHog event, but you'd need to drive the actual user flow to see custom events fire. Use it as a starting point, then add user-flow simulation on top.
  • Server-side ingestion. The tool only sees what the browser SDK sends.
  • Session recording quality. The tool reports whether recording is enabled in the init config but doesn't validate the recording itself.
Preguntas frecuentes

¿Qué revisa primero la comprobación?

Si PostHog está cargado en cada página y si la clave del proyecto y el host coinciden entre páginas.

¿Esto sustituye al panel de PostHog?

No. Confirma que los eventos se envían, y tú sigues viendo los resultados en PostHog.

¿Por qué podrían faltar eventos?

Las causas habituales son un fragmento que falta, un problema de red o un filtro que oculta los eventos.

Detalles

Descripción original del autor

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 touches tracking code, or when events appear missing in the PostHog dashboard.

repo: PostHog/posthog

Popularidad

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

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas