Analytics
Advanced analytics features including funnels, cohorts, A/B testing, and predictive analysis.
Analytics overview
Sublyzer provides powerful analytics tools to understand user behavior, measure conversions, and make data-driven decisions. These features help you go beyond basic metrics to truly understand how users interact with your application.
Conversion funnels
Track how users progress through multi-step processes like signups, checkouts, or onboarding flows.
Creating a funnel
- Navigate to your integration dashboard
- Click "Analytics" → "Funnels"
- Click "Create Funnel"
- Define your steps using events or page views
Funnel step syntax
Define funnel steps using the format: step_a > step_b > step_c
Example funnel steps: homepage > signup_page > email_verification > dashboard Or using custom events: view_product > add_to_cart > checkout > purchase_complete
Funnel metrics
- Conversion Rate — Percentage completing each step
- Drop-off Rate — Where users abandon the flow
- Time to Convert — Average time between steps
- Total Conversions — Absolute numbers per step
Cohort analysis
Cohort analysis groups users by their signup date (or first event) and tracks their behavior over time. This is essential for understanding retention and user lifecycle.
Retention cohorts
See how many users return to your app after their first visit:
Cohort Week 1 Week 2 Week 3 Week 4 ───────────────────────────────────────────── Jan 1-7 100% 45% 32% 28% Jan 8-14 100% 52% 38% 31% Jan 15-21 100% 48% 35% ... Jan 22-28 100% 51% ... ...
Cohort granularity
- Daily — For high-traffic apps or short-term analysis
- Weekly — Standard retention view
- Monthly — Long-term retention patterns
A/B Testing
Measure the impact of changes by comparing user behavior across variants. Sublyzer tracks exposure and conversion events to calculate statistical significance.
Setting up an A/B test
- Define your experiment name and variants
- Track exposure when users see a variant
- Track conversion when the goal is achieved
- Sublyzer calculates significance automatically
Tracking with the SDK
// Track when user is exposed to variant
Sublyzer.track('experiment_exposure', {
experiment: 'checkout_redesign',
variant: 'new_checkout' // or 'control'
});
// Track conversion
Sublyzer.track('experiment_conversion', {
experiment: 'checkout_redesign',
variant: 'new_checkout'
});A/B Test metrics
- Sample Size — Users per variant
- Conversion Rate — % of exposures that converted
- Lift — Relative improvement over control
- Statistical Significance — Confidence level (95%+ recommended)
- P-Value — Probability result is due to chance
Anomaly detection
Sublyzer automatically detects unusual patterns in your data and alerts you to potential issues:
- Error Spikes — Sudden increase in error rates
- Traffic Anomalies — Unusual drops or surges in traffic
- Performance Degradation — Slowdowns compared to baseline
- Conversion Drops — Significant decrease in funnel completion
Configure alerts for anomalies in the Alerts settings.
Predictive analytics
Use historical data to forecast future trends:
- Traffic Forecasting — Predict user volume
- Error Rate Prediction — Anticipate stability issues
- Revenue Forecasting — Project future revenue (PRO with Stripe)
- Resource Planning — Plan infrastructure needs
Predictions improve with more historical data. Best results after 30+ days of data.
Period comparison
Compare metrics between two time periods to measure impact of changes:
Compare: Last 7 days vs Previous 7 days Metric Period A Period B Change ─────────────────────────────────────────────── Page Views 45,230 42,100 +7.4% Error Rate 0.8% 1.2% -33.3% Avg Load Time 2.1s 2.4s -12.5% Conversions 892 756 +18.0%
Use this to measure the impact of deployments, marketing campaigns, or seasonal changes.
Custom reports
Create reusable report templates with your preferred metrics and filters:
- Configure your dashboard with desired widgets
- Click "Save as Template"
- Name your report (e.g., "Weekly Performance Review")
- Schedule automatic delivery via Email or Discord (PRO)
Reports can be delivered daily, weekly, or monthly to keep stakeholders informed.
Tracking custom events
To power analytics features, track custom events throughout your application:
// Track a page view with context
Sublyzer.trackPageView({
page: '/pricing',
referrer: document.referrer,
campaign: 'summer_sale'
});
// Track a custom event
Sublyzer.track('button_click', {
button_id: 'cta_signup',
page: '/homepage',
variant: 'green_button'
});
// Track a conversion
Sublyzer.track('purchase', {
order_id: '12345',
amount: 99.99,
currency: 'USD',
items: ['product_a', 'product_b']
});Best practices
Analytics tips
- Define clear conversion goals before tracking
- Use consistent event naming (snake_case recommended)
- Include relevant context in event properties
- Run A/B tests for at least 1-2 weeks for significance
- Review cohort data weekly to spot retention issues early
- Set up anomaly alerts to catch problems quickly
Need help? Join our Discord.