ऐप एनालिटिक्स
Stripe पब्लिश किए गए मार्केटप्लेस ऐप के लिए बिल्ट-इन एनालिटिक्स देता है, जिससे आपको इंस्टॉल, लिस्टिंग परफ़ॉर्मेंस और यूज़र एंगेजमेंट की जानकारी मिलती है. आप वेबहुक और Stripe API का उपयोग करके कस्टम एनालिटिक्स भी बना सकते हैं.
उपलब्ध रिपोर्ट
Stripe डैशबोर्ड आपके पब्लिश किए गए ऐप के लिए ये एनालिटिक्स देता है:
इंस्टॉल मेट्रिक
| मेट्रिक | विवरण |
|---|---|
| Installs | चुनी गई अवधि में नए ऐप इंस्टॉलेशन की कुल संख्या |
| Uninstalls | चुनी गई अवधि में ऐप अनइंस्टॉल की कुल संख्या |
| Cumulative Net Installs | समय के साथ इंस्टॉल में से अनइंस्टॉल घटाकर मिला चालू कुल |
लिस्टिंग परफ़ॉर्मेंस
| मेट्रिक | विवरण |
|---|---|
| Listing Views | आपके ऐप की मार्केटप्लेस लिस्टिंग के कुल पेज व्यू |
| Unique Views | वे अलग-अलग विज़िटर जिन्होंने आपकी मार्केटप्लेस लिस्टिंग देखी |
| MoM Conversion Rate | महीने-दर-महीने उन लिस्टिंग दर्शकों का प्रतिशत जो ऐप इंस्टॉल करते हैं |
ग्रोथ मेट्रिक
| मेट्रिक | विवरण |
|---|---|
| MoM Growth Rate | नेट इंस्टॉल में महीने-दर-महीने बढ़ोतरी |
| Churn Rate | उन इंस्टॉल किए हुए यूज़र का प्रतिशत जो हर महीने अनइंस्टॉल करते हैं |
डेटा कितना ताज़ा है
Caution
एनालिटिक्स डेटा में 48 घंटे की देरी होती है. डैशबोर्ड में आपको जो डेटा दिखता है वह लगभग दो दिन पहले की गतिविधि दर्शाता है. अपनी रिपोर्टिंग अवधि इसी हिसाब से तय करें.
- डेटा हर दिन अपडेट होता है, 48 घंटे की प्रोसेसिंग देरी के साथ
- ऐतिहासिक डेटा उस तारीख़ से उपलब्ध है जब आपका ऐप पहली बार पब्लिश हुआ था
- मेट्रिक की गणना UTC टाइमज़ोन में होती है
- बाहरी विश्लेषण के लिए Stripe डैशबोर्ड से डेटा CSV के रूप में एक्सपोर्ट करें
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 टैब हर अकाउंट के स्तर का डेटा दिखाता है:
| कॉलम | विवरण |
|---|---|
| Account ID | वह Stripe अकाउंट जिसने आपका ऐप इंस्टॉल किया |
| Install Date | ऐप कब इंस्टॉल हुआ |
| Status | सक्रिय या अनइंस्टॉल किया हुआ |
| Uninstall Date | ऐप कब अनइंस्टॉल हुआ (अगर लागू हो) |
इस डेटा का उपयोग इन कामों के लिए करें:
- हर अकाउंट की एक्टिवेशन स्थिति ट्रैक करें
- उन अकाउंट से फ़ॉलो अप करें जिन्होंने इंस्टॉल तो किया लेकिन ऑनबोर्डिंग पूरी नहीं की
- उन अकाउंट की पहचान करें जिन्होंने अनइंस्टॉल किया और चर्न की वजहें समझें
- इंस्टॉल डेटा को अपने प्लेटफ़ॉर्म के एनालिटिक्स से जोड़कर देखें
वेबहुक के साथ कस्टम एनालिटिक्स
रीयल-टाइम एनालिटिक्स और गहरी जानकारी के लिए, ऐप इवेंट ट्रैक करने हेतु वेबहुक सेट अप करें:
वेबहुक इवेंट
कस्टम एनालिटिक्स बनाने के लिए इन इवेंट को सुनें:
| इवेंट | विवरण |
|---|---|
account.application.authorized | यूज़र ने आपका ऐप इंस्टॉल किया |
account.application.deauthorized | यूज़र ने आपका ऐप अनइंस्टॉल किया |
वेबहुक हैंडलर
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 इंटीग्रेशन के लिए, इन मेट्रिक पर ध्यान दें:
| मेट्रिक | लक्ष्य | यह क्यों मायने रखता है |
|---|---|---|
| Install-to-Activation Rate | > 70% | उन इंस्टॉल करने वालों का प्रतिशत जो Brevo सेटअप पूरा करते हैं |
| Time to First Sync | < 5 मिनट | इंस्टॉल के बाद यूज़र को कितनी जल्दी मूल्य दिखता है |
| 30-Day Retention | > 80% | उन यूज़र का प्रतिशत जो 30 दिन बाद भी सक्रिय हैं |
| Monthly Churn Rate | < 5% | एक उपयोगी इंटीग्रेशन के साथ अनइंस्टॉल कम रखें |
| Listing Conversion Rate | > 15% | उन लिस्टिंग दर्शकों का प्रतिशत जो इंस्टॉल करते हैं |
| Customers Synced per Account | > 100 | बताता है कि इंटीग्रेशन का उपयोग कितना गहरा है |
Tip
मेट्रिक में बड़े बदलावों के लिए ऑटोमेटेड अलर्ट सेट अप करें. अनइंस्टॉल में अचानक उछाल या एक्टिवेशन रेट में गिरावट किसी बग या UX समस्या का संकेत हो सकती है जिस पर तुरंत ध्यान देना ज़रूरी है.