๐ฏ Funnel Analytics - Complete Guide
Learn how to track user journeys and optimize conversion with Tokebi's advanced funnel analytics.
Transform your game analytics from basic event counting to actionable user journey intelligence.
๐ฏ What is Funnel Analytics?
Funnel analytics tracks how users progress through a sequence of steps in your game. Instead of seeing isolated events, you understand the complete user journey and identify exactly where players drop off.
Example Game Onboarding Funnel:
1. player_joined โ 1,000 users (Entry Point) 2. tutorial_started โ 800 users (80% conversion) 3. tutorial_completed โ 600 users (75% conversion) 4. first_purchase โ 120 users (20% conversion) โ Major drop-off!
๐ Why Choose Tokebi Funnels?
vs. Platform-Native Analytics (Roblox, etc.)
| Feature | Tokebi | Platform Analytics |
|---|---|---|
| Platform Support | โ Any game engine (Unity, Unreal, Web, Mobile) | โ Platform-locked only |
| Data Freshness | โ 30-minute real-time | โ 24-hour delay |
| Funnel Limits | โ Unlimited funnels, 100 steps each | โ 10 funnels maximum |
| Configuration | โ Dynamic frontend config | โ Hardcoded in game |
| Historical Data | โ Reuse 6+ months of events | โ Lost on funnel changes |
Key Advantages
- ๐๏ธ Dynamic Configuration: Change funnels instantly without code updates
- ๐ Real Sequential Tracking: True user journey progression, not independent events
- โฑ๏ธ Real-Time Insights: See conversion changes within 30 minutes
- ๐ Historical Reuse: Test new funnel ideas on months of existing data
- ๐ฎ Cross-Platform: One analytics system for all your games
๐ก The Game-Changing Difference
๐ Quick Start Guide
โ๏ธ Tokebi API Structure
All event tracking uses this required structure:
tokebi.track(eventName, payload, userId)
eventName
String identifying the event (used for funnel matching)
payload
Valid JSON object with context data (used for other analytics)
โ
Empty payloads accepted: If you pass an empty object {} or array [], Tokebi will automatically enrich it with player_id for analytics.
userId
Player/user identifier
๐ Recommended Payload Structure
Use this simple, consistent payload structure for all events:
{
"session_id": "session_12345",
"platform": "mobile",
"screen": "tutorial",
"level": 1,
"timestamp": "2025-07-15T10:30:00Z"
}Required Fields:
- โข session_id: Unique session identifier
- โข platform: "mobile", "desktop", "web"
- โข timestamp: ISO format timestamp
Optional Context:
- โข screen: Current game screen/area
- โข level: Player's current level
- โข game_mode: PvP, campaign, etc.
๐ฏ Funnel-Only Usage
If you're only using funnels and don't need detailed analytics, you can send empty payloads:
// Simple funnel tracking with empty payload
tokebi.track("player_joined", {}, player.UserId);
tokebi.track("tutorial_started", {}, player.UserId);
tokebi.track("tutorial_completed", {}, player.UserId);
// Tokebi automatically enriches with player_id for analyticsEmpty payloads will be automatically enriched with player_id to ensure your analytics work properly.
Step 1: Track Events in Your Game
Use the Tokebi tracking API with proper payload structure:
// Unity, Unreal, Web - any platform
tokebi.track("player_joined", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "main_menu",
"timestamp": "2025-07-15T10:30:00Z"
}, player.UserId);
tokebi.track("tutorial_started", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "tutorial",
"level": 1,
"timestamp": "2025-07-15T10:31:00Z"
}, player.UserId);
tokebi.track("tutorial_completed", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "tutorial",
"level": 1,
"timestamp": "2025-07-15T10:35:00Z"
}, player.UserId);
tokebi.track("first_purchase", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "shop",
"level": 1,
"timestamp": "2025-07-15T10:40:00Z"
}, player.UserId);Important: Always include valid JSON payload. Funnels use event names for tracking, but payload data enables powerful segmentation and other analytics features.
Step 2: Create Your First Funnel
- 1. Navigate to Dashboard โ Charts โ Add Chart
- 2. Select "Funnel" as chart type
- 3. Configure your funnel steps:
- โข Step 1:
player_joined - โข Step 2:
tutorial_started - โข Step 3:
tutorial_completed - โข Step 4:
first_purchase
- โข Step 1:
- 4. Click "Save"
Step 3: Analyze Results
Your funnel chart shows:
- โข User counts at each step
- โข Conversion rates between steps
- โข Drop-off percentages
- โข Time analysis (how long between steps)
- โข Performance insights with AI recommendations
๐ง Advanced Configuration
๐ Manual Funnel Steps (Future Events)
Create funnels for events that don't exist yet! Perfect for planning analytics before development or testing new feature ideas.
โจ The Problem This Solves
Classic Issue: "I want to create a funnel for our new onboarding flow, but the events don't exist yet because we haven't built the feature."
Tokebi Solution: Define your funnel steps manually using JSON, then your analytics are ready the moment you deploy!
๐ Simple JSON Format
{
"1": "new_player_joined",
"2": "completed_profile_setup",
"3": "finished_tutorial_v2",
"4": "made_first_purchase"
}- Keys must be numbers ("1", "2", "3")
- Values must be event names (strings)
- Events not found in data show 0 users
๐ฏ When to Use Manual Steps
Pro Tip: Hybrid Approach
Use manual steps for future events in your funnel, then switch to event selection as you implement each step. This lets you plan the full journey while building incrementally.
๐ฑ Platform-Specific Funnels
Track platform performance by creating platform-specific event names:
// Track separate events for each platform
tokebi.track("player_joined_mobile", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "main_menu",
"timestamp": "2025-07-15T10:30:00Z"
}, player.UserId);
tokebi.track("player_joined_desktop", {
"session_id": "session_67890",
"platform": "desktop",
"screen": "main_menu",
"timestamp": "2025-07-15T10:30:00Z"
}, player.UserId);
tokebi.track("tutorial_started_mobile", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "tutorial",
"level": 1,
"timestamp": "2025-07-15T10:31:00Z"
}, player.UserId);Then create separate funnels:
- โข Mobile Funnel:
player_joined_mobileโtutorial_started_mobileโpurchase_mobile - โข Desktop Funnel:
player_joined_desktopโtutorial_started_desktopโpurchase_desktop
๐ฎ Game Mode Tracking
Track different game modes by including mode info in event names:
// Track events with game mode specificity
tokebi.track("level_completed_campaign", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "game",
"level": 5,
"game_mode": "campaign",
"timestamp": "2025-07-15T10:45:00Z"
}, player.UserId);
tokebi.track("level_completed_pvp", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "game",
"level": 5,
"game_mode": "pvp",
"timestamp": "2025-07-15T10:50:00Z"
}, player.UserId);Create mode-specific funnels to compare:
- โข Campaign Funnel:
player_joinedโlevel_completed_campaignโpurchase_campaign - โข PvP Funnel:
player_joinedโlevel_completed_pvpโpurchase_pvp
๐ Understanding Your Funnel Data
๐ Funnel Metrics Explained
Conversion Rate
Percentage of users who completed this step after completing the previous step
Step 2 Conversion = (Users who completed Step 2 / Users who completed Step 1) ร 100
Drop-off Rate
Percentage of users who left at this step
Drop-off = 100% - Conversion Rate
Time to Step
Average time users take between funnel steps
Shows user behavior patterns and optimization opportunities
๐ Reading Funnel Insights
The system automatically provides actionable insights:
๐ด "Focus on tutorial_completed - highest drop-off point"
This step needs immediate optimization attention
๐ข "first_purchase has best step conversion (85%)"
This step is performing well, learn from it
โฑ๏ธ "Users take avg 5m 30s from join to tutorial"
Timing insights help optimize pacing
๐ Funnel Methodology
Tokebi funnels are designed to provide fast, high-signal insights with a pragmatic approach:
๐ Data Processing
- โข Single Completion per User: Only the first valid completion is counted per user
- โข Sampled Dataset: Funnels are computed on a representative sample of users when datasets are large
- โข Capped Sequences: Each user's event sequence is limited to 1000 events for performance reasons
๐งน Event Deduplication
- โข Consecutive Deduplication: Repeated consecutive events are collapsed to reduce noise
- โข Example:
Play โ Play โ Collect โ Sell โ SellbecomesPlay โ Collect โ Sell - โข Purpose: Focuses on meaningful user progression steps
โ๏ธ Funnel Configuration
- โข Custom Funnel Definitions: Funnel steps are passed from the frontend in order (e.g.,
["Play", "Collect", "Sell"]) - โข Pattern Matching: The backend scans each user's event sequence to detect the first valid match
โฑ๏ธ Duration Analysis
- โข Funnel Duration Displayed: When a funnel completion is found, we show how long it took the user to go from the first step to the last
- โข Purpose: Helps gauge flow efficiency
- โข Note: Funnels are not currently filtered by time thresholds
๐ฏ Why This Approach?
This methodology balances analytical depth with performance, ensuring you get actionable insights quickly:
- โข Performance: Sampling and capping ensure fast computation even with large datasets
- โข Signal vs. Noise: Deduplication focuses on meaningful user actions
- โข Clarity: Single completion per user provides clear, interpretable conversion rates
- โข Flexibility: Custom definitions allow for any funnel structure you need
๐ฎ Real-World Use Cases
1. Onboarding Optimization
Challenge: 60% of players quit during tutorial
Solution: Create funnel to identify exact tutorial step causing drop-off
Result: Found specific tutorial slide causing issues, improved by 25%
2. Platform Performance Analysis
Challenge: Unknown if mobile or desktop converts better
Solution: Separate mobile/desktop funnels with platform-tagged events
Result: Discovered mobile converts 40% better, shifted marketing focus
3. Game Mode Comparison
Challenge: Which game mode leads to more purchases?
Solution: Track events with game mode specificity, create separate funnels
Result: PvP mode converts 35% better than campaign mode
4. Session Quality Analysis
Challenge: Do longer sessions convert better?
Solution: Use session_id in payload to track session-based funnels
Result: Sessions >10 minutes have 3x higher conversion
๐ก Best Practices
Event Naming Strategy
โ Good: Descriptive, consistent naming for funnel tracking
tokebi.track("tutorial_step_1_completed", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "tutorial",
"level": 1,
"timestamp": "2025-07-15T10:30:00Z"
}, player.UserId);
tokebi.track("tutorial_step_2_completed", {
"session_id": "session_12345",
"platform": "mobile",
"screen": "tutorial",
"level": 1,
"timestamp": "2025-07-15T10:32:00Z"
}, player.UserId);โ Avoid: Generic naming
// BAD: Inconsistent naming
tokebi.track("tutorial_done", {}, player.UserId);
tokebi.track("finished_tut", {}, player.UserId);
// Note: Empty payloads are fine for funnel-only usage
// They will be automatically enriched with player_idPayload Best Practices
๐ฏ Always Include Core Fields
- โข session_id: For session-based analysis
- โข platform: For platform comparison
- โข timestamp: For accurate timing
๐ฑ Keep It Simple
- โข Use consistent field names across events
- โข Avoid nested objects when possible
- โข Include only data you'll actually use
๐ Think Beyond Funnels
- โข Payload data enables segmentation
- โข Include context for other analytics features
- โข Plan for future analysis needs
โ Empty Payload Option
For funnel-only tracking, empty payloads {} are perfectly acceptable. Tokebi automatically enriches them with player_id for analytics functionality.
Data Collection Strategy
// Consistent payload structure across all events
const basePayload = {
"session_id": getCurrentSessionId(),
"platform": getPlatform(), // "mobile", "desktop", "web"
"timestamp": new Date().toISOString()
};
// Add context-specific data for each event
tokebi.track("purchase_completed", {
...basePayload,
"screen": "shop",
"level": playerLevel,
"game_mode": currentGameMode
}, player.UserId);
tokebi.track("level_completed", {
...basePayload,
"screen": "game",
"level": completedLevel,
"game_mode": currentGameMode,
"completion_time": levelTime
}, player.UserId);Event Naming Pattern for Funnels: [action]_[context]_[platform]
This allows you to create highly specific funnels for any combination of factors.
๐ Troubleshooting
Common Issues
โ "My funnel shows 0 users"
- โข Check event names match exactly (case-sensitive)
- โข Verify date range includes your test events
- โข Ensure events exist in selected game/environment
โ "Understanding payload requirements"
- โข โ
Empty payloads are OK:
{}and[]are automatically enriched - โข โ Non-empty arrays are malformed:
["data"]will be marked as malformed - โข โ Strings/numbers are malformed:
"payload",123will be marked as malformed
โ "Platform breakdowns not working"
- โข Use platform-specific event names (e.g.,
event_mobile,event_desktop) - โข Create separate funnels for each platform
- โข Ensure consistent naming across all events
Performance Tips
๐ Optimize for Speed
- โข Funnel data refreshes every 30 minutes
- โข Historical analysis available instantly
- โข Use date ranges appropriate for your analysis needs
๐ Data Quality
- โข Consistent event naming improves funnel accuracy
- โข Empty payloads
{}are fine for funnel-only tracking - โข Monitor funnel performance over time
๐ฏ Getting Started Today
Quick Setup Checklist
- 1. Add Event Tracking: Start with 3-5 key user actions using proper payload structure
- 2. Create Your First Funnel: Basic onboarding or purchase flow
- 3. Analyze Results: Identify biggest drop-off points
- 4. Iterate: Test different funnel configurations
- 5. Expand: Add platform-specific and mode-specific funnels
Need Help?
- ๐ Documentation: Additional guides and tutorials
- ๐ฌ Support: Contact our team for advanced configuration
- ๐ง Implementation: Custom setup assistance available
๐ Ready to Transform Your Analytics?
Start building your first funnel today with proper payload structure and discover insights that platform-locked analytics simply can't provide.