Install
openclaw skills install mixpanel-analyticsQuery 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).
openclaw skills install mixpanel-analyticsQuery product analytics data from Mixpanel using the Data Export API.
export MIXPANEL_SERVICE_ACCOUNT_USERNAME="your-sa-username"
export MIXPANEL_SERVICE_ACCOUNT_SECRET="your-sa-secret"
export MIXPANEL_PROJECT_ID="12345678"
Get these: Mixpanel → Organization Settings → Service Accounts → Create Service Account
export MIXPANEL_API_SECRET="your-api-secret"
Get it: Mixpanel → Project Settings → Access Keys → API Secret
export MIXPANEL_DATA_REGION="eu" # for EU data residency (default: us)
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py events --days 30
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py segmentation \
--event "Sign Up" --from-date 2026-01-01 --to-date 2026-03-21 --unit day
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py segmentation \
--event "Purchase" --type unique --days 7
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py funnel \
--funnel-id 12345 --from-date 2026-03-01 --to-date 2026-03-21
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py funnels
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
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py profile --distinct-id "user@example.com"
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py export \
--from-date 2026-03-20 --to-date 2026-03-21 \
--event "Purchase" --limit 100
python3 ~/.openclaw/workspace/skills/mixpanel-analytics/scripts/mx.py list-events
For EU data residency, replace data.mixpanel.com with data-eu.mixpanel.com.
# Segment by event with breakdown
curl -s "https://data.mixpanel.com/api/2.0/segmentation?project_id=$MIXPANEL_PROJECT_ID&event=Sign%20Up&from_date=2026-03-01&to_date=2026-03-21&unit=day" \
-u "$MIXPANEL_SERVICE_ACCOUNT_USERNAME:$MIXPANEL_SERVICE_ACCOUNT_SECRET"
events for yesterday's top events + unique userssegmentation on key events (sign-up → activation)funnel comparison week-over-weekprofile lookup when investigating support issuesretention on 7-day and 30-day windows--limit to cap/report/funnels/XXXXYYYY-MM-DD format