Simulate new user

From PostHog/posthog · View interactive version

Simulate new user is an AI agent skill from the GitHub repository PostHog/posthog. Send synthetic first-time-visitor traffic to a URL and confirm that PostHog $pageview events fire. Use when a customer wants to verify that anonymous visitor tracking works, after deploying instrumentation changes, or when debugging "events not arriving" reports.

How to use this skill

Skill file

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

is sent within a few seconds of page load.

How to invoke

Call the simulate_new_user MCP tool with:

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,
}

no errors occurred — the new-user flow works.

Run check_posthog_loading next to see whether the snippet is even loaded.

responses. Check the project's ingestion limits and api_host configuration.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.