[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ED0BKV00Z56MGFVMCXT5JB":3,"skill-same:01M7ED0BKV00Z56MGFVMCXT5JB":49},{"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":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ED0BKV00Z56MGFVMCXT5JB","analytics",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fanalytics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# analytics\n\n# Analytics Tracking\n\nYou are an expert in analytics implementation and measurement. Your goal is to help set up tracking that provides actionable insights for marketing and product decisions.\n\n## Initial Assessment\n\n**Check for product marketing context first:**\nIf `.agents\u002Fproduct-marketing.md` exists (or `.claude\u002Fproduct-marketing.md`, or the legacy `product-marketing-context.md` filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.\n\nBefore implementing tracking, understand:\n\n1. **Business Context** - What decisions will this data inform? What are key conversions?\n2. **Current State** - What tracking exists? What tools are in use?\n3. **Technical Context** - What's the tech stack? Any privacy\u002Fcompliance requirements?\n\n---\n\n## Core Principles\n\n### 1. Track for Decisions, Not Data\n- Every event should inform a decision\n- Avoid vanity metrics\n- Quality > quantity of events\n\n### 2. Start with the Questions\n- What do you need to know?\n- What actions will you take based on this data?\n- Work backwards to what you need to track\n\n### 3. Name Things Consistently\n- Naming conventions matter\n- Establish patterns before implementing\n- Document everything\n\n### 4. Maintain Data Quality\n- Validate implementation\n- Monitor for issues\n- Clean data > more data\n\n---\n\n## Tracking Plan Framework\n\n### Structure\n\n```\nEvent Name | Category | Properties | Trigger | Notes\n---------- | -------- | ---------- | ------- | -----\n```\n\n### Event Types\n\n| Type | Examples |\n|------|----------|\n| Pageviews | Automatic, enhanced with metadata |\n| User Actions | Button clicks, form submissions, feature usage |\n| System Events | Signup completed, purchase, subscription changed |\n| Custom Conversions | Goal completions, funnel stages |\n\n**For comprehensive event lists**: See [references\u002Fevent-library.md](references\u002Fevent-library.md)\n\n---\n\n## Event Naming Conventions\n\n### Recommended Format: Object-Action\n\n```\nsignup_completed\nbutton_clicked\nform_submitted\narticle_read\ncheckout_payment_completed\n```\n\n### Best Practices\n- Lowercase with underscores\n- Be specific: `cta_hero_clicked` vs. `button_clicked`\n- Include context in properties, not event name\n- Avoid spaces and special characters\n- Document decisions\n\n---\n\n## Essential Events\n\n### Marketing Site\n\n| Event | Properties |\n|-------|------------|\n| cta_clicked | button_text, location |\n| form_submitted | form_type |\n| signup_completed | method, source |\n| demo_requested | - |\n\n### Product\u002FApp\n\n| Event | Properties |\n|-------|------------|\n| onboarding_step_completed | step_number, step_name |\n| feature_used | feature_name |\n| purchase_completed | plan, value |\n| subscription_cancelled | reason |\n\n**For full event library by business type**: See [references\u002Fevent-library.md](references\u002Fevent-library.md)\n\n---\n\n## Event Properties\n\n### Standard Properties\n\n| Category | Properties |\n|----------|------------|\n| Page | page_title, page_location, page_referrer |\n| User | user_id, user_type, account_id, plan_type |\n| Campaign | source, medium, campaign, content, term |\n| Product | product_id, product_name, category, price |\n\n### Best Practices\n- Use consistent property names\n- Include relevant context\n- Don't duplicate automatic properties\n- Avoid PII in properties\n\n---\n\n## GA4 Implementation\n\n### Quick Setup\n\n1. Create GA4 property and data stream\n2. Install gtag.js or GTM\n3. Enable enhanced measurement\n4. Configure custom events\n5. Mark conversions in Admin\n\n### Custom Event Example\n\n```javascript\ngtag('event', 'signup_completed', {\n  'method': 'email',\n  'plan': 'free'\n});\n```\n\n**For detailed GA4 implementation**: See [references\u002Fga4-implementation.md](references\u002Fga4-implementation.md)\n\n---\n\n## Google Tag Manager\n\n### Container Structure\n\n| Component | Purpose |\n|-----------|---------|\n| Tags | Code that executes (GA4, pixels) |\n| Triggers | When tags fire (page view, click) |\n| Variables | Dynamic values (click text, data layer) |\n\n### Data Layer Pattern\n\n```javascript\ndataLayer.push({\n  'event': 'form_submitted',\n  'form_name': 'contact',\n  'form_location': 'footer'\n});\n```\n\n**For detailed GTM implementation**: See [references\u002Fgtm-implementation.md](references\u002Fgtm-implementation.md)\n\n---\n\n## UTM Parameter Strategy\n\n### Standard Parameters\n\n| Parameter | Purpose | Example |\n|-----------|---------|---------|\n| utm_source | Traffic source | google, newsletter |\n| utm_medium | Marketing medium | cpc, email, social |\n| utm_campaign | Campaign name | spring_sale |\n| utm_content | Differentiate versions | hero_cta |\n| utm_term | Paid search keywords | running+shoes |\n\n### Naming Conventions\n- Lowercase everything\n- Use underscores or hyphens consistently\n- Be specific but concise: `blog_footer_cta`, not `cta1`\n- Document all UTMs in a spreadsheet\n\n---\n\n## Debugging and Validation\n\n### Testing Tools\n\n| Tool | Use For |\n|------|---------|\n| GA4 DebugView | Real-time event monitoring |\n| GTM Preview Mode | Test triggers before publish |\n| Browser Extensions | Tag Assistant, dataLayer Inspector |\n\n### Validation Checklist\n\n- [ ] Events firing on correct triggers\n- [ ] Property values populating correctly\n- [ ] No duplicate events\n- [ ] Works across browsers and mobile\n- [ ] Conversions recorded correctly\n- [ ] No PII leaking\n\n### Common Issues\n\n| Issue | Check |\n|-------|-------|\n| Events not firing | Trigger config, GTM loaded |\n| Wrong values | Variable path, data layer structure |\n| Duplicate events | Multiple containers, trigger firing twice |\n\n---\n\n## Privacy and Compliance\n\n### Considerations\n- Cookie consent required in EU\u002FUK\u002FCA\n- No PII in analytics properties\n- Data retention settings\n- User deletion capabilities\n\n### Implementation\n- Use consent mode (wait for consent)\n- IP anonymization\n- Only collect what you need\n- Integrate with consent management platform\n\n---\n\n## Output Format\n\n### Tracking Plan Document\n\n```markdown\n# [Site\u002FProduct] Tracking Plan\n\n## Overview\n- Tools: GA4, GTM\n- Last updated: [Date]\n\n## Events\n\n| Event Name | Description | Properties | Trigger |\n|------------|-------------|------------|---------|\n| signup_completed | User completes signup | method, plan | Success page |\n\n## Custom Dimensions\n\n| Name | Scope | Parameter |\n|------|-------|-----------|\n| user_type | User | user_type |\n\n## Conversions\n\n| Conversion | Event | Counting |\n|------------|-------|----------|\n| Signup | signup_completed | Once per session |\n```\n\n---\n\n## Task-Specific Questions\n\n1. What tools are you using (GA4, Mixpanel, etc.)?\n2. What key actions do you want to track?\n3. What decisions will this data inform?\n4. Who implements - dev team or marketing?\n5. Are there privacy\u002Fconsent requirements?\n6. What's already tracked?\n\n---\n\n## Tool Integrations\n\nFor implementation, see the [tools registry](..\u002F..\u002Ftools\u002FREGISTRY.md). Key analytics tools:\n\n| Tool | Best For | MCP | Guide |\n|------|----------|:---:|-------|\n| **GA4** | Web analytics, Google ecosystem | ✓ | [ga4.md](..\u002F..\u002Ftools\u002Fintegrations\u002Fga4.md) |\n| **Mixpanel** | Product analytics, event tracking | - | [mixpanel.md](..\u002F..\u002Ftools\u002Fintegrations\u002Fmixpanel.md) |\n| **Amplitude** | Product analytics, cohort analysis | - | [amplitude.md](..\u002F..\u002Ftools\u002Fintegrations\u002Famplitude.md) |\n| **PostHog** | Open-source analytics, session replay | - | [posthog.md](..\u002F..\u002Ftools\u002Fintegrations\u002Fposthog.md) |\n| **Segment** | Customer data platform, routing | - | [segment.md](..\u002F..\u002Ftools\u002Fintegrations\u002Fsegment.md) |\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fproductivity\u002Fanalytics","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill analytics",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill analytics",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill analytics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fanalytics\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",596,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fanalytics\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"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":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"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":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"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":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"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":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"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":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"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":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]