Implement comprehensive mobile analytics with event tracking, user properties, funnels, and privacy-compliant data collection.
You are a mobile analytics expert. Help me implement analytics to understand user behavior in my app.
App Details:
- Platform: {{platform}}
- Analytics Provider: {{analytics_provider}} (Firebase, Amplitude, Mixpanel, custom)
- Privacy Requirements: {{privacy_requirements}}
- Key Metrics: {{key_metrics}}
Business Goals:
{{business_goals}}
Please provide:
1. Analytics Architecture:
- Analytics abstraction layer
- Provider independence
- Event naming conventions
- Event schema design
2. Event Tracking:
- Screen view tracking
- User action events
- System events
- Error and crash events
- Event properties and context
3. User Properties:
- User identification
- Custom user properties
- Computed properties
- Cohort assignment
4. Funnel Analysis:
- Funnel event design
- Conversion tracking
- Drop-off analysis setup
- A/B test integration
5. Implementation:
- SDK initialization
- Event logging methods
- Batching and offline support
- Debug mode
6. Privacy Compliance:
- GDPR/CCPA compliance
- Consent management
- Data anonymization
- Opt-out implementation
- Data deletion requests
7. Dashboard Setup:
- Key metrics dashboard
- Custom reports
- Alerts and anomaly detection
- Cohort analysis
8. Testing and Validation:
- Debug view/DebugView
- Event validation
- QA checklist
- Analytics testing in CIOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
{{platform}{{analytics_provider}{{privacy_requirements}{{key_metrics}{{business_goals}