elahe-dashboards/dashboards/experience-matrix.html

215 lines
19 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<title>ماتریس انتقال دسته‌ها و تحلیل LTV لاین تجربه | اکیپا</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css" rel="stylesheet" type="text/css" />
<style>
body { font-family: 'Vazirmatn', sans-serif; }
.tnum { font-feature-settings: "tnum"; }
.info-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: rgba(147, 51, 234, 0.2); color: #c084fc; font-size: 0.75rem; border: 1px solid rgba(168, 85, 247, 0.4); }
</style>
</head>
<body class="bg-slate-900 text-slate-100 min-h-screen p-6 md:p-10">
<div class="max-w-6xl mx-auto space-y-8">
<!-- Executive Header -->
<div class="bg-slate-800/80 border border-slate-700/80 rounded-2xl p-6 shadow-xl flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
<div>
<div class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-purple-500/10 border border-purple-500/30 text-purple-400 text-xs font-semibold mb-2">
<span>تحلیل استراتژیک ریتنشن و سفر مشتری</span>
<span class="info-btn" title="نحوه محاسبه: استخراج تمامی ۲۲۷ کاربری که در ۸ ماهه نخست ۱۴۰۵ حداقل ۲ خرید موفق تجربه داشته‌اند.">i</span>
</div>
<h1 class="text-2xl md:text-3xl font-extrabold text-white tracking-tight">ماتریس جابه‌جایی دسته‌ها (Transition Matrix) و مسیرهای طلایی LTV</h1>
<p class="text-sm text-slate-400 mt-1">بررسی رفتار ۲۲۷ کاربر بازگشتی در ۸ ماهه اول ۱۴۰۵ در لاین تجربه اکیپا</p>
</div>
<div class="text-left bg-slate-900/60 border border-slate-700/50 px-4 py-2.5 rounded-xl">
<span class="text-xs text-purple-300 font-medium block">امضای مدیریت: الهه فلاحی</span>
<span class="text-[11px] text-slate-400">Head of Growth & Operations</span>
</div>
</div>
<!-- Heatmap Table -->
<div class="bg-slate-800/60 border border-slate-700/60 rounded-2xl p-6 shadow-xl overflow-x-auto">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-bold text-white flex items-center gap-2">
<span>🔥 جدول حرارتی جابه‌جایی دسته‌ها در خرید دوم (درصد انتقال)</span>
<span class="info-btn" title="نحوه محاسبه درصد: تعداد کاربران منتقل‌شده به هر دسته خرید دوم تقسیم بر مجموع خریداران ورودی دسته خرید اول.">i</span>
</h2>
<div class="flex items-center gap-2 text-xs text-slate-400">
<span class="inline-block w-3 h-3 rounded bg-purple-600"></span> چسبندگی بالا (>40%)
<span class="inline-block w-3 h-3 rounded bg-purple-900/60 border border-purple-500/30"></span> انتقال متوسط (15-40%)
<span class="inline-block w-3 h-3 rounded bg-slate-800"></span> پراکندگی (<15%)
</div>
</div>
<table class="w-full text-center border-collapse text-xs md:text-sm">
<thead>
<tr class="border-b border-slate-700 text-slate-300 font-semibold bg-slate-900/40">
<th class="p-3 text-right">دسته خرید اول ↓ / خرید دوم →</th>
<th class="p-3">سفالگری</th>
<th class="p-3">آشپزی</th>
<th class="p-3">نقاشی</th>
<th class="p-3">توسعه فردی</th>
<th class="p-3">چوب‌تراشی</th>
<th class="p-3">شمع و صابون</th>
<th class="p-3">عطرسازی</th>
<th class="p-3">سایر</th>
<th class="p-3 bg-purple-950/40 text-purple-300">مجموع</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-800">
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">سفالگری و سرامیک</td>
<td class="p-3 bg-purple-600 text-white font-black tnum">61.3%<div class="text-[10px] opacity-70">(57 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">7.5%<div class="text-[10px] opacity-70">(7 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">6.5%<div class="text-[10px] opacity-70">(6 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">2.2%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">5.4%<div class="text-[10px] opacity-70">(5 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">7.5%<div class="text-[10px] opacity-70">(7 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">1.1%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">8.6%<div class="text-[10px] opacity-70">(8 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">93 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">آشپزی و شیرینی</td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">2.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-purple-600 text-white font-black tnum">69.4%<div class="text-[10px] opacity-70">(25 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">8.3%<div class="text-[10px] opacity-70">(3 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">2.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">2.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">2.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">2.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">8.3%<div class="text-[10px] opacity-70">(3 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">36 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">نقاشی و تجسمی</td>
<td class="p-3 bg-purple-900/60 text-purple-200 font-medium tnum">22.7%<div class="text-[10px] opacity-70">(5 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">4.5%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-purple-700/80 text-purple-100 font-bold tnum">36.4%<div class="text-[10px] opacity-70">(8 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">4.5%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">4.5%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-purple-900/60 text-purple-200 font-medium tnum">27.3%<div class="text-[10px] opacity-70">(6 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">22 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">توسعه فردی</td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">5.0%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">5.0%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">5.0%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-purple-600 text-white font-black tnum">60.0%<div class="text-[10px] opacity-70">(12 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">10.0%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">5.0%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">10.0%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">20 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">چوب‌تراشی و نجاری</td>
<td class="p-3 bg-purple-700/80 text-purple-100 font-bold tnum">30.8%<div class="text-[10px] opacity-70">(4 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-purple-900/60 text-purple-200 font-medium tnum">23.1%<div class="text-[10px] opacity-70">(3 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-purple-700/80 text-purple-100 font-bold tnum">38.5%<div class="text-[10px] opacity-70">(5 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">7.7%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">13 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">شمع‌سازی و صابون</td>
<td class="p-3 bg-purple-900/60 text-purple-200 font-medium tnum">15.4%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">7.7%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">7.7%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">7.7%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-purple-900/60 text-purple-200 font-medium tnum">23.1%<div class="text-[10px] opacity-70">(3 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-purple-700/80 text-purple-100 font-bold tnum">38.5%<div class="text-[10px] opacity-70">(5 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">13 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">عطرسازی</td>
<td class="p-3 bg-purple-700/80 text-purple-100 font-bold tnum">44.4%<div class="text-[10px] opacity-70">(4 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">11.1%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">11.1%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">11.1%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">11.1%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">11.1%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">9 نفر</td>
</tr>
<tr class="hover:bg-slate-700/30 transition">
<td class="p-3 text-right font-bold text-slate-200 bg-slate-900/20">سایر تجربیات</td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">9.5%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">9.5%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">14.3%<div class="text-[10px] opacity-70">(3 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">9.5%<div class="text-[10px] opacity-70">(2 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">4.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-800/80 text-slate-200 tnum">4.8%<div class="text-[10px] opacity-70">(1 نفر)</div></td>
<td class="p-3 bg-slate-900/40 text-slate-400 tnum">0.0%<div class="text-[10px] opacity-70">(0 نفر)</div></td>
<td class="p-3 bg-purple-700/80 text-purple-100 font-bold tnum">47.6%<div class="text-[10px] opacity-70">(10 نفر)</div></td>
<td class="p-3 font-extrabold text-purple-300 bg-purple-950/20 tnum">21 نفر</td>
</tr>
</tbody>
</table>
</div>
<!-- Top LTV Golden Paths Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-gradient-to-br from-purple-900/40 to-slate-800 border border-purple-500/30 rounded-2xl p-6 shadow-xl space-y-3">
<div class="flex items-center justify-between">
<span class="px-2.5 py-1 rounded-lg bg-emerald-500/20 text-emerald-300 text-xs font-bold">بزرگ‌ترین حجم پولی (GMV)</span>
<span class="info-btn" title="نحوه محاسبه: جمع ارزش تراکنش‌های فاکتور ۱ و ۲ برای تمامی کاربرانی که زنجیره آشپزی -> آشپزی را طی کرده‌اند.">i</span>
</div>
<h3 class="text-lg font-black text-white">آشپزی ⬅️ آشپزی</h3>
<div class="space-y-1 text-sm text-slate-300 tnum">
<p>• درآمد کل: <strong class="text-white">۱۰۸,۸۰۵,۰۰۰ تومان</strong></p>
<p>• ارزش طول عمر مشتری (LTV): <strong class="text-emerald-400">۴,۳۵۲,۰۰۰ تومان</strong></p>
<p>• تعداد تبدیل: <strong>۲۵ خریدار (۶۹.۴٪ تکرار درون‌دسته‌ای)</strong></p>
</div>
<p class="text-xs text-slate-400 pt-2 border-t border-slate-700/60 leading-relaxed">ورکشاپ‌های غذای ملل (سوشی، غذای کره‌ای، نودل دست‌ساز) بالاترین حجم فروش تکراری را در کل پلتفرم می‌سازند.</p>
</div>
<div class="bg-gradient-to-br from-purple-900/40 to-slate-800 border border-purple-500/30 rounded-2xl p-6 shadow-xl space-y-3">
<div class="flex items-center justify-between">
<span class="px-2.5 py-1 rounded-lg bg-blue-500/20 text-blue-300 text-xs font-bold">بیشترین حجم خریدار (Volume)</span>
<span class="info-btn" title="نحوه محاسبه: جمع فاکتورهای ۱ و ۲ برای کاربرانی که پس از خرید اول سفالگری، مجددا کارگاه سفالگری و سرامیک رزرو کرده‌اند.">i</span>
</div>
<h3 class="text-lg font-black text-white">سفالگری ⬅️ سفالگری</h3>
<div class="space-y-1 text-sm text-slate-300 tnum">
<p>• درآمد کل: <strong class="text-white">۱۰۶,۴۷۴,۰۰۰ تومان</strong></p>
<p>• ارزش طول عمر مشتری (LTV): <strong class="text-blue-400">۱,۸۶۷,۰۰۰ تومان</strong></p>
<p>• تعداد تبدیل: <strong>۵۷ خریدار (۶۱.۳٪ تکرار درون‌دسته‌ای)</strong></p>
</div>
<p class="text-xs text-slate-400 pt-2 border-t border-slate-700/60 leading-relaxed">بزرگ‌ترین زنجیره ارگانیک اکیپا؛ کاربران پس از تست چرخ سفالگری، مجدداً دوره دست‌ساز، ماگ یا کارگاه لعاب را برمی‌دارند.</p>
</div>
<div class="bg-gradient-to-br from-purple-900/40 to-slate-800 border border-purple-500/30 rounded-2xl p-6 shadow-xl space-y-3">
<div class="flex items-center justify-between">
<span class="px-2.5 py-1 rounded-lg bg-amber-500/20 text-amber-300 text-xs font-bold">بالاترین میانگین ارزش فاکتور (Ticket)</span>
<span class="info-btn" title="نحوه محاسبه: میانگین مجموع ارزش خرید اول و دوم برای کاربران با ورودی عطرسازی که در گام بعد سفالگری را خریده‌اند.">i</span>
</div>
<h3 class="text-lg font-black text-white">عطرسازی ⬅️ سفالگری</h3>
<div class="space-y-1 text-sm text-slate-300 tnum">
<p>• میانگین LTV کاربر: <strong class="text-amber-300">۵,۴۸۲,۵۰۰ تومان</strong></p>
<p>• درآمد کل زنجیره: <strong class="text-white">۲۱,۹۳۰,۰۰۰ تومان</strong></p>
<p>• نرخ کراس‌کتگوری: <strong>۴۴.۴٪ از خریداران عطر به سفال می‌آیند</strong></p>
</div>
<p class="text-xs text-slate-400 pt-2 border-t border-slate-700/60 leading-relaxed">لوکس‌ترین مسیر خرید؛ خریداران عطر مدرسه نیک قدرت خرید بالایی دارند و در گام بعد بسته‌های دونفره سفالگری را انتخاب می‌کنند.</p>
</div>
</div>
<!-- Data Provenance Card -->
<div class="bg-slate-800/40 border border-slate-700/40 rounded-xl p-4 text-xs text-slate-400 flex flex-col md:flex-row justify-between items-center gap-2">
<div>🟢 <strong>شناسنامه اصالت داده (LIVE):</strong> کوئری مستقیم روی جدول <code class="text-purple-300">public.v_hamed</code> دیتابیس متابیس اکیپا | بازه: فروردین تا ۲۸ آبان ۱۴۰۵</div>
<div>اتاق تستی با شناسه <code>roomid = 1033612</code> به طور کامل از محاسبات حذف شده است.</div>
</div>
</div>
</body>
</html>