Mixpanel
by Andrejones92
Track product analytics and user behavior with Mixpanel's event-based platform.
Skill Details
Repository Files
2 files in this skill directory
name: mixpanel description: Track product analytics and user behavior with Mixpanel's event-based platform. category: analytics
Mixpanel Skill
Track product analytics and user behavior with Mixpanel's event-based platform.
Quick Install
curl -sSL https://canifi.com/skills/mixpanel/install.sh | bash
Or manually:
cp -r skills/mixpanel ~/.canifi/skills/
Setup
Configure via canifi-env:
# First, ensure canifi-env is installed:
# curl -sSL https://canifi.com/install.sh | bash
canifi-env set MIXPANEL_TOKEN "your_project_token"
canifi-env set MIXPANEL_API_SECRET "your_api_secret"
Privacy & Authentication
Your credentials, your choice. Canifi LifeOS respects your privacy.
Option 1: Manual Browser Login (Recommended)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
Option 2: Environment Variables
If you're comfortable sharing credentials, you can store them locally:
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
Capabilities
- Event Tracking: Track custom events and user actions
- User Analytics: Analyze user behavior and cohorts
- Funnel Analysis: Build and analyze conversion funnels
- Retention Reports: Track user retention over time
- A/B Testing: Run experiments and analyze results
Usage Examples
Track Event
User: "Track a 'Purchase Complete' event in Mixpanel"
Assistant: Sends event with properties to Mixpanel
View Funnel
User: "Show me the checkout funnel conversion rate"
Assistant: Returns funnel steps and conversion rates
Analyze Retention
User: "What's our user retention for the past month?"
Assistant: Returns retention cohort analysis
User Profile
User: "Show me activity for user john@company.com"
Assistant: Returns user profile and event history
Authentication Flow
- Get project token from Mixpanel settings
- Get API secret for export APIs
- Token for tracking, secret for reading
- Service account for server-side access
Error Handling
| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid credentials | Verify token/secret |
| 403 Forbidden | No project access | Check permissions |
| 400 Bad Request | Invalid query | Fix query syntax |
| 429 Rate Limited | Too many requests | Implement backoff |
Notes
- Event-based analytics platform
- Free tier up to 100K users
- Real-time data processing
- Data warehouse integration
- SDKs for all platforms
- GDPR compliant
Related Skills
Attack Tree Construction
Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.
Grafana Dashboards
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
Matplotlib
Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.
Scientific Visualization
Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.
Seaborn
Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.
Shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Query Writing
For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Scientific Visualization
Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
