การวิเคราะห์ข้อมูลแอป
Stripe มีระบบวิเคราะห์ข้อมูลในตัวสำหรับแอปที่เผยแพร่บน marketplace ทำให้คุณมองเห็นยอดติดตั้ง ประสิทธิภาพของหน้ารายการแอป และการมีส่วนร่วมของผู้ใช้ นอกจากนี้คุณยังสร้างระบบวิเคราะห์ข้อมูลของคุณเองได้ด้วย Webhook และ Stripe API
รายงานที่ใช้ได้
Stripe Dashboard มีข้อมูลวิเคราะห์ต่อไปนี้สำหรับแอปที่คุณเผยแพร่แล้ว
เมตริกการติดตั้ง
| เมตริก | คำอธิบาย |
|---|---|
| ยอดติดตั้ง | จำนวนการติดตั้งแอปใหม่ทั้งหมดในช่วงเวลาที่เลือก |
| ยอดถอนการติดตั้ง | จำนวนการถอนการติดตั้งแอปทั้งหมดในช่วงเวลาที่เลือก |
| ยอดติดตั้งสุทธิสะสม | ยอดรวมสะสมของการติดตั้งหักด้วยการถอนการติดตั้งตลอดช่วงเวลา |
ประสิทธิภาพของหน้ารายการแอป
| เมตริก | คำอธิบาย |
|---|---|
| ยอดเข้าชมหน้ารายการ | จำนวนการเข้าชมหน้ารายการแอปของคุณบน marketplace ทั้งหมด |
| ยอดเข้าชมที่ไม่ซ้ำ | ผู้เข้าชมที่ไม่ซ้ำกันซึ่งเปิดดูหน้ารายการแอปของคุณบน marketplace |
| อัตราการแปลงแบบเดือนต่อเดือน | เปอร์เซ็นต์แบบเดือนต่อเดือนของผู้เข้าชมหน้ารายการที่ติดตั้งแอป |
เมตริกการเติบโต
| เมตริก | คำอธิบาย |
|---|---|
| อัตราการเติบโตแบบเดือนต่อเดือน | การเติบโตของยอดติดตั้งสุทธิแบบเดือนต่อเดือน |
| อัตราการเลิกใช้ | เปอร์เซ็นต์ของผู้ใช้ที่ติดตั้งแล้วถอนการติดตั้งในแต่ละเดือน |
ความสดใหม่ของข้อมูล
Caution
ข้อมูลวิเคราะห์มีความล่าช้า 48 ชั่วโมง ข้อมูลที่คุณเห็นในแดชบอร์ดสะท้อนกิจกรรมของประมาณสองวันก่อนหน้า วางแผนช่วงเวลาการทำรายงานของคุณให้สอดคล้องกัน
- ข้อมูลอัปเดตทุกวันโดยมีความล่าช้าในการประมวลผล 48 ชั่วโมง
- ข้อมูลย้อนหลังมีให้ตั้งแต่วันที่แอปของคุณเผยแพร่ครั้งแรก
- เมตริกคำนวณตามโซนเวลา UTC
- ส่งออกข้อมูลเป็น CSV จาก Stripe Dashboard เพื่อนำไปวิเคราะห์ภายนอก
การเข้าถึงข้อมูลวิเคราะห์ผ่าน API
คุณเข้าถึงข้อมูลวิเคราะห์ของแอปแบบอัตโนมัติได้ด้วย Stripe Reporting API
ข้อมูลการติดตั้ง
# Fetch app install reportcurl https://api.stripe.com/v1/reporting/report_runs \ -u sk_live_xxxxx: \ -d "report_type=app.installs.daily" \ -d "parameters[interval_start]=1709251200" \ -d "parameters[interval_end]=1711929600" \ -d "parameters[app_id]=com.tajo.brevo-integration"ยอดเข้าชมหน้ารายการ
# Fetch listing views reportcurl https://api.stripe.com/v1/reporting/report_runs \ -u sk_live_xxxxx: \ -d "report_type=app.listing_views.daily" \ -d "parameters[interval_start]=1709251200" \ -d "parameters[interval_end]=1711929600" \ -d "parameters[app_id]=com.tajo.brevo-integration"การเข้าถึงผ่านโค้ด (Node.js)
const stripe = require('stripe')('sk_live_xxxxx');
// Create a report run for app installsconst reportRun = await stripe.reporting.reportRuns.create({ report_type: 'app.installs.daily', parameters: { interval_start: Math.floor(new Date('2025-03-01').getTime() / 1000), interval_end: Math.floor(new Date('2025-03-31').getTime() / 1000), app_id: 'com.tajo.brevo-integration', },});
// Poll for report completionconst checkReport = async (reportId) => { const report = await stripe.reporting.reportRuns.retrieve(reportId);
if (report.status === 'succeeded') { // Download the report file const file = await stripe.files.retrieve(report.result.id); console.log('Report URL:', file.url); return file; }
if (report.status === 'failed') { throw new Error('Report generation failed'); }
// Report still processing return null;};แท็บ Users
แท็บ Users ในข้อมูลวิเคราะห์ของแอปแสดงข้อมูลระดับบัญชีรายบัญชี
| คอลัมน์ | คำอธิบาย |
|---|---|
| รหัสบัญชี | บัญชี Stripe ที่ติดตั้งแอปของคุณ |
| วันที่ติดตั้ง | เวลาที่ติดตั้งแอป |
| สถานะ | ใช้งานอยู่หรือถอนการติดตั้งแล้ว |
| วันที่ถอนการติดตั้ง | เวลาที่ถอนการติดตั้งแอป (ถ้ามี) |
ใช้ข้อมูลนี้เพื่อ
- ติดตามสถานะการเปิดใช้งานของแต่ละบัญชี
- ติดตามผลกับบัญชีที่ติดตั้งแล้วแต่ยังทำ onboarding ไม่เสร็จ
- ระบุบัญชีที่ถอนการติดตั้งและทำความเข้าใจสาเหตุของการเลิกใช้
- เชื่อมโยงข้อมูลการติดตั้งเข้ากับข้อมูลวิเคราะห์บนแพลตฟอร์มของคุณเอง
ระบบวิเคราะห์ข้อมูลของคุณเองด้วย Webhook
หากต้องการข้อมูลวิเคราะห์แบบเรียลไทม์และข้อมูลเชิงลึกที่ละเอียดขึ้น ให้ตั้งค่า Webhook เพื่อติดตามอีเวนต์ของแอป
อีเวนต์ของ Webhook
รับฟังอีเวนต์เหล่านี้เพื่อสร้างระบบวิเคราะห์ข้อมูลของคุณเอง
| อีเวนต์ | คำอธิบาย |
|---|---|
account.application.authorized | ผู้ใช้ติดตั้งแอปของคุณ |
account.application.deauthorized | ผู้ใช้ถอนการติดตั้งแอปของคุณ |
ตัวจัดการ Webhook
const express = require('express');const stripe = require('stripe')('sk_live_xxxxx');
const app = express();
app.post('/webhooks/stripe-app', express.raw({ type: 'application/json' }), async (req, res) => { const sig = req.headers['stripe-signature']; const webhookSecret = process.env.STRIPE_APP_WEBHOOK_SECRET;
let event;
try { event = stripe.webhooks.constructEvent(req.body, sig, webhookSecret); } catch (err) { console.error('Webhook signature verification failed:', err.message); return res.status(400).send('Webhook signature verification failed'); }
switch (event.type) { case 'account.application.authorized': { const account = event.data.object; console.log('App installed by:', account.id);
// Track in your analytics system await trackEvent('app_installed', { account_id: account.id, timestamp: new Date(event.created * 1000), });
// Trigger onboarding email await sendOnboardingEmail(account.id); break; }
case 'account.application.deauthorized': { const account = event.data.object; console.log('App uninstalled by:', account.id);
// Track churn await trackEvent('app_uninstalled', { account_id: account.id, timestamp: new Date(event.created * 1000), });
// Clean up account data await cleanupAccountData(account.id); break; }
default: console.log('Unhandled event type:', event.type); }
res.json({ received: true });});Connect List API
สำหรับแพลตฟอร์ม Connect ให้ใช้ Connect List API เพื่อดึงข้อมูลของบัญชีที่ติดตั้งแอปของคุณไว้
const stripe = require('stripe')('sk_live_xxxxx');
// List all connected accounts with your app installedconst getInstalledAccounts = async () => { const accounts = []; let hasMore = true; let startingAfter = null;
while (hasMore) { const params = { limit: 100 }; if (startingAfter) { params.starting_after = startingAfter; }
const response = await stripe.accounts.list(params);
for (const account of response.data) { // Check if your app is installed on this account if (account.settings?.apps?.includes('com.tajo.brevo-integration')) { accounts.push({ id: account.id, email: account.email, created: account.created, }); } }
hasMore = response.has_more; if (response.data.length > 0) { startingAfter = response.data[response.data.length - 1].id; } }
return accounts;};การสร้างแดชบอร์ดวิเคราะห์ข้อมูลของคุณเอง
รวมข้อมูลวิเคราะห์จาก Stripe เข้ากับข้อมูลของคุณเองเพื่อให้เห็นภาพรวมทั้งหมด
// Aggregate analytics for reportingconst getAppAnalytics = async (startDate, endDate) => { const [stripeInstalls, brevoSyncStats, activationData] = await Promise.all([ // Stripe install data getStripeInstallReport(startDate, endDate), // Brevo sync metrics from Tajo getBrevoSyncMetrics(startDate, endDate), // Activation funnel from your database getActivationFunnel(startDate, endDate), ]);
return { // Acquisition totalInstalls: stripeInstalls.installs, totalUninstalls: stripeInstalls.uninstalls, netInstalls: stripeInstalls.installs - stripeInstalls.uninstalls, listingConversionRate: stripeInstalls.conversionRate,
// Activation onboardingCompleted: activationData.completedOnboarding, brevoConnected: activationData.connectedBrevo, firstSyncCompleted: activationData.firstSyncCompleted, activationRate: activationData.completedOnboarding / stripeInstalls.installs,
// Engagement totalCustomersSynced: brevoSyncStats.totalCustomers, totalEventsSynced: brevoSyncStats.totalEvents, averageSyncFrequency: brevoSyncStats.avgSyncPerDay,
// Retention churnRate: stripeInstalls.uninstalls / stripeInstalls.totalActive, monthlyGrowthRate: stripeInstalls.momGrowth, };};เมตริกสำคัญที่ควรติดตาม
สำหรับการเชื่อมต่อ Tajo กับ Brevo ให้โฟกัสที่เมตริกเหล่านี้
| เมตริก | เป้าหมาย | ทำไมจึงสำคัญ |
|---|---|---|
| อัตราการติดตั้งสู่การเปิดใช้งาน | > 70% | เปอร์เซ็นต์ของผู้ติดตั้งที่ตั้งค่า Brevo จนเสร็จ |
| เวลาจนถึงการซิงค์ครั้งแรก | < 5 นาที | ผู้ใช้เห็นคุณค่าเร็วเพียงใดหลังติดตั้ง |
| อัตราการคงอยู่ 30 วัน | > 80% | เปอร์เซ็นต์ของผู้ใช้ที่ยังใช้งานอยู่หลังผ่านไป 30 วัน |
| อัตราการเลิกใช้รายเดือน | < 5% | รักษายอดถอนการติดตั้งให้ต่ำด้วยการเชื่อมต่อที่มีคุณค่า |
| อัตราการแปลงของหน้ารายการ | > 15% | เปอร์เซ็นต์ของผู้เข้าชมหน้ารายการที่ติดตั้งแอป |
| จำนวนลูกค้าที่ซิงค์ต่อบัญชี | > 100 | บ่งชี้ความลึกของการใช้งานการเชื่อมต่อ |
Tip
ตั้งค่าการแจ้งเตือนอัตโนมัติเมื่อเมตริกเปลี่ยนแปลงอย่างมีนัยสำคัญ การพุ่งขึ้นอย่างฉับพลันของยอดถอนการติดตั้งหรือการลดลงของอัตราการเปิดใช้งานอาจบ่งชี้ถึงบั๊กหรือปัญหา UX ที่ต้องแก้ไขทันที