Pular para o conteúdo
Skillpedia
Testes41 mil · #6985

check-posthog-loading

O que ela faz

Esta skill verifica uma lista de páginas web para confirmar que a biblioteca JavaScript do PostHog está instalada e configurada corretamente em cada uma delas. É para donos de site que querem ter certeza de que o rastreamento funciona em todos os lugares.

Quando usar

  • ✓Quando você acabou de instalar o PostHog e quer confirmar que ele funciona em todas as páginas.
  • ✓Quando um template de página mudou e você suspeita que uma página perdeu o snippet de rastreamento.
  • ✓Quando algumas páginas enviam dados para um projeto ou host diferente do PostHog em relação às outras.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/check-posthog-loading/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Verifique minhas páginas principais para ter certeza de que o PostHog está instalado corretamente e enviando para o mesmo projeto.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente abre cada página em um navegador real, espera o PostHog iniciar e informa se ele carregou, como foi adicionado e quais configurações usa. Depois resume quais páginas estão certas e quais não estão.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.
Perguntas frequentes

O que o relatório mostra para cada página?

Se o PostHog carregou, como foi adicionado, a chave do projeto e o host, e o ID de usuário que ele atribuiu.

O que significa se nenhuma página carregar?

Provavelmente o snippet de rastreamento está faltando no site, então reinstalá-lo ou verificar o layout da página é o próximo passo.

Quais configurações ele compara?

A chave do projeto e o host, para que você identifique páginas que enviam dados para outro lugar.

Detalhes

Descrição original do 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

Popularidade

Estrelas no GitHub
41 mil
Posição no ranking
#6985
Licença
—
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas