simulate-new-user

Enviar tráfego sintético de primeiro visitante para uma URL e confirmar que os eventos PostHog $pageview são disparados. Use quando um cliente quiser verificar se um visitante anônimo…

npx skills add https://github.com/posthog/posthog --skill simulate-new-user

Simulate new-user traffic

Drives a fresh browser context for each visit (no cookies, no localStorage), goes to the given URL, scrolls a bit, and reports which PostHog events fired. Each visit looks to PostHog like a brand-new anonymous visitor.

When to use

  • Confirm $pageview fires on the first visit (no cookies present).
  • Confirm an anonymous distinct_id is generated and a PostHog request is sent within a few seconds of page load.
  • Reproduce "events not showing up for new users" reports.

How to invoke

Call the simulate_new_user MCP tool with:

  • url (required) — the page to visit, e.g. https://example.com/pricing.
  • visits (default 3) — number of fresh-context visits.
  • interval (default 5.0) — seconds between visits.
  • posthog_host (default https://us.i.posthog.com) — set to https://eu.i.posthog.com for the EU cloud, or your self-hosted host (e.g. https://ph.example.com).

Each visit takes ~10s of Playwright time plus the interval, so plan accordingly.

Interpreting the result

The tool returns a structured summary:

{
  "run_id": "a1b2c3d4",
  "scenario": "new-user",
  "total_visits": 3,
  "posthog_requests": 6,
  "posthog_requests_ok": 6,
  "events_by_type": { "$pageview": 3, "$autocapture": 3 },
  "pageviews": 3,
  "errors": [],
  "verified": true,
}
  • verified: true means at least one $pageview was captured per visit and no errors occurred — the new-user flow works.
  • verified: false with pageviews: 0 means PostHog isn't firing pageviews. Run check_posthog_loading next to see whether the snippet is even loaded.
  • posthog_requests_ok < posthog_requests means PostHog returned non-2xx responses. Check the project's ingestion limits and api_host configuration.

Mais skills de posthog

managing-experiment-lifecycle
posthog
Orienta as transições de estado do experimento: iniciar, pausar, retomar, encerrar, enviar variantes, arquivar, redefinir e duplicar. Abrange pré-condições,…
official
configuring-experiment-analytics
posthog
Configures the analytics side of a PostHog experiment — exposure criteria (default `$feature_flag_called` vs custom exposure events), primary and secondary…
official
error-tracking-hono
posthog
Rastreamento de erros do PostHog para Hono
official
error-tracking-react
posthog
Rastreamento de erros do PostHog para React
official
integration-android
posthog
Integração PostHog para aplicativos Android
official
integration-ruby
posthog
Integração do PostHog para qualquer aplicação Ruby usando o SDK Ruby
official
tuning-incremental-sync-config
posthog
A configuração de uma sincronização reside no ExternalDataSchema e pode ser alterada a qualquer momento via external-data-schemas-partial-update. A maioria das alterações não é destrutiva (entra em vigor na próxima sincronização), mas algumas (mudar o sync_type, alterar chaves primárias) exigem manuseio cuidadoso para evitar corromper os dados sincronizados.
official
instrument-integration
posthog
Use esta skill para adicionar o SDK do PostHog a uma aplicação. Utilize-a ao configurar o PostHog pela primeira vez ou ao revisar PRs que precisam de inicialização do PostHog. Abrange instalação do SDK, configuração do provider e configuração básica. Suporta qualquer framework ou linguagem.
official