본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트41k · #6875

configuring-experiment-analytics

하는 일

이 스킬은 실험 분석에 누가 포함되는지, 그리고 실험이 효과가 있었는지 보여 주는 숫자가 무엇인지 설정합니다. A/B 테스트의 측정 부분을 설정하는 사람을 위한 것입니다.

사용하는 경우

  • ✓실험에서 어떤 사용자를 셀지 정해야 할 때.
  • ✓테스트의 주요 지표와 보조 지표를 고르고 싶을 때.
  • ✓한 실험에서 둘 이상의 변형을 보는 사용자를 처리해야 할 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/experiments/skills/configuring-experiment-analytics/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“결제 페이지에 도달한 사용자만 집계되도록 체크아웃 실험을 설정하고, 주요 지표로 전환율을 추적해 주세요.”

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

작동 방식

분석에 포함될 사람을 결정하는 노출 규칙을 설정한 다음, 영향을 측정하는 지표를 추가합니다. 또한 여러 변형을 본 사용자를 처리하는 방법도 설명합니다.

기술 내용 (원본 SKILL.md)

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

Configuring experiment analytics

This skill answers: Who is included in the analysis? and How to measure impact?

Exposure criteria

Exposure criteria determine which users are counted in the experiment analysis.

Exposure event

Two options:

  1. Default exposure event — users are included when the experiment's default exposure event fires for the experiment's flag: $feature_flag_called, or $experiment_exposure for newer experiments. Which one applies is resolved server-side — read resolved_exposure_event from experiment-get rather than assuming either name (both events carry the same properties). When it is $feature_flag_called, also read $experiment_exposure (event IN ('$feature_flag_called', '$experiment_exposure')), and count persons, not rows. This is the standard approach — it means a user is included only when they actually encounter the feature flag in your code.
  2. Custom exposure event — users are included when a specific custom event fires. Use this when you want tighter control over who enters the analysis (e.g., only users who actually visit the page where the experiment runs).

Filters on the exposure event remove individual events, not users. A user still counts as long as one of their exposure events passes the filters. To keep users out of the experiment, exclude them in the flag's release conditions before launch (see configuring-experiment-rollout).

Multiple variant handling

When a user is exposed to multiple variants (e.g., due to flag changes or race conditions):

  • Exclude from analysis — removes these users from the analysis entirely. Cleaner data, smaller sample.
  • Use first seen variant — assigns users to the first variant they were exposed to. Keeps all users in the analysis. Note that "first seen" can introduce other biases as behavior cannot be clearly attributed to a single variant and is not recommended unless necessary.

Bias risk on uneven splits. "Exclude from analysis" combined with an uneven variant split can introduce bias — multi-variant users are dropped asymmetrically and the smaller variant loses a larger fraction of its assignments. If those users behave differently from the rest, the smaller variant's metrics will be skewed.

The right mitigation depends on experiment state:

  • Not yet launched, or only exposed to a few users so far — switch to an even variant split and use the overall rollout percentage to limit test-variant exposure. This removes the bias and preserves statistical power. See configuring-experiment-rollout.
  • Live experiment with significant exposures — changing the split mid-run reassigns users across variants, which is bad for user experience and data quality. Switch this setting to "Use first seen variant" instead — it keeps already-assigned users in their original variant (no reassignment) and removes the asymmetric exclusion.

Filter test accounts

exposure_criteria.filterTestAccounts (default: true) — excludes internal/test users from the analysis.

Resolving experiments

Metric changes require an experiment ID. If the user refers to an experiment by name or description (e.g. "add metrics to the checkout test"), load the finding-experiments skill to resolve it to a concrete ID before proceeding.

Metrics

A metric reaches an experiment one of two ways, both via experiment-update:

  • Inline metric — defined directly on the experiment. Sent in the metrics array, which replaces the entire inline list, so always get the current experiment first via experiment-get to preserve existing metrics.
  • Shared (saved) metric — a reusable metric object that can be attached to many experiments. Attached by ID via saved_metrics_ids (this list also replaces the experiment's existing saved-metric links, so resend the full set — see Step 1).

Prefer reusing a shared metric over duplicating it inline. Build a new inline metric only when no suitable shared metric already exists.

Step 1: Check for an existing shared metric (REQUIRED — match by definition, not name)

Before building any new inline metric, you MUST check whether the project already has a shared (saved) metric that measures the same thing, and reuse it. Duplicating a metric that already exists as a shared metric fragments measurement and is exactly what we want to avoid.

*Reuse is decided by the metric definition — the event or action plus the metric type — not the name.

자주 묻는 질문

노출 이벤트란 무엇인가요?

사용자가 기능 플래그를 봤다는 것을 보여 주는 이벤트이므로, 그 사용자가 분석에 포함됩니다.

노출 이벤트를 필터링하면 사용자가 제외되나요?

아니요. 개별 이벤트만 제거되며, 노출 이벤트 중 하나라도 필터를 통과하면 사용자는 여전히 집계됩니다.

어떤 지표 유형을 지원하나요?

개수, 합계, 비율, 유지 지표를 지원합니다.

상세 정보

작성자의 원본 설명

Configures the analytics side of a PostHog experiment — exposure criteria (server-resolved default exposure event vs custom exposure events), primary and secondary metrics, the supported metric types (count, sum, ratio with `math` and `math_property`, retention with `retention_window_start` and `start_handling`), multivariate user handling ("Exclude from analysis" vs "Use first seen variant"), and how to read results once the experiment is live. Use when the user adds or edits a primary or secondary metric (e.g. "add a secondary metric tracking 'downloaded_file' per user"), sets up a ratio met

repo: PostHog/posthog

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬