मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग41k · #6986

simulate-new-user

यह क्या करती है

यह स्किल किसी वेब पेज पर पहली बार आने वाले विज़िटरों की नकली विज़िट भेजती है और जाँचती है कि कौन-से PostHog इवेंट चलते हैं। यह उन डेवलपर के लिए है जिन्हें नए विज़िटरों के लिए ट्रैकिंग चालू होने का सबूत चाहिए।

कब इस्तेमाल करें

  • ✓जब आप पक्का करना चाहें कि पहली बार आने वाले विज़िटरों के पेजव्यू ट्रैक हो रहे हैं।
  • ✓जब आपने कोई ट्रैकिंग बदलाव डिप्लॉय किया हो और उसे टेस्ट करना चाहें।
  • ✓जब लोग बताएँ कि नए यूज़र के इवेंट दिखाई नहीं दे रहे।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/simulate-new-user/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“कृपया हमारे प्राइसिंग पेज पर कुछ टेस्ट विज़िट नए विज़िटर की तरह भेजिए और बताइए कि PostHog उन्हें दर्ज करता है या नहीं।”

हर हफ़्ते 5 नई skills, 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 को एक नए गुमनाम विज़िटर जैसी दिखती है।

एक टेस्ट में कितना समय लगता है?

हर विज़िट में लगभग दस सेकंड लगते हैं, और विज़िटों के बीच का इंतज़ार अलग। इसलिए कुछ विज़िट में थोड़ा समय लगता है।

क्या मैं 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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills