본문으로 건너뛰기
Skillpedia
테스트41k · #6986

simulate-new-user

하는 일

이 스킬은 웹 페이지에 시뮬레이션된 처음 방문을 보내고, 어떤 PostHog 이벤트가 발생하는지 확인합니다. 처음 방문하는 사용자에게 추적이 작동한다는 증거를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓처음 방문하는 사용자의 페이지뷰가 추적되는지 확인하고 싶을 때.
  • ✓추적 변경을 배포한 뒤 그것을 테스트하고 싶을 때.
  • ✓신규 사용자에게 이벤트가 보이지 않는다는 보고가 있을 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/simulate-new-user/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/simulate-new-user/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“가격 페이지에 새 방문자로서 테스트 방문을 몇 번 보내고, PostHog가 그것을 기록하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 각 방문마다 저장된 쿠키가 없는 새 브라우저에서 페이지를 열고, 약간 스크롤한 뒤, PostHog가 받은 이벤트를 보고합니다. 페이지뷰가 캡처되면 방문은 검증된 것으로 셉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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.
자주 묻는 질문

매번 새 브라우저를 쓰는 이유는 무엇인가요?

각 방문이 PostHog에게 완전히 새로운 익명 방문자처럼 보이게 하기 위해서입니다.

테스트는 얼마나 걸리나요?

각 방문은 약 10초에 방문 사이의 대기 시간을 더한 만큼 걸리므로, 몇 번 방문하면 시간이 조금 걸립니다.

EU PostHog 클라우드도 테스트할 수 있나요?

네. 이 스킬은 EU 클라우드나 자체 호스팅 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.

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6986
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬