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

check-posthog-loading

하는 일

이 스킬은 웹 페이지 목록을 확인해 각 페이지에 PostHog JavaScript 라이브러리가 올바르게 설치되었는지 점검합니다. 추적이 모든 곳에서 작동하는지 확인하려는 사이트 운영자를 위한 스킬입니다.

사용하는 경우

  • ✓PostHog를 막 설치해서 모든 페이지에서 작동하는지 확인하고 싶을 때.
  • ✓페이지 템플릿이 바뀌어서 한 페이지에서 추적 스니펫이 빠졌을 수 있다고 의심될 때.
  • ✓일부 페이지가 다른 페이지와 다른 PostHog 프로젝트나 호스트로 데이터를 보낼 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/tools/traffic-sim/skills/check-posthog-loading/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/check-posthog-loading/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에서 그대로 가져왔습니다.

Check PostHog loading

For each URL, navigates a real browser to the page, waits for PostHog to initialize, and reports:

  • Whether window.posthog is defined and __loaded.
  • Which load method was used: head_snippet, snippet, array_js_only, or none.
  • Where in the document the snippet lives (head / body).
  • The init config: api_key, api_host, person_profiles.
  • Runtime state including the assigned distinct_id.

When to use

  • Sanity-check a fresh install — does the snippet actually load on every page?
  • After a page-template change — did one page lose the snippet?
  • When investigating split data — are some pages pointing at a different api_host or api_key than others?
  • Onboarding a new customer — confirm SDK is wired up before debugging events.

How to invoke

Call the check_posthog_loading MCP tool with:

  • urls (required) — list of URLs to inspect.
  • posthog_host (default https://us.i.posthog.com).

Returns a structured summary with which URLs loaded successfully, which didn't, and the load-method distribution.

Interpreting the result

Look for these red flags:

  • Empty loaded list, full not_loaded list — snippet not present anywhere. Re-run install or check that the layout includes the snippet.
  • Mixed loaded / not_loaded — snippet missing from some pages. Common cause: a page rendered by a different template or layout.
  • Multiple distinct api_key values across pages — a page is pointing at the wrong PostHog project.
  • Multiple distinct api_host values — a page is pointing at the wrong ingestion endpoint (e.g. EU cloud vs US cloud, or vs a self-hosted reverse proxy). This causes events to land in different projects than expected.
  • load_method: array_js_only with no init config — array.js was loaded but posthog.init() was never called. Common with manual installs that miss the second half.
자주 묻는 질문

각 페이지의 보고서에는 무엇이 있나요?

PostHog가 로드되었는지, 어떻게 추가되었는지, 프로젝트 키와 호스트, 그리고 할당된 사용자 ID가 있습니다.

아무 페이지도 로드되지 않으면 무엇을 의미하나요?

추적 스니펫이 사이트에서 빠졌을 가능성이 높으므로, 다시 설치하거나 페이지 레이아웃을 확인하는 것이 다음 단계입니다.

어떤 설정을 비교하나요?

프로젝트 키와 호스트를 비교해서, 다른 곳으로 데이터를 보내는 페이지를 찾아냅니다.

상세 정보

작성자의 원본 설명

Inspect how the PostHog JavaScript SDK is loaded across a list of URLs. Use to confirm consistent installation across pages, find pages missing the snippet, detect mismatched API keys or hosts between pages, and verify the load method (head snippet vs deferred vs array.js).

repo: PostHog/posthog

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬