mixpanel
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMixpanel Skill
Mixpanel Skill
Track product analytics and user behavior with Mixpanel's event-based platform.
借助Mixpanel的事件型平台追踪产品分析数据与用户行为。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/mixpanel/install.sh | bashOr manually:
bash
cp -r skills/mixpanel ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/mixpanel/install.sh | bash或手动安装:
bash
cp -r skills/mixpanel ~/.canifi/skills/Setup
配置步骤
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
First, ensure canifi-env is installed:
curl -sSL https://canifi.com/install.sh | bash
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"
undefinedcanifi-env set MIXPANEL_TOKEN "your_project_token"
canifi-env set MIXPANEL_API_SECRET "your_api_secret"
undefinedPrivacy & Authentication
隐私与认证
Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS 尊重你的隐私。
Option 1: Manual Browser Login (Recommended)
选项1:手动浏览器登录(推荐)
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
如果你不想与Claude Code共享凭证:
- 使用CDP模式完成浏览器自动化配置
- 在Playwright控制的Chrome窗口中手动登录服务
- Claude将使用你的已认证会话,全程不会获取你的密码
Option 2: Environment Variables
选项2:环境变量
If you're comfortable sharing credentials, you can store them locally:
bash
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.
如果你愿意共享凭证,可将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"注意:存储在canifi-env中的凭证仅能在你的本地设备访问,绝不会被传输至外部。
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
- 事件追踪:追踪自定义事件与用户操作
- 用户分析:分析用户行为与用户群组
- 漏斗分析:构建并分析转化漏斗
- 留存报告:追踪用户长期留存情况
- A/B测试:运行实验并分析结果
Usage Examples
使用示例
Track Event
追踪事件
User: "Track a 'Purchase Complete' event in Mixpanel"
Assistant: Sends event with properties to Mixpanel用户:"在Mixpanel中追踪一个'购买完成'事件"
助手:向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用户:"展示用户john@company.com的活动记录"
助手:返回用户档案与事件历史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
- 从Mixpanel设置中获取项目令牌
- 获取用于导出API的API密钥
- 令牌用于事件追踪,密钥用于数据读取
- 服务账号用于服务器端访问
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 |
| 错误类型 | 原因 | 解决方案 |
|---|---|---|
| 401 未授权 | 凭证无效 | 验证令牌/密钥 |
| 403 禁止访问 | 无项目访问权限 | 检查权限设置 |
| 400 请求错误 | 查询语句无效 | 修正查询语法 |
| 429 请求受限 | 请求次数过多 | 实现退避机制 |
Notes
注意事项
- Event-based analytics platform
- Free tier up to 100K users
- Real-time data processing
- Data warehouse integration
- SDKs for all platforms
- GDPR compliant
- 事件型分析平台
- 免费版支持最多10万用户
- 实时数据处理
- 支持数据仓库集成
- 提供全平台SDK
- 符合GDPR合规要求