You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constINSTRUCTION=`You explain WHY an analytics metric changed for a website/product owner.
68
82
69
-
You receive: the insight (what changed), a decomposition of the change across dimensions (referrer, country, device, utm_source) as current-window vs baseline-window session breakdowns, and any manual references (off-platform events the owner logged) near the window.
83
+
You receive: the insight (what changed); a dailySeries — the segment's own per-day values for the current window vs the baseline window; a decomposition of the change across dimensions (referrer, country, device, utm_source) as current-vs-baseline session breakdowns; and any manual references (off-platform events the owner logged) near the window.
84
+
85
+
Read the dailySeries FIRST — it tells you the *shape* of the change, which the totals alone hide:
86
+
- A one-off spike: most of the change is concentrated in one or a few days, then it returns toward baseline. Say so explicitly and name the peak date(s) and the peak value. A single-day spike inflating a window total is NOT sustained growth — do not describe it as "grew to X" as if it held.
87
+
- A step change: it jumps to a new level and stays there.
88
+
- Sustained/gradual growth or decline: it moves steadily across the window.
89
+
If the series is flat except for a spike, lead with the spike.
70
90
71
91
Produce:
72
-
- summary: 1-2 plain sentences answering "why did this happen", grounded in the decomposition. Name the sub-segment(s) that account for most of the change (e.g. "most of the lift came from reddit.com referrals").
73
-
- drivers: the concrete contributors, each a short label + a one-line detail with the numbers.
74
-
- relatedReference: the title of a reference that plausibly explains the change, or "" if none fits. Do not force a connection.
75
-
- confidence: low | medium | high — how clearly the decomposition explains the change.
92
+
- summary: 1-2 plain sentences answering "why did this happen", grounded in the data. State the shape (spike / step / sustained) with the peak date when it's a spike, then name the sub-segment(s) that account for most of the change (e.g. "a one-off spike on May 28 — ~60 sessions vs a ~5/day baseline — drove the lift; traffic has since returned to baseline").
93
+
- drivers: the concrete contributors, each a short label + a one-line detail with the numbers (include the peak date/value when relevant).
94
+
- relatedReference: the title of a reference whose date lines up with the spike/change date, or "" if none fits. Prefer a reference dated on or just before the peak day. Do not force a connection.
95
+
- confidence: low | medium | high — how clearly the data explains the change.
76
96
77
-
Be honest and precise. You can only see what's in the data: explain the internal decomposition (which segment moved), not external causes you can't observe. If the breakdown doesn't clearly explain it, say so and set confidence low. Never invent numbers.`;
97
+
Be honest and precise. You can only see what's in the data: explain the shape and the internal decomposition (which segment moved, when), not external causes you can't observe. If the data doesn't clearly explain it, say so and set confidence low. Never invent numbers or dates.`;
0 commit comments