analyzing-funnel-correlation
하는 일
이 스킬은 퍼널에서 전환되거나 이탈하는 사람과 연결된 행동과 사용자 특성을 찾습니다. 성공한 사용자가 무엇을 다르게 하는지 알고 싶은 제품 및 성장 팀을 위한 것입니다.
사용하는 경우
- ✓사람들이 퍼널에서 왜 전환하거나 이탈하는지 알고 싶을 때.
- ✓전환한 사람이 이탈한 사람과 무엇이 다른지 알고 싶을 때.
- ✓성공이나 실패를 예측하는 이벤트나 사용자 속성을 찾고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/product_analytics/skills/analyzing-funnel-correlation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 가입 퍼널에서 사람들이 왜 이탈하나요? 완료한 사람과 완료하지 않은 사람을 비교해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
퍼널을 실행한 뒤, 완료한 사람과 완료하지 않은 사람을 각 이벤트와 속성마다 비교합니다. 전환이나 이탈과 얼마나 강하게 연결되는지에 따라 신호의 순위를 매깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Analyzing funnel correlation
Correlation compares two groups of people who entered a funnel: people who completed the last step (success) and people who did not (failure). For each candidate event or property value, build a contingency table and compute the odds ratio. An odds ratio above 1 means the signal goes with conversion. Below 1 means it goes with drop-off. The further the ratio is from 1, the stronger the correlation.
Correlation is not causation. Tell the user that, and suggest an experiment to test a strong signal.
Workflow
- Get the funnel definition: the step events, the date range, and the conversion window.
If the user names a saved insight, read it with
insight-get. Confirm the step events withread-data-schema. - Run the funnel with
query-funneland note the total entrants and converters. The SQL below must give totals in the same range. If not, fix the step filters first. - Run the event correlation query below with
execute-sql. - If the user asks about person attributes, run the property variant.
- Report the top success signals and the top failure signals with their counts.
To show who is behind a signal, use
query-funnel-actorsor filter the funnel by that event or property.
Event correlation
Replace the step events, the date range, the conversion window (seconds in windowFunnel, days in the INTERVAL), and the step count.
Add more event = '...' conditions to windowFunnel for more steps, and set steps = N to the last step.
WITH
funnel_actors AS (
SELECT
person_id AS actor_id,
windowFunnel(1209600)(toDateTime(timestamp), event = 'step one', event = 'step two') AS steps,
arraySort(groupArrayIf((toUnixTimestamp(timestamp), event = 'step two'), event IN ('step one', 'step two'))) AS step_events,
arrayReverseFill(t -> t > 0, arrayMap(x -> if(x.2, x.1, 0), step_events)) AS next_final,
arrayFirstIndex((x, t) -> NOT x.2 AND t > 0 AND t <= x.1 + 1209600, step_events, next_final) AS attempt,
toDateTime(if(attempt > 0, step_events[attempt].1, arrayFirst(x -> NOT x.2, step_events).1)) AS first_timestamp,
toDateTime(next_final[greatest(attempt, 1)]) AS final_timestamp
FROM events
WHERE event IN ('step one', 'step two')
AND timestamp >= now() - INTERVAL 30 DAY
GROUP BY actor_id
HAVING steps >= 1
),
totals AS (
SELECT countIf(steps = 2) AS success_total, countIf(steps < 2) AS failure_total
FROM funnel_actors
),
per_event AS (
SELECT
e.event AS name,
countDistinctIf(a.actor_id, a.steps = 2) AS success_count,
countDistinctIf(a.actor_id, a.steps < 2) AS failure_count
FROM events AS e
JOIN funnel_actors AS a ON e.person_id = a.actor_id
WHERE e.timestamp >= now() - INTERVAL 30 DAY
AND e.timestamp > a.first_timestamp
AND e.timestamp < if(a.steps = 2, a.final_timestamp, a.first_timestamp + INTERVAL 14 DAY)
AND e.event NOT IN ('step one', 'step two')
GROUP BY name
)
SELECT
name,
success_count,
failure_count,
success_total,
failure_total,
((success_count + 1) * (failure_total - failure_count + 1))
/ ((success_total - success_count + 1) * (failure_count + 1)) AS odds_ratio
FROM per_event
CROSS JOIN totals
WHERE success_count + failure_count >= least(25, 0.02 * (success_total + failure_total))
ORDER BY abs(log(odds_ratio)) DESC
LIMIT 20
The query only counts events between funnel entry and conversion.
step_events holds the first-step and last-step events in time order. next_final gives the next last-step time for each of them in one pass.
For people who converted, attempt picks the first entry that has a last step inside the window, so both timestamps come from the same attempt.
For more steps, keep only the first and last step events in groupArrayIf. The attempt then ignores the middle steps, so the interval can start at an earlier entry than the one that converted.
For people who did not convert, it counts events from their first entry until the conversion window closes.
The timestamps use whole seconds because windowFunnel compares whole seconds. Keep them the same, or some converters get no matched attempt.
It excludes the funnel step events, because they correlate with conversion by definition.
Property correlation
To compare
자주 묻는 질문
강한 신호가 전환을 일으킨다는 것을 증명하나요?
아니요. 상관관계는 인과관계가 아니므로, 스킬은 강한 신호를 테스트할 실험을 제안합니다.
승산비는 무엇을 뜻하나요?
1보다 큰 숫자는 전환과 함께 가고, 1보다 작은 숫자는 이탈과 함께 갑니다. 1에서 멀수록 연결이 강합니다.
신호 뒤의 사람을 보여 줄 수 있나요?
네. 퍼널 액터 쿼리를 써서 신호 뒤의 사람들을 보여 줄 수 있습니다.
상세 정보
작성자의 원본 설명
Find the events and person properties that correlate with funnel conversion or drop-off. Use when the user asks why people convert or drop off in a funnel, what converters do differently, which events or properties predict success or failure, or asks for "correlation analysis" on a funnel. Computes odds ratios with HogQL, because PostHog has no built-in funnel correlation view.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6899
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.