simulate-returning-user

โดย posthog

ส่งทราฟฟิกหลายหน้าในเซสชันเดียวแบบสังเคราะห์ไปยัง URL และยืนยันว่าเหตุการณ์ PostHog $pageview ทำงานข้ามการดูหน้า ใช้เมื่อต้องการตรวจสอบว่าคุกกี้ยังคงอยู่…

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

Simulate returning-user traffic

Drives a single browser context across N page views (cookies and localStorage persist), navigating between pages and reporting which PostHog events fired. This matches the behavior of a single visitor browsing multiple pages on the same site.

When to use

  • Confirm that PostHog reuses the same distinct_id across page views in a session (no fresh anonymous IDs per page).
  • Confirm $pageview fires on every page view, not just the first.
  • Reproduce "session not stitching" or "events split across multiple users" reports.

How to invoke

Call the simulate_returning_user MCP tool with:

  • url (required) — the page to visit each iteration.
  • page_views (default 3) — number of page views in the session.
  • interval (default 5.0) — seconds between page views.
  • posthog_host (default https://us.i.posthog.com).

To exercise multi-page navigation, call the tool once per URL — the cookies won't carry across calls (each call is a separate Playwright context). For true multi-page browsing within one session, edit the URL list passed to the underlying CLI: traffic-sim returning-user --url A --url B --url C.

Interpreting the result

The structured response shape matches simulate_new_user. Key signals:

  • verified: true and pageviews >= page_views — the session works.
  • Same distinct_id across all pageviews (visible in PostHog UI under the run_id query param) — session stitching works.
  • Different distinct_id per visit — likely a cookie domain or storage-permissions issue. Inspect the raw posthog_requests for $session_id values to diagnose.

Skills เพิ่มเติมจาก posthog

error-tracking-hono
posthog
การติดตามข้อผิดพลาดของ PostHog สำหรับ Hono
tuning-incremental-sync-config
posthog
การกำหนดค่าการซิงค์จะอยู่บน ExternalDataSchema และสามารถเปลี่ยนแปลงได้ตลอดเวลาผ่าน external-data-schemas-partial-update การเปลี่ยนแปลงส่วนใหญ่จะไม่ทำลายข้อมูล (มีผลในการซิงค์ครั้งถัดไป) แต่บางอย่าง (การเปลี่ยน sync_type, การเปลี่ยนคีย์หลัก) จำเป็นต้องจัดการอย่างระมัดระวังเพื่อหลีกเลี่ยงการทำให้ข้อมูลที่ซิงค์เสียหาย
playwright-test
posthog
เขียน playwright test ให้แน่ใจว่ามันรันได้ และไม่ flaky
error-tracking-ruby
posthog
การติดตามข้อผิดพลาดของ PostHog สำหรับ Ruby
authoring-log-alerts
posthog
สร้างการแจ้งเตือนบันทึกที่มีประโยชน์และมีสัญญาณรบกวนต่ำสำหรับบริการในโปรเจกต์ PostHog ใช้เมื่อผู้ใช้ขอให้ตั้งค่าการแจ้งเตือนสำหรับบันทึกของพวกเขา แนะนำการแจ้งเตือนที่ควรเพิ่ม…
making-scenes-tab-aware
posthog
Guides converting PostHog frontend scenes to be tab aware for internal scene tabs. Use when adding or refactoring a `SceneExport` scene, fixing state leaking…
posthog-survey-creator
posthog
สร้างและกำหนดค่าแบบสำรวจใน PostHog ผ่านการสนทนาที่มีคำแนะนำ ใช้ทักษะนี้เมื่อผู้ใช้ต้องการสร้างแบบสำรวจ รวบรวมความคิดเห็นจากผู้ใช้ ดำเนินการ…
authoring-scouts
posthog
วิธีการเขียน แก้ไข และปรับแต่ง PostHog Signals scouts — เอเจนต์ตามกำหนดการที่สแกนโปรเจกต์และเขียนรายงานลงในกล่องข้อความ Signals ใช้เมื่อผู้ใช้…