[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFH2W9KFGVGHRQMS9T0MRJ":3,"skill-same:01M6EFH2W9KFGVGHRQMS9T0MRJ":57},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFH2W9KFGVGHRQMS9T0MRJ","mixpanel",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fmixpanel\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Mixpanel\n\nProduct analytics for tracking user behavior. Event-based data model with funnels, retention, flows, and experimentation.\n\n## JavaScript SDK Setup\n\n```typescript\n\u002F\u002F lib\u002Fmixpanel.ts — Initialize Mixpanel JS SDK for a web application.\n\u002F\u002F Configures persistence, cross-subdomain tracking, and debug mode.\nimport mixpanel from 'mixpanel-browser'\n\nexport function initMixpanel() {\n  mixpanel.init(process.env.NEXT_PUBLIC_MIXPANEL_TOKEN!, {\n    debug: process.env.NODE_ENV === 'development',\n    track_pageview: 'url-with-path',\n    persistence: 'localStorage',\n    ignore_dnt: false,\n    batch_requests: true,\n    batch_size: 50,\n    batch_flush_interval_ms: 5000,\n  })\n}\n```\n\n```typescript\n\u002F\u002F lib\u002Fmixpanel-events.ts — Typed event tracking helpers for Mixpanel.\n\u002F\u002F Centralizes event names and properties for consistency.\nimport mixpanel from 'mixpanel-browser'\n\nexport function identifyUser(userId: string, traits: Record\u003Cstring, any>) {\n  mixpanel.identify(userId)\n  mixpanel.people.set({\n    $email: traits.email,\n    $name: traits.name,\n    plan: traits.plan,\n    company: traits.company,\n    signed_up_at: traits.createdAt,\n  })\n}\n\nexport function trackSignup(method: string, referrer?: string) {\n  mixpanel.track('Sign Up', {\n    method,\n    referrer: referrer || 'direct',\n  })\n  mixpanel.people.set_once({ 'First Sign Up Date': new Date().toISOString() })\n}\n\nexport function trackFeatureUsed(feature: string, details?: Record\u003Cstring, any>) {\n  mixpanel.track('Feature Used', {\n    feature,\n    ...details,\n  })\n  mixpanel.people.increment('total_feature_uses')\n}\n\nexport function trackPurchase(plan: string, amount: number, currency: string) {\n  mixpanel.track('Purchase', { plan, amount, currency })\n  mixpanel.people.track_charge(amount, { plan })\n}\n\nexport function trackOnboardingStep(step: number, stepName: string, completed: boolean) {\n  mixpanel.track('Onboarding Step', {\n    step_number: step,\n    step_name: stepName,\n    completed,\n  })\n}\n\nexport function resetUser() {\n  mixpanel.reset()\n}\n```\n\n## Server-Side Tracking — Node.js\n\n```typescript\n\u002F\u002F lib\u002Fmixpanel-server.ts — Server-side Mixpanel tracking with Node.js.\n\u002F\u002F Use for backend events like payments, API calls, and webhook handlers.\nimport Mixpanel from 'mixpanel'\n\nconst mixpanel = Mixpanel.init(process.env.MIXPANEL_TOKEN!, {\n  host: 'api-eu.mixpanel.com', \u002F\u002F Use 'api.mixpanel.com' for US residency\n})\n\nexport function trackServerEvent(\n  userId: string,\n  event: string,\n  properties: Record\u003Cstring, any> = {}\n) {\n  mixpanel.track(event, {\n    distinct_id: userId,\n    ...properties,\n  })\n}\n\nexport function trackSubscription(userId: string, plan: string, mrr: number) {\n  mixpanel.track('Subscription Started', {\n    distinct_id: userId,\n    plan,\n    mrr,\n    currency: 'usd',\n  })\n  mixpanel.people.set(userId, {\n    plan,\n    mrr,\n    subscription_date: new Date().toISOString(),\n  })\n}\n\nexport function trackChurn(userId: string, reason: string, daysActive: number) {\n  mixpanel.track('Subscription Cancelled', {\n    distinct_id: userId,\n    reason,\n    days_active: daysActive,\n  })\n  mixpanel.people.set(userId, { plan: 'free', churned: true })\n}\n```\n\n## Server-Side Tracking — Python\n\n```python\n# mixpanel_server.py — Server-side Mixpanel tracking with Python.\n# Use for data pipelines, backend services, and batch imports.\nfrom mixpanel import Mixpanel, Consumer\n\n# Batch consumer for high-throughput tracking\nmp = Mixpanel(\n    'your_project_token',\n    consumer=Consumer()  # Default consumer sends immediately\n)\n\ndef track_event(user_id: str, event: str, properties: dict = None):\n    \"\"\"Track a single event.\"\"\"\n    mp.track(user_id, event, properties or {})\n\ndef update_user_profile(user_id: str, properties: dict):\n    \"\"\"Set properties on a user profile.\"\"\"\n    mp.people_set(user_id, properties)\n\ndef track_revenue(user_id: str, amount: float, properties: dict = None):\n    \"\"\"Track a revenue event on the user profile.\"\"\"\n    mp.people_track_charge(user_id, amount, properties or {})\n\ndef import_historical_event(user_id: str, event: str, timestamp: int, properties: dict):\n    \"\"\"Import a past event with a specific Unix timestamp.\n    Requires the API secret for import endpoints.\"\"\"\n    import requests\n    import base64\n    import json\n\n    data = {\n        'event': event,\n        'properties': {\n            'distinct_id': user_id,\n            'time': timestamp,\n            **properties,\n        }\n    }\n    encoded = base64.b64encode(json.dumps([data]).encode()).decode()\n    requests.post(\n        'https:\u002F\u002Fapi.mixpanel.com\u002Fimport',\n        params={'strict': 1},\n        headers={\n            'Content-Type': 'application\u002Fjson',\n            'Authorization': 'Basic ' + base64.b64encode(b'your_api_secret:').decode(),\n        },\n        json=[data]\n    )\n```\n\n## Group Analytics\n\n```typescript\n\u002F\u002F lib\u002Fmixpanel-groups.ts — Group analytics for B2B SaaS.\n\u002F\u002F Track events at the company\u002Fworkspace level in addition to user level.\nimport mixpanel from 'mixpanel-browser'\n\nexport function setUserCompany(companyId: string, companyName: string) {\n  mixpanel.set_group('company', companyId)\n  mixpanel.get_group('company', companyId).set({\n    $name: companyName,\n    plan: 'enterprise',\n    seats: 50,\n  })\n}\n\nexport function trackCompanyEvent(\n  companyId: string,\n  event: string,\n  properties: Record\u003Cstring, any> = {}\n) {\n  mixpanel.track_with_groups(event, properties, { company: companyId })\n}\n```\n\n## Query API\n\n```python\n# mixpanel_query.py — Query Mixpanel data via the Insights API.\n# Export event data, funnel results, and retention tables.\nimport requests\nfrom datetime import date, timedelta\n\nPROJECT_ID = 'your_project_id'\nSA_USERNAME = 'your_service_account_username'\nSA_SECRET = 'your_service_account_secret'\n\ndef query_insights(event: str, from_date: date, to_date: date) -> dict:\n    \"\"\"Query event counts from the Insights API.\"\"\"\n    r = requests.get(\n        f'https:\u002F\u002Fmixpanel.com\u002Fapi\u002F2.0\u002Finsights',\n        auth=(SA_USERNAME, SA_SECRET),\n        params={\n            'project_id': PROJECT_ID,\n            'bookmark': None,\n        },\n        json={\n            'params': {\n                'event': [event],\n                'type': 'general',\n                'from_date': from_date.isoformat(),\n                'to_date': to_date.isoformat(),\n            }\n        }\n    )\n    return r.json()\n\ndef export_raw_events(from_date: date, to_date: date) -> list:\n    \"\"\"Export raw event data for a date range.\"\"\"\n    r = requests.get(\n        'https:\u002F\u002Fdata.mixpanel.com\u002Fapi\u002F2.0\u002Fexport',\n        auth=(SA_USERNAME, SA_SECRET),\n        params={\n            'from_date': from_date.isoformat(),\n            'to_date': to_date.isoformat(),\n            'project_id': PROJECT_ID,\n        },\n        stream=True\n    )\n    import json\n    events = []\n    for line in r.iter_lines():\n        if line:\n            events.append(json.loads(line))\n    return events\n```\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fmixpanel",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill mixpanel",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill mixpanel",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill mixpanel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fmixpanel\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"checklist.md","REFERENCE","参考文档",11634,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fgds-correct-course\u002Fchecklist.md",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"customize.toml","OTHER","其他",1641,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fgds-correct-course\u002Fcustomize.toml",[58,72,82,91,97,104],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":68,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[63],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[69,70,71],"model","model hierarchy","model hierarchy skill",{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":78,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[77],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},[79,80,81],"MCP","zoom","zoom mcp",{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[88,89,90,80],"sdk","zoom apps sdk","apps",{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[93],{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":103,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[102],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},[99],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[106]]