# Send Mixpanel to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mixpanel",
    "name": "Mixpanel",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/mixpanel",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/mixpanel",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mixpanel",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mixpanel",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "memory-template.md",
      "setup.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "mixpanel",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T16:03:03.724Z",
      "expiresAt": "2026-05-12T16:03:03.724Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mixpanel",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mixpanel",
        "contentDisposition": "attachment; filename=\"mixpanel-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "mixpanel"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mixpanel"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mixpanel",
    "downloadUrl": "https://openagent3.xyz/downloads/mixpanel",
    "agentUrl": "https://openagent3.xyz/skills/mixpanel/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mixpanel/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mixpanel/agent.md"
  }
}
```
## Documentation

### Setup

On first use, read setup.md for integration guidelines.

### When to Use

User needs product analytics from Mixpanel. Agent handles event queries, funnel analysis, retention cohorts, user segmentation, and profile lookups.

### Architecture

Memory lives in ~/mixpanel/. See memory-template.md for structure.

~/mixpanel/
├── memory.md        # Projects, saved queries, insights
└── queries/         # Saved JQL queries

### Quick Reference

TopicFileSetup processsetup.mdMemory templatememory-template.md

### 1. Authentication

Requires a Mixpanel Service Account:

export MP_SERVICE_ACCOUNT="your-service-account"
export MP_SERVICE_SECRET="your-service-secret"
export MP_PROJECT_ID="123456"

Create a service account in Mixpanel → Organization Settings → Service Accounts.

### 2. Query API for Analysis

Use the Query API for insights, funnels, retention:

BASE="https://mixpanel.com/api/query"
AUTH=$(echo -n "$MP_SERVICE_ACCOUNT:$MP_SERVICE_SECRET" | base64)

# Insights query (event counts)
curl -s "$BASE/insights?project_id=$MP_PROJECT_ID" \\
  -H "Authorization: Basic $AUTH" \\
  -H "Content-Type: application/json" \\
  -d '{
    "params": {
      "event": ["Sign Up", "Purchase"],
      "type": "general",
      "unit": "day",
      "from_date": "2024-01-01",
      "to_date": "2024-01-31"
    }
  }' | jq

### 3. Funnel Analysis

curl -s "$BASE/funnels?project_id=$MP_PROJECT_ID" \\
  -H "Authorization: Basic $AUTH" \\
  -H "Content-Type: application/json" \\
  -d '{
    "params": {
      "events": [
        {"event": "Sign Up"},
        {"event": "Complete Onboarding"},
        {"event": "First Purchase"}
      ],
      "from_date": "2024-01-01",
      "to_date": "2024-01-31",
      "unit": "day"
    }
  }' | jq '.data.meta.overall'

### 4. Retention Cohorts

curl -s "$BASE/retention?project_id=$MP_PROJECT_ID" \\
  -H "Authorization: Basic $AUTH" \\
  -H "Content-Type: application/json" \\
  -d '{
    "params": {
      "born_event": "Sign Up",
      "event": "App Open",
      "from_date": "2024-01-01",
      "to_date": "2024-01-31",
      "unit": "week",
      "retention_type": "birth"
    }
  }' | jq

### 5. User Profiles

curl -s "https://mixpanel.com/api/query/engage?project_id=$MP_PROJECT_ID" \\
  -H "Authorization: Basic $AUTH" \\
  -H "Content-Type: application/json" \\
  -d '{
    "filter_by_cohort": {"id": 12345},
    "output_properties": ["$email", "$name", "plan"]
  }' | jq

### 6. Export Raw Events

curl -s "https://data.mixpanel.com/api/2.0/export?project_id=$MP_PROJECT_ID" \\
  -H "Authorization: Basic $AUTH" \\
  -d "from_date=2024-01-01" \\
  -d "to_date=2024-01-07" \\
  -d "event=[\\"Purchase\\"]"

### 7. JQL for Complex Queries

// Mixpanel JQL (JavaScript Query Language)
function main() {
  return Events({
    from_date: "2024-01-01",
    to_date: "2024-01-31",
    event_selectors: [{event: "Purchase"}]
  })
  .groupByUser(["properties.$city"], mixpanel.reducer.sum("properties.amount"))
  .groupBy(["key.$city"], mixpanel.reducer.avg("value"))
  .sortDesc("value")
  .take(10);
}

### Common Queries

GoalEndpointKey ParamsEvent counts/insightsevent, type, unit, datesConversion funnel/funnelsevents array, datesUser retention/retentionborn_event, event, unitUser segments/engagefilter_by_cohort, propertiesRaw event export/exportdates, event filter

### Mixpanel Traps

Wrong date format → use YYYY-MM-DD, not timestamps
Missing project_id → every Query API call needs it
Rate limits → 60 requests/hour for free tier, batch queries when possible
JQL timeouts → queries over 60s fail, add .take(N) to limit results

### External Endpoints

EndpointData SentPurposemixpanel.com/api/query/*Credentials, project ID, query paramsAnalytics queriesdata.mixpanel.com/api/2.0/*Credentials, project ID, date rangeRaw data export

No other data is sent externally.

### Security & Privacy

Data sent to Mixpanel (over HTTPS):

Service account credentials for authentication
Query parameters (event names, date ranges, filters)
Project ID

Data that stays local:

Credentials stored ONLY in environment variables
Query results cached in ~/mixpanel/

This skill does NOT:

Store credentials in memory.md or any file
Send data to services other than mixpanel.com
Modify your Mixpanel tracking code or SDK

### Trust

By using this skill, analytics data is queried from Mixpanel.
Only install if you trust Mixpanel with your product data.

### Related Skills

Install with clawhub install <slug> if user confirms:

analytics — multi-platform analytics
data-analysis — data processing patterns
api — REST API best practices

### Feedback

If useful: clawhub star mixpanel
Stay updated: clawhub sync
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T16:03:03.724Z
- Expires at: 2026-05-12T16:03:03.724Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mixpanel)
- [Send to Agent page](https://openagent3.xyz/skills/mixpanel/agent)
- [JSON manifest](https://openagent3.xyz/skills/mixpanel/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mixpanel/agent.md)
- [Download page](https://openagent3.xyz/downloads/mixpanel)