mixpanel

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Mixpanel 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 | bash
Or 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
undefined

First, ensure canifi-env is installed:

First, ensure canifi-env is installed:

canifi-env set MIXPANEL_TOKEN "your_project_token" canifi-env set MIXPANEL_API_SECRET "your_api_secret"
undefined
canifi-env set MIXPANEL_TOKEN "your_project_token" canifi-env set MIXPANEL_API_SECRET "your_api_secret"
undefined

Privacy & 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:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化配置
  2. 在Playwright控制的Chrome窗口中手动登录服务
  3. 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

功能特性

  1. Event Tracking: Track custom events and user actions
  2. User Analytics: Analyze user behavior and cohorts
  3. Funnel Analysis: Build and analyze conversion funnels
  4. Retention Reports: Track user retention over time
  5. A/B Testing: Run experiments and analyze results
  1. 事件追踪:追踪自定义事件与用户操作
  2. 用户分析:分析用户行为与用户群组
  3. 漏斗分析:构建并分析转化漏斗
  4. 留存报告:追踪用户长期留存情况
  5. 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

认证流程

  1. Get project token from Mixpanel settings
  2. Get API secret for export APIs
  3. Token for tracking, secret for reading
  4. Service account for server-side access
  1. 从Mixpanel设置中获取项目令牌
  2. 获取用于导出API的API密钥
  3. 令牌用于事件追踪,密钥用于数据读取
  4. 服务账号用于服务器端访问

Error Handling

错误处理

ErrorCauseSolution
401 UnauthorizedInvalid credentialsVerify token/secret
403 ForbiddenNo project accessCheck permissions
400 Bad RequestInvalid queryFix query syntax
429 Rate LimitedToo many requestsImplement 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合规要求