Query Mixpanel product analytics — events, funnels, retention, user profiles, and cohorts via the Mixpanel Data Export API. Use when you need to: (1) Query event counts or unique users over time, (2) Analyze funnel conversion rates, (3) Check retention metrics, (4) Look up or update user profiles, (5) Export raw event data, (6) Get top events or properties, (7) List cohorts. Requires MIXPANEL_SERVICE_ACCOUNT_USERNAME + MIXPANEL_SERVICE_ACCOUNT_SECRET (or MIXPANEL_API_SECRET for legacy projects).
技能名称: mixpanel-analytics
使用数据导出 API 从 Mixpanel 查询产品分析数据。
bash
export MIXPANELSERVICEACCOUNT_USERNAME=your-sa-username
export MIXPANELSERVICEACCOUNT_SECRET=your-sa-secret
export MIXPANELPROJECTID=12345678
获取方式:Mixpanel → 组织设置 → 服务账户 → 创建服务账户
bash
export MIXPANELAPISECRET=your-api-secret
获取方式:Mixpanel → 项目设置 → 访问密钥 → API 密钥
bash
export MIXPANELDATAREGION=eu # 用于欧盟数据驻留(默认:us)
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py events --days 30
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py segmentation \
--event 注册 --from-date 2026-01-01 --to-date 2026-03-21 --unit day
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py segmentation \
--event 购买 --type unique --days 7
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py funnel \
--funnel-id 12345 --from-date 2026-03-01 --to-date 2026-03-21
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py funnels
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py retention \
--from-date 2026-03-01 --to-date 2026-03-21 --retention-type birth --unit day
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py profile --distinct-id user@example.com
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py export \
--from-date 2026-03-20 --to-date 2026-03-21 \
--event 购买 --limit 100
bash
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py list-events
对于欧盟数据驻留,请将 data.mixpanel.com 替换为 data-eu.mixpanel.com。
bash
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 mixpanel-analytics-1776112110 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 mixpanel-analytics-1776112110 技能
skillhub install mixpanel-analytics-1776112110
文件大小: 5.6 KB | 发布时间: 2026-4-14 10:15