← Adobe CJACONTENT HISTORYWHAT CHANGED · RULE-BASED ANALYSIS
Update to Adobe CJA
Snapshot Sep 30, 2026 · 22:53 UTC · version 2.0.0
Collection source: not recorded for this historical snapshot.
First saved snapshot
No earlier snapshot is available to establish a change.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"name": "cja-funnel-health-check",
"description": "Analyzes a multi-step conversion funnel to find where users drop off and which steps have the worst leakage. Use this skill when someone describes a journey or funnel and asks about conversion rates, drop-off, fallout, or step completion. Trigger for phrases like \"analyze our onboarding funnel,\" \"where are users dropping off,\" \"what's our checkout conversion rate,\" \"funnel analysis,\" \"show me fallout between these steps,\" or \"which step loses the most users.\"\n",
"included_files": [
{
"relative_path": "evals/evals.json",
"size_in_bytes": 2374
}
],
"skill_md_contents": "---\nname: cja-funnel-health-check\ndescription: >\n Analyzes a multi-step conversion funnel to find where users drop off and which\n steps have the worst leakage. Use this skill when someone describes a journey\n or funnel and asks about conversion rates, drop-off, fallout, or step completion.\n Trigger for phrases like \"analyze our onboarding funnel,\" \"where are users\n dropping off,\" \"what's our checkout conversion rate,\" \"funnel analysis,\"\n \"show me fallout between these steps,\" or \"which step loses the most users.\"\nlicense: Apache-2.0\nmetadata:\n author: Adobe\n version: \"1.0\"\n---\n\n# Funnel Health Check (Customer Journey Analytics)\n\nTurn a plain-English funnel description into a quantified step-by-step\nconversion analysis. The output identifies the biggest leakage point in the\nfunnel and provides dimension-based breakdowns to show which audience or channel\nhas the worst drop-off.\n\nFunnel health checks are most valuable when a team suspects a specific step is\nbroken but hasn't quantified it. This skill does the quantification in a single\nconversation turn.\n\n---\n\n## CJA MCP Tools Used\n\n- `findDimensions` — resolve page name, event, or other dimensions for step filtering\n- `findMetrics` — get the base metric to measure (sessions, visitors, events)\n- `searchDimensionItems` — find exact dimension values for step names\n- `runReport` (with `adhocSegments`) — measure visitor counts at each funnel step\n- `findSegments` — use existing segments as funnel step filters if applicable\n- `describeSegment` — understand segment logic before applying as a funnel step\n\n---\n\n## Phase 0 — Setup\n\n1. Call `findDataViews` to list available data views.\n2. If the user hasn't specified a data view, present the list and ask which to use.\n3. Call `setDefaultSessionDataViewId` with the chosen ID.\n4. Ask the user to define the funnel stages if not already specified (e.g., \"What are the steps in the funnel you want to analyze?\").\n\n## Phase 1 — Define Funnel Steps\n\n### 1.1 Parse the user's funnel description\n\nExtract the step sequence from the user's plain-English description:\n- \"Homepage → Product Page → Cart → Purchase\"\n- \"Registration → Onboarding Step 1 → Onboarding Step 2 → Activated\"\n- \"Landing Page → Lead Form → Thank You Page\"\n\nEach step must resolve to a measurable condition in CJA. A step can be:\n- **Page view**: user viewed a specific page (resolved via page name dimension)\n- **Event/metric**: user triggered a specific action (e.g., \"Added to Cart\")\n- **Segment membership**: user meets a pre-built segment condition\n\n### 1.2 Clarify ambiguous steps\n\nIf any step is vague (e.g., \"checkout\" without a page name), ask one question:\n> \"For the 'Checkout' step — should I look at people who visited a page\n> containing 'checkout' in the URL, or those who triggered a specific event\n> like 'Cart Add'?\"\n\nDo not ask more than one clarifying question at a time.\n\n### 1.3 Resolve page names to dimension values\n\nFor page-based steps, call `searchDimensionItems` to find the exact dimension\nvalues that match the step name. First call `findDimensions` with a semantic\nsearch like `\"page name url\"` to confirm the correct dimension ID — in most\nCJA data views this is `variables/web.webPageDetails.name`, not `variables/page`:\n\n```\nsearchDimensionItems(\n dimensionId: \"variables/web.webPageDetails.name\",\n searchAnd: \"<step page name>\",\n startDate: \"<period start>\",\n endDate: \"<period end>\",\n page: 0,\n limit: 10\n)\n```\n\nPresent matches to the user if there are multiple candidates:\n> \"I found these pages matching 'checkout': /checkout/start, /checkout/payment,\n> /checkout/review. Should I use '/checkout/start' as the entry to the checkout\n> step?\"\n\n---\n\n## Phase 2 — Measure Each Step\n\nFor each funnel step, construct an ad hoc segment that filters to visitors/sessions\nthat reached that step. Then run a report measuring the base metric (usually\nUnique Visitors or Sessions) with that segment applied.\n\n### 2.1 Construct ad hoc segments for each step\n\nA \"reached step N\" ad hoc segment is:\n- Container: Visit or Person (use Visit for session-level funnels, Person for\n cross-visit journeys)\n- Condition: Page Name equals \"<step page value>\" OR Event occurred\n\n### 2.2 Run reports for each step\n\nRun one `runReport` per step with the ad hoc segment applied. The `adhocSegments`\nparameter takes fully-formed CJA segment definition objects — NOT a simplified\nshorthand. The correct structure is:\n\n```\nrunReport(\n dimensionIds: \"variables/web.webPageDetails.name\",\n metricIds: \"metrics/visitors\",\n startDate: \"<period start>\",\n endDate: \"<period end>\",\n page: 0,\n limit: 1,\n adhocSegments: [{\n \"func\": \"segment\",\n \"version\": [1, 0, 0],\n \"container\": {\n \"func\": \"container\",\n \"context\": \"visitors\",\n \"pred\": {\n \"func\": \"streq\",\n \"val\": { \"func\": \"attr\", \"name\": \"variables/web.webPageDetails.name\" },\n \"str\": \"<step page value>\"\n }\n }\n }]\n)\n```\n\nUse `context: \"visitors\"` (person-level) for cross-visit funnels. Use\n`context: \"visits\"` (session-level) for within-session funnels. The metric\nvalue comes from `summaryData.filteredTotals[0]` in the response.\n\nThe dimension and value used in the predicate should match what was found via\n`searchDimensionItems` in Phase 1 — use the exact `value` string returned.\n\n**Important**: Each step uses a cumulative filter — measure \"visitors who\nEVER reached this step in the period,\" not \"visitors who ONLY visited this\npage.\" This produces the classic funnel waterfall.\n\nCapture `stepCount[i]` for each step i from 1 to N.\n\n---\n\n## Phase 3 — Compute Funnel Metrics\n\nFor each step-to-step transition:\n- `stepConversionRate[i→i+1]` = stepCount[i+1] / stepCount[i] × 100\n- `dropOff[i→i+1]` = stepCount[i] − stepCount[i+1]\n- `dropOffRate[i→i+1]` = 100 − stepConversionRate[i→i+1]\n\nOverall funnel:\n- `overallConversionRate` = stepCount[N] / stepCount[1] × 100\n- `biggestDropOffStep` = argmax(dropOff[i→i+1]) — the step with the most\n visitors lost\n\n---\n\n## Phase 4 — Optional: Segment the Funnel\n\nIf the user wants to compare funnel performance across audiences or channels,\nrun the same step reports filtered by a dimension or segment:\n\n```\nrunReport(\n dimensionIds: \"variables/device_type\",\n metricIds: \"metrics/visitors\",\n startDate: \"<range start>\",\n endDate: \"<range end>\",\n page: 0,\n limit: 10,\n adhocSegments: [{ /* step N filter — same structure as Phase 2 */ }]\n)\n```\n\nNote: use `findDimensions` with `searchQuery: \"device type mobile desktop\"` to\nconfirm the device dimension ID for the data view (often `variables/device_type`).\n\nThis shows step-N visitor counts broken down by device type (or channel,\nor country). If one segment has a dramatically lower conversion through the\nworst step, that's the target for optimization.\n\nCommon comparisons to suggest:\n- Device type (mobile vs desktop conversion often differs significantly)\n- Marketing channel (paid vs organic users may convert differently)\n- New vs returning visitors\n\n---\n\n## Phase 5 — Generate HTML Funnel Report\n\nGenerate the funnel report inline and write to\n`/tmp/cja_funnel_health_check_report_<YYYY-MM-DD_HHMMSS>.html`.\n\n\n### HTML Template\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<title>Funnel Health Check — {ORG_NAME} — {FUNNEL_NAME}</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap\" rel=\"stylesheet\">\n<script src=\"https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js\"></script>\n<style>\n * { box-sizing: border-box; margin: 0; padding: 0; }\n :root {\n --bg: #f5f4f1;\n --surface: #ffffff;\n --ink: #1a1a1a;\n --ink-muted: #6b6b6b;\n --border: #e5e2dc;\n --header-bg: #0e0e10;\n --header-warm: #3a1010;\n --accent-red: #c8312f;\n --accent-red-bright: #ff6b68;\n --accent-red-soft: #fdecea;\n --accent-green: #1f7a4d;\n --accent-yellow: #d4a017;\n }\n body { font-family: \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n background: var(--bg); color: var(--ink); line-height: 1.5;\n -webkit-font-smoothing: antialiased; }\n\n /* === Header === */\n header { background: linear-gradient(120deg, var(--header-bg) 0%, #1a0d0d 55%, var(--header-warm) 100%);\n color: #fff; padding: 56px 56px 44px; position: relative; overflow: hidden; }\n header::after { content: \"\"; position: absolute; right: -140px; top: -140px;\n width: 460px; height: 460px;\n background: radial-gradient(circle, rgba(200,49,47,.35) 0%, transparent 70%);\n pointer-events: none; }\n .header-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }\n .eyebrow { display: inline-flex; align-items: center; gap: 8px;\n padding: 6px 14px; border: 1px solid rgba(255,107,104,.55);\n border-radius: 999px; color: var(--accent-red-bright);\n font-size: 11px; font-weight: 600; letter-spacing: 1.2px;\n text-transform: uppercase; margin-bottom: 24px;\n background: rgba(200,49,47,.10); }\n .eyebrow::before { content: \"\"; width: 6px; height: 6px;\n background: var(--accent-red-bright); border-radius: 50%; }\n header h1 { font-family: \"Playfair Display\", Georgia, serif;\n font-size: 56px; font-weight: 700; letter-spacing: -1.5px;\n line-height: 1.05; margin-bottom: 14px; color: #fff; }\n header .lede { font-size: 16px; max-width: 560px;\n color: rgba(255,255,255,.80); margin-bottom: 24px;\n line-height: 1.55; }\n header .meta { display: flex; flex-wrap: wrap; gap: 22px;\n font-size: 13px; color: rgba(255,255,255,.60); }\n header .meta span { display: inline-flex; align-items: center; gap: 6px; }\n header .meta .icon { opacity: .8; }\n\n /* === Tabs === */\n nav { background: var(--surface); border-bottom: 1px solid var(--border);\n padding: 0 56px; display: flex; gap: 28px;\n position: sticky; top: 0; z-index: 50; }\n nav a { display: block; padding: 16px 0; font-size: 14px;\n color: var(--ink); text-decoration: none;\n border-bottom: 2px solid transparent;\n transition: border-color .15s ease; }\n nav a:hover { border-bottom-color: var(--accent-red); }\n\n /* === Container === */\n .container { max-width: 1080px; margin: 0 auto; padding: 36px 56px 60px; }\n\n /* === Section label === */\n .section-label { font-size: 11px; font-weight: 700;\n text-transform: uppercase; letter-spacing: 1.4px;\n color: var(--ink-muted); margin-bottom: 14px;\n padding-bottom: 10px; border-bottom: 1px solid var(--border); }\n\n /* === KPI grid === */\n .kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 14px; margin-bottom: 36px; }\n .kpi-tile { background: var(--surface); border-radius: 8px;\n padding: 22px 22px 20px;\n border-top: 3px solid #b9b6ae;\n box-shadow: 0 1px 3px rgba(0,0,0,.05); }\n .kpi-tile.down { border-top-color: var(--accent-red); }\n .kpi-tile.up { border-top-color: var(--accent-green); }\n .kpi-tile.flat { border-top-color: #b9b6ae; }\n .kpi-head { display: flex; justify-content: space-between;\n align-items: center; margin-bottom: 10px; }\n .kpi-label { font-size: 11px; font-weight: 700;\n text-transform: uppercase;\n color: var(--ink-muted); letter-spacing: 1px; }\n .kpi-value { font-family: \"Playfair Display\", Georgia, serif;\n font-weight: 700; font-size: 38px;\n line-height: 1; color: var(--ink);\n margin-bottom: 12px; }\n .pill { display: inline-flex; align-items: center; gap: 4px;\n padding: 3px 9px; border-radius: 4px;\n font-size: 12px; font-weight: 600; line-height: 1.4; }\n .pill.down { background: var(--accent-red-soft); color: var(--accent-red); }\n .pill.up { background: #ebf5ef; color: var(--accent-green); }\n .pill.flat { background: #f1efea; color: var(--ink-muted); }\n .prior { display: block; margin-top: 10px;\n font-size: 12px; color: var(--ink-muted); }\n\n /* === Funnel chart wrap === */\n .chart-wrap { background: var(--surface); border-radius: 8px;\n padding: 28px 32px;\n box-shadow: 0 1px 3px rgba(0,0,0,.04);\n margin-bottom: 22px; }\n .chart-wrap h2 { font-family: \"Playfair Display\", Georgia, serif;\n font-size: 18px; font-weight: 700;\n margin-bottom: 18px;\n padding-bottom: 12px;\n border-bottom: 1px solid var(--border); }\n\n /* === Sections (collapsible tables) === */\n .section { background: var(--surface); border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0,0,0,.04);\n margin-bottom: 22px; overflow: hidden; }\n .section-header { padding: 18px 28px; border-bottom: 1px solid var(--border);\n display: flex; justify-content: space-between;\n align-items: center; cursor: pointer; }\n .section-header h2 { font-family: \"Playfair Display\", Georgia, serif;\n font-size: 18px; font-weight: 700; }\n table { width: 100%; border-collapse: collapse; font-size: 13px; }\n thead th { background: #faf8f4; padding: 12px 22px;\n text-align: left; font-weight: 600;\n text-transform: uppercase; letter-spacing: .6px;\n font-size: 11px; color: var(--ink-muted);\n border-bottom: 1px solid var(--border); }\n tbody td { padding: 12px 22px; border-bottom: 1px solid #f4f1eb; }\n tbody tr:last-child td { border-bottom: none; }\n\n .badge { display: inline-block; padding: 3px 9px; border-radius: 4px;\n font-size: 11px; font-weight: 600; }\n .badge.green { background: #ebf5ef; color: var(--accent-green); }\n .badge.red { background: var(--accent-red-soft); color: var(--accent-red); }\n .badge.yellow { background: #fef6e3; color: #b67a08; }\n .badge.grey { background: #f1efea; color: var(--ink-muted); }\n\n .highlight-row td { background: var(--accent-red-soft) !important;\n font-weight: 700; }\n .progress-bar-wrap { background: #f1efea; border-radius: 4px;\n height: 8px; overflow: hidden;\n width: 100%; min-width: 80px; }\n .progress-bar { height: 100%; border-radius: 4px;\n background: linear-gradient(90deg, var(--accent-red), #8a1d1c); }\n\n .rec-item { display: flex; gap: 12px; align-items: flex-start;\n padding: 14px 28px; border-bottom: 1px solid #f1eeea;\n font-size: 14px; line-height: 1.55; }\n .rec-item:last-child { border-bottom: none; }\n\n .back-top { position: fixed; bottom: 24px; right: 24px;\n background: var(--accent-red); color: #fff;\n width: 44px; height: 44px; border-radius: 50%;\n border: none; font-size: 20px; cursor: pointer;\n box-shadow: 0 4px 12px rgba(200,49,47,0.30); }\n footer { text-align: center; padding: 32px 24px;\n font-size: 12px; color: var(--ink-muted); }\n\n /* === Print === */\n @media print {\n nav { display: none; position: static; }\n header { padding: 36px 32px 28px; }\n header h1 { font-size: 42px; }\n .section-header { cursor: default; }\n .kpi-row { page-break-inside: avoid; }\n .kpi-tile, .chart-wrap, .section {\n box-shadow: none; border: 1px solid var(--border);\n }\n .back-top { display: none; }\n }\n</style>\n</head>\n<body>\n\n<header>\n <div class=\"header-inner\">\n <div class=\"eyebrow\">Funnel Health Report</div>\n <h1>{ORG_NAME} Funnel Health</h1>\n <p class=\"lede\">Step-by-step conversion for the {FUNNEL_NAME} journey across {DATE_RANGE}, with the biggest leakage point surfaced.</p>\n <div class=\"meta\">\n <span><span class=\"icon\">📅</span> {DATE_RANGE}</span>\n <span><span class=\"icon\">📊</span> {DATA_VIEW}</span>\n <span><span class=\"icon\">🕔</span> Prepared {GENERATED_DATE}</span>\n </div>\n </div>\n</header>\n\n<nav>\n <a href=\"#overview\">Overview</a>\n <a href=\"#chart\">Funnel Chart</a>\n <a href=\"#steps\">Step Detail</a>\n <a href=\"#segments\">Segment Breakdown</a>\n <a href=\"#recs\">Recommendations</a>\n</nav>\n\n<div class=\"container\">\n\n <!-- Summary KPI Tiles -->\n <div class=\"section-label\">Funnel Summary</div>\n <div id=\"overview\" class=\"kpi-row\">\n <div class=\"kpi-tile flat\">\n <div class=\"kpi-head\"><div class=\"kpi-label\">Entered Funnel</div></div>\n <div class=\"kpi-value\">{STEP_1_COUNT}</div>\n <span class=\"prior\">Step 1 visitors</span>\n </div>\n <div class=\"kpi-tile flat\">\n <div class=\"kpi-head\"><div class=\"kpi-label\">Completed Funnel</div></div>\n <div class=\"kpi-value\">{STEP_N_COUNT}</div>\n <span class=\"prior\">Reached final step</span>\n </div>\n <div class=\"kpi-tile flat\">\n <div class=\"kpi-head\"><div class=\"kpi-label\">Overall Conversion</div></div>\n <div class=\"kpi-value\">{OVERALL_CVR}%</div>\n <span class=\"prior\">End-to-end rate</span>\n </div>\n <div class=\"kpi-tile down\">\n <div class=\"kpi-head\"><div class=\"kpi-label\">Biggest Drop-Off Step</div></div>\n <div class=\"kpi-value\" style=\"font-size:22px;\">{WORST_STEP_NAME}</div>\n <span class=\"pill down\">▼ Worst leakage</span>\n </div>\n <div class=\"kpi-tile down\">\n <div class=\"kpi-head\"><div class=\"kpi-label\">Worst Step Drop-Off</div></div>\n <div class=\"kpi-value\">{WORST_STEP_DROPOFF}%</div>\n <span class=\"prior\">Of visitors lost at this step</span>\n </div>\n </div>\n\n <!-- Funnel Bar Chart -->\n <div id=\"chart\" class=\"chart-wrap\">\n <h2>Funnel Visualization</h2>\n <canvas id=\"funnelChart\" height=\"100\"></canvas>\n </div>\n\n <!-- Step-by-Step Table -->\n <div id=\"steps\" class=\"section\">\n <div class=\"section-header\" onclick=\"toggle('steps-body')\">\n <h2>Step-by-Step Analysis</h2>\n <span id=\"steps-body-icon\">▾</span>\n </div>\n <div id=\"steps-body\">\n <table>\n <thead><tr>\n <th>Step</th>\n <th>Visitors</th>\n <th>% of Step 1</th>\n <th>Step Conversion</th>\n <th>Drop-Off</th>\n <th>Drop-Off Rate</th>\n <th>Visual</th>\n </tr></thead>\n <tbody>\n <!-- For each step i:\n <tr class=\"{highlight-row if worst step}\">\n <td>{STEP_NAME}</td>\n <td>{STEP_COUNT}</td>\n <td>{PCT_OF_STEP_1}%</td>\n <td>{STEP_CVR}% {badge}</td>\n <td>{DROPOFF}</td>\n <td>{DROPOFF_RATE}%</td>\n <td>\n <div class=\"progress-bar-wrap\">\n <div class=\"progress-bar\" style=\"width:{PCT_OF_STEP_1}%\"></div>\n </div>\n </td>\n </tr>\n -->\n </tbody>\n </table>\n </div>\n </div>\n\n <!-- Segment Breakdown (optional) -->\n <div id=\"segments\" class=\"section\">\n <div class=\"section-header\" onclick=\"toggle('seg-body')\">\n <h2>Segment Breakdown at Worst Step</h2>\n <span id=\"seg-body-icon\">▾</span>\n </div>\n <div id=\"seg-body\">\n <table>\n <thead><tr>\n <th>Segment / Dimension</th>\n <th>Entered Worst Step</th>\n <th>Passed Worst Step</th>\n <th>Conversion</th>\n <th>vs. Average</th>\n </tr></thead>\n <tbody>\n <!-- Fill with dimension breakdown at the worst step -->\n </tbody>\n </table>\n </div>\n </div>\n\n <!-- Recommendations -->\n <div id=\"recs\" class=\"section\">\n <div class=\"section-header\" onclick=\"toggle('rec-body')\">\n <h2>Optimization Recommendations</h2>\n <span id=\"rec-body-icon\">▾</span>\n </div>\n <div id=\"rec-body\">\n <!-- 2-3 recommendation items as .rec-item -->\n </div>\n </div>\n\n</div>\n\n<button class=\"back-top\" onclick=\"window.scrollTo({top:0,behavior:'smooth'})\">↑</button>\n<footer>Funnel Health Check — {ORG_NAME} — Generated {GENERATED_DATE}</footer>\n\n<script>\n// Funnel bar chart — recolor via design tokens.\n// Stage colors fade from accent-red (worst leakage upstream) to a deeper red downstream.\nconst ctx = document.getElementById('funnelChart').getContext('2d');\nnew Chart(ctx, {\n type: 'bar',\n data: {\n labels: {STEP_NAMES_JSON},\n datasets: [{\n label: 'Visitors',\n data: {STEP_COUNTS_JSON},\n backgroundColor: [\n 'rgba(200,49,47,0.90)',\n 'rgba(200,49,47,0.72)',\n 'rgba(200,49,47,0.54)',\n 'rgba(200,49,47,0.38)',\n 'rgba(200,49,47,0.22)'\n ],\n borderRadius: 6\n }]\n },\n options: {\n responsive: true,\n plugins: { legend: { display: false } },\n scales: {\n y: { beginAtZero: true, grid: { color: '#eee9df' },\n ticks: { color: '#6b6b6b' } },\n x: { grid: { display: false },\n ticks: { color: '#1a1a1a', font: { weight: '600' } } }\n }\n }\n});\n\nfunction toggle(id) {\n var el = document.getElementById(id);\n var ic = document.getElementById(id + '-icon');\n if (el.style.display === 'none') { el.style.display=''; ic.textContent='\\u25be'; }\n else { el.style.display='none'; ic.textContent='\\u25b8'; }\n}\n</script>\n</body></html>\n```\n\n---\n\n## Workflow Summary\n\n1. Parse funnel steps from user description.\n2. Clarify any ambiguous steps (one question at a time).\n3. Resolve page names with `searchDimensionItems`.\n4. Run one `runReport` per step with ad hoc segment filter; capture visitor counts.\n5. Compute step conversion rates, drop-off counts, and rates.\n6. Identify the biggest drop-off step.\n7. Optionally run dimension breakdown at the worst step.\n8. Generate HTML report with Chart.js funnel visualization.\n9. Write to `/tmp/cja_funnel_health_check_report_<YYYY-MM-DD_HHMMSS>.html`.\n10. Open with `open /tmp/cja_funnel_health_check_report_<YYYY-MM-DD_HHMMSS>.html`.\n11. Summarize inline: \"Overall conversion: X%. Biggest drop-off at [Step N]:\n Y% of users abandon. Mobile users drop off at a 2× higher rate than desktop.\"\n\n---\n\n## Important Guardrails\n\n- **Read-only analysis.** Never modify segments, calculated metrics, or project definitions automatically.\n- **Confirm funnel stages before running.** Ambiguous stage definitions produce misleading results — clarify with the user first.\n- **Note attribution model.** Funnel conversion rates depend on the attribution model in the data view; mention it in the report.\n- **Flag incomplete data.** If any stage returns zero or suspiciously low counts, note possible tracking gaps before drawing conclusions.\n- **Cap date range.** Funnel analysis over very long date ranges (>90 days) can be slow; suggest 30-day windows as default.\n- **Never assume stage order.** Confirm with the user that the stages are sequential and mutually exclusive before calculating drop-off rates.\n\n## Example Interaction\n\n> \"Check the health of our checkout funnel — I want to see where people are dropping off.\"\n\n1. **Setup:** Call `findDataViews`, user selects their e-commerce data view. Call `setDefaultSessionDataViewId`.\n2. **Define funnel:** Ask \"What are the checkout stages?\" User replies: \"Product View → Add to Cart → Checkout Start → Purchase.\"\n3. **Analysis:** Run `runReport` for each stage transition over the last 30 days. Calculate drop-off rates: Product View→Cart 22%, Cart→Checkout 58%, Checkout→Purchase 71%.\n4. **Findings:** Identify the Cart→Checkout step as the highest drop-off (78% fall off). Segment by device type to find mobile conversion is 40% lower than desktop.\n5. **Report:** Present a funnel visualization with drop-off rates per stage, top exit segments, and 3 prioritized recommendations.\n\n## Recommendations Logic\n\n- **Worst step drop-off > 60%**: \"Critical leakage — this step is broken or\n the user expectation is misaligned. Prioritize UX investigation.\"\n- **Mobile drop-off > 2× desktop**: \"Mobile UX at this step needs attention —\n consider a dedicated mobile flow or simplified form.\"\n- **Specific channel drop-off > 40% worse than average**: \"Users from this\n channel may have mismatched intent — review landing page alignment.\"\n- **Step 1 count < 1,000**: \"Funnel entry volume is too low for statistical\n confidence. Check the step definition or expand the date range.\"\n"
}SHA-256: 8d1d19d565d0bc93762f12205fe6e0434640fe32634ba33ac1bc17a473a71bdc