@miranda0808/maya-codex 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/bin/maya-codex.js +36 -0
- package/package.json +19 -0
- package/payload/.agents/skills/ab-test-setup/SKILL.md +266 -0
- package/payload/.agents/skills/ab-test-setup/evals/evals.json +105 -0
- package/payload/.agents/skills/ab-test-setup/references/sample-size-guide.md +263 -0
- package/payload/.agents/skills/ab-test-setup/references/test-templates.md +277 -0
- package/payload/.agents/skills/ad-creative/SKILL.md +362 -0
- package/payload/.agents/skills/ad-creative/evals/evals.json +90 -0
- package/payload/.agents/skills/ad-creative/references/generative-tools.md +637 -0
- package/payload/.agents/skills/ad-creative/references/platform-specs.md +213 -0
- package/payload/.agents/skills/ai-seo/SKILL.md +398 -0
- package/payload/.agents/skills/ai-seo/evals/evals.json +90 -0
- package/payload/.agents/skills/ai-seo/references/content-patterns.md +285 -0
- package/payload/.agents/skills/ai-seo/references/platform-ranking-factors.md +152 -0
- package/payload/.agents/skills/analytics-tracking/SKILL.md +309 -0
- package/payload/.agents/skills/analytics-tracking/evals/evals.json +90 -0
- package/payload/.agents/skills/analytics-tracking/references/event-library.md +260 -0
- package/payload/.agents/skills/analytics-tracking/references/ga4-implementation.md +300 -0
- package/payload/.agents/skills/analytics-tracking/references/gtm-implementation.md +390 -0
- package/payload/.agents/skills/churn-prevention/SKILL.md +424 -0
- package/payload/.agents/skills/churn-prevention/evals/evals.json +93 -0
- package/payload/.agents/skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
- package/payload/.agents/skills/churn-prevention/references/dunning-playbook.md +408 -0
- package/payload/.agents/skills/cold-email/SKILL.md +158 -0
- package/payload/.agents/skills/cold-email/evals/evals.json +94 -0
- package/payload/.agents/skills/cold-email/references/benchmarks.md +83 -0
- package/payload/.agents/skills/cold-email/references/follow-up-sequences.md +81 -0
- package/payload/.agents/skills/cold-email/references/frameworks.md +90 -0
- package/payload/.agents/skills/cold-email/references/personalization.md +79 -0
- package/payload/.agents/skills/cold-email/references/subject-lines.md +53 -0
- package/payload/.agents/skills/competitor-alternatives/SKILL.md +256 -0
- package/payload/.agents/skills/competitor-alternatives/evals/evals.json +93 -0
- package/payload/.agents/skills/competitor-alternatives/references/content-architecture.md +271 -0
- package/payload/.agents/skills/competitor-alternatives/references/templates.md +223 -0
- package/payload/.agents/skills/content-strategy/SKILL.md +359 -0
- package/payload/.agents/skills/content-strategy/evals/evals.json +90 -0
- package/payload/.agents/skills/copy-editing/SKILL.md +447 -0
- package/payload/.agents/skills/copy-editing/evals/evals.json +89 -0
- package/payload/.agents/skills/copy-editing/references/plain-english-alternatives.md +394 -0
- package/payload/.agents/skills/copywriting/SKILL.md +252 -0
- package/payload/.agents/skills/copywriting/evals/evals.json +111 -0
- package/payload/.agents/skills/copywriting/references/copy-frameworks.md +344 -0
- package/payload/.agents/skills/copywriting/references/natural-transitions.md +272 -0
- package/payload/.agents/skills/email-sequence/SKILL.md +309 -0
- package/payload/.agents/skills/email-sequence/evals/evals.json +93 -0
- package/payload/.agents/skills/email-sequence/references/copy-guidelines.md +113 -0
- package/payload/.agents/skills/email-sequence/references/email-types.md +515 -0
- package/payload/.agents/skills/email-sequence/references/sequence-templates.md +168 -0
- package/payload/.agents/skills/form-cro/SKILL.md +429 -0
- package/payload/.agents/skills/form-cro/evals/evals.json +90 -0
- package/payload/.agents/skills/free-tool-strategy/SKILL.md +178 -0
- package/payload/.agents/skills/free-tool-strategy/evals/evals.json +90 -0
- package/payload/.agents/skills/free-tool-strategy/references/tool-types.md +217 -0
- package/payload/.agents/skills/launch-strategy/SKILL.md +353 -0
- package/payload/.agents/skills/launch-strategy/evals/evals.json +91 -0
- package/payload/.agents/skills/marketing-ideas/SKILL.md +167 -0
- package/payload/.agents/skills/marketing-ideas/evals/evals.json +90 -0
- package/payload/.agents/skills/marketing-ideas/references/ideas-by-category.md +366 -0
- package/payload/.agents/skills/marketing-psychology/SKILL.md +455 -0
- package/payload/.agents/skills/marketing-psychology/evals/evals.json +88 -0
- package/payload/.agents/skills/onboarding-cro/SKILL.md +220 -0
- package/payload/.agents/skills/onboarding-cro/evals/evals.json +92 -0
- package/payload/.agents/skills/onboarding-cro/references/experiments.md +258 -0
- package/payload/.agents/skills/page-cro/SKILL.md +182 -0
- package/payload/.agents/skills/page-cro/evals/evals.json +111 -0
- package/payload/.agents/skills/page-cro/references/experiments.md +248 -0
- package/payload/.agents/skills/paid-ads/SKILL.md +315 -0
- package/payload/.agents/skills/paid-ads/evals/evals.json +90 -0
- package/payload/.agents/skills/paid-ads/references/ad-copy-templates.md +207 -0
- package/payload/.agents/skills/paid-ads/references/audience-targeting.md +243 -0
- package/payload/.agents/skills/paid-ads/references/platform-setup-checklists.md +277 -0
- package/payload/.agents/skills/paywall-upgrade-cro/SKILL.md +227 -0
- package/payload/.agents/skills/paywall-upgrade-cro/evals/evals.json +93 -0
- package/payload/.agents/skills/paywall-upgrade-cro/references/experiments.md +164 -0
- package/payload/.agents/skills/popup-cro/SKILL.md +453 -0
- package/payload/.agents/skills/popup-cro/evals/evals.json +94 -0
- package/payload/.agents/skills/pricing-strategy/SKILL.md +231 -0
- package/payload/.agents/skills/pricing-strategy/evals/evals.json +90 -0
- package/payload/.agents/skills/pricing-strategy/references/research-methods.md +152 -0
- package/payload/.agents/skills/pricing-strategy/references/tier-structure.md +232 -0
- package/payload/.agents/skills/product-marketing-context/SKILL.md +27 -0
- package/payload/.agents/skills/product-marketing-context/evals/evals.json +40 -0
- package/payload/.agents/skills/programmatic-seo/SKILL.md +238 -0
- package/payload/.agents/skills/programmatic-seo/evals/evals.json +94 -0
- package/payload/.agents/skills/programmatic-seo/references/playbooks.md +308 -0
- package/payload/.agents/skills/referral-program/SKILL.md +255 -0
- package/payload/.agents/skills/referral-program/evals/evals.json +89 -0
- package/payload/.agents/skills/referral-program/references/affiliate-programs.md +164 -0
- package/payload/.agents/skills/referral-program/references/program-examples.md +143 -0
- package/payload/.agents/skills/revops/SKILL.md +343 -0
- package/payload/.agents/skills/revops/evals/evals.json +91 -0
- package/payload/.agents/skills/revops/references/automation-playbooks.md +290 -0
- package/payload/.agents/skills/revops/references/lifecycle-definitions.md +278 -0
- package/payload/.agents/skills/revops/references/routing-rules.md +203 -0
- package/payload/.agents/skills/revops/references/scoring-models.md +247 -0
- package/payload/.agents/skills/sales-enablement/SKILL.md +349 -0
- package/payload/.agents/skills/sales-enablement/evals/evals.json +91 -0
- package/payload/.agents/skills/sales-enablement/references/deck-frameworks.md +263 -0
- package/payload/.agents/skills/sales-enablement/references/demo-scripts.md +355 -0
- package/payload/.agents/skills/sales-enablement/references/objection-library.md +270 -0
- package/payload/.agents/skills/sales-enablement/references/one-pager-templates.md +208 -0
- package/payload/.agents/skills/schema-markup/SKILL.md +179 -0
- package/payload/.agents/skills/schema-markup/evals/evals.json +87 -0
- package/payload/.agents/skills/schema-markup/references/schema-examples.md +398 -0
- package/payload/.agents/skills/seo-audit/SKILL.md +412 -0
- package/payload/.agents/skills/seo-audit/evals/evals.json +136 -0
- package/payload/.agents/skills/seo-audit/references/ai-writing-detection.md +200 -0
- package/payload/.agents/skills/signup-flow-cro/SKILL.md +359 -0
- package/payload/.agents/skills/signup-flow-cro/evals/evals.json +88 -0
- package/payload/.agents/skills/site-architecture/SKILL.md +357 -0
- package/payload/.agents/skills/site-architecture/evals/evals.json +88 -0
- package/payload/.agents/skills/site-architecture/references/mermaid-templates.md +216 -0
- package/payload/.agents/skills/site-architecture/references/navigation-patterns.md +305 -0
- package/payload/.agents/skills/site-architecture/references/site-type-templates.md +293 -0
- package/payload/.agents/skills/social-content/SKILL.md +278 -0
- package/payload/.agents/skills/social-content/evals/evals.json +92 -0
- package/payload/.agents/skills/social-content/references/platforms.md +170 -0
- package/payload/.agents/skills/social-content/references/post-templates.md +177 -0
- package/payload/.agents/skills/social-content/references/reverse-engineering.md +195 -0
- package/payload/.maya/executor.md +79 -0
- package/payload/.maya/meta-api-agent.md +48 -0
- package/payload/.maya/modes/consult.md +63 -0
- package/payload/.maya/modes/task.md +97 -0
- package/payload/.maya/planner.md +69 -0
- package/payload/.maya/researcher.md +51 -0
- package/payload/.maya/templates/plan.md +77 -0
- package/payload/.maya/templates/state.md +87 -0
- package/payload/.maya/templates/task-packet.md +75 -0
- package/payload/MAYA-CATALOG.md +115 -0
- package/payload/MAYA-DEPENDENCIES.md +58 -0
- package/payload/MAYA.md +151 -0
- package/payload/campaigns/README.md +14 -0
- package/payload/commands/maya-consult.md +28 -0
- package/payload/commands/maya-task.md +38 -0
- package/payload/commands/product.md +55 -0
- package/payload/research/README.md +14 -0
- package/payload/templates/README.md +15 -0
- package/payload/templates/plan.md +77 -0
- package/payload/templates/state.md +87 -0
- package/payload/templates/task-packet.md +75 -0
- package/payload/tools/REGISTRY.md +368 -0
- package/payload/tools/clis/README.md +187 -0
- package/payload/tools/clis/activecampaign.js +435 -0
- package/payload/tools/clis/adobe-analytics.js +161 -0
- package/payload/tools/clis/ahrefs.js +192 -0
- package/payload/tools/clis/amplitude.js +182 -0
- package/payload/tools/clis/apollo.js +142 -0
- package/payload/tools/clis/beehiiv.js +245 -0
- package/payload/tools/clis/brevo.js +368 -0
- package/payload/tools/clis/buffer.js +260 -0
- package/payload/tools/clis/calendly.js +253 -0
- package/payload/tools/clis/clearbit.js +163 -0
- package/payload/tools/clis/customer-io.js +205 -0
- package/payload/tools/clis/dataforseo.js +257 -0
- package/payload/tools/clis/demio.js +149 -0
- package/payload/tools/clis/dub.js +158 -0
- package/payload/tools/clis/g2.js +186 -0
- package/payload/tools/clis/ga4.js +194 -0
- package/payload/tools/clis/google-ads.js +189 -0
- package/payload/tools/clis/google-search-console.js +166 -0
- package/payload/tools/clis/hotjar.js +167 -0
- package/payload/tools/clis/hunter.js +249 -0
- package/payload/tools/clis/instantly.js +270 -0
- package/payload/tools/clis/intercom.js +399 -0
- package/payload/tools/clis/keywords-everywhere.js +185 -0
- package/payload/tools/clis/kit.js +232 -0
- package/payload/tools/clis/klaviyo.js +348 -0
- package/payload/tools/clis/lemlist.js +221 -0
- package/payload/tools/clis/linkedin-ads.js +185 -0
- package/payload/tools/clis/livestorm.js +292 -0
- package/payload/tools/clis/mailchimp.js +220 -0
- package/payload/tools/clis/mention-me.js +161 -0
- package/payload/tools/clis/meta-ads.js +181 -0
- package/payload/tools/clis/mixpanel.js +248 -0
- package/payload/tools/clis/onesignal.js +241 -0
- package/payload/tools/clis/optimizely.js +233 -0
- package/payload/tools/clis/paddle.js +385 -0
- package/payload/tools/clis/partnerstack.js +382 -0
- package/payload/tools/clis/plausible.js +249 -0
- package/payload/tools/clis/postmark.js +375 -0
- package/payload/tools/clis/resend.js +370 -0
- package/payload/tools/clis/rewardful.js +160 -0
- package/payload/tools/clis/savvycal.js +223 -0
- package/payload/tools/clis/segment.js +192 -0
- package/payload/tools/clis/semrush.js +207 -0
- package/payload/tools/clis/sendgrid.js +211 -0
- package/payload/tools/clis/snov.js +237 -0
- package/payload/tools/clis/tiktok-ads.js +190 -0
- package/payload/tools/clis/tolt.js +153 -0
- package/payload/tools/clis/trustpilot.js +276 -0
- package/payload/tools/clis/typeform.js +269 -0
- package/payload/tools/clis/wistia.js +256 -0
- package/payload/tools/clis/zapier.js +160 -0
- package/payload/tools/integrations/activecampaign.md +337 -0
- package/payload/tools/integrations/adobe-analytics.md +156 -0
- package/payload/tools/integrations/ahrefs.md +142 -0
- package/payload/tools/integrations/amplitude.md +135 -0
- package/payload/tools/integrations/apollo.md +148 -0
- package/payload/tools/integrations/beehiiv.md +157 -0
- package/payload/tools/integrations/brevo.md +268 -0
- package/payload/tools/integrations/buffer.md +138 -0
- package/payload/tools/integrations/calendly.md +161 -0
- package/payload/tools/integrations/clearbit.md +142 -0
- package/payload/tools/integrations/customer-io.md +187 -0
- package/payload/tools/integrations/dataforseo.md +165 -0
- package/payload/tools/integrations/demio.md +182 -0
- package/payload/tools/integrations/dub-co.md +160 -0
- package/payload/tools/integrations/g2.md +179 -0
- package/payload/tools/integrations/ga4.md +126 -0
- package/payload/tools/integrations/google-ads.md +159 -0
- package/payload/tools/integrations/google-search-console.md +147 -0
- package/payload/tools/integrations/hotjar.md +147 -0
- package/payload/tools/integrations/hubspot.md +178 -0
- package/payload/tools/integrations/hunter.md +90 -0
- package/payload/tools/integrations/instantly.md +104 -0
- package/payload/tools/integrations/intercom.md +292 -0
- package/payload/tools/integrations/keywords-everywhere.md +207 -0
- package/payload/tools/integrations/kit.md +167 -0
- package/payload/tools/integrations/klaviyo.md +228 -0
- package/payload/tools/integrations/lemlist.md +110 -0
- package/payload/tools/integrations/linkedin-ads.md +164 -0
- package/payload/tools/integrations/livestorm.md +313 -0
- package/payload/tools/integrations/mailchimp.md +150 -0
- package/payload/tools/integrations/mention-me.md +160 -0
- package/payload/tools/integrations/meta-ads.md +147 -0
- package/payload/tools/integrations/mixpanel.md +137 -0
- package/payload/tools/integrations/onesignal.md +229 -0
- package/payload/tools/integrations/optimizely.md +171 -0
- package/payload/tools/integrations/paddle.md +212 -0
- package/payload/tools/integrations/partnerstack.md +222 -0
- package/payload/tools/integrations/plausible.md +177 -0
- package/payload/tools/integrations/posthog.md +151 -0
- package/payload/tools/integrations/postmark.md +234 -0
- package/payload/tools/integrations/resend.md +168 -0
- package/payload/tools/integrations/rewardful.md +147 -0
- package/payload/tools/integrations/salesforce.md +150 -0
- package/payload/tools/integrations/savvycal.md +181 -0
- package/payload/tools/integrations/segment.md +159 -0
- package/payload/tools/integrations/semrush.md +121 -0
- package/payload/tools/integrations/sendgrid.md +161 -0
- package/payload/tools/integrations/shopify.md +176 -0
- package/payload/tools/integrations/snov.md +94 -0
- package/payload/tools/integrations/stripe.md +148 -0
- package/payload/tools/integrations/tiktok-ads.md +161 -0
- package/payload/tools/integrations/tolt.md +144 -0
- package/payload/tools/integrations/trustpilot.md +191 -0
- package/payload/tools/integrations/typeform.md +190 -0
- package/payload/tools/integrations/webflow.md +198 -0
- package/payload/tools/integrations/wistia.md +164 -0
- package/payload/tools/integrations/wordpress.md +175 -0
- package/payload/tools/integrations/zapier.md +150 -0
- package/payload/tools/meta/README.md +55 -0
- package/payload/tools/meta/meta-cache-schema.md +65 -0
- package/payload/tools/meta/meta-fetch.ps1 +324 -0
- package/payload/tools/meta/meta-fetch.test.ps1 +38 -0
- package/vendor/shared-installer/manifests/claude-files.json +13 -0
- package/vendor/shared-installer/manifests/codex-files.json +13 -0
- package/vendor/shared-installer/manifests/common-files.json +13 -0
- package/vendor/shared-installer/package.json +15 -0
- package/vendor/shared-installer/src/bootstrap.js +12 -0
- package/vendor/shared-installer/src/cli-options.js +53 -0
- package/vendor/shared-installer/src/fs.js +105 -0
- package/vendor/shared-installer/src/index.js +44 -0
- package/vendor/shared-installer/src/install.js +157 -0
- package/vendor/shared-installer/src/manifest.js +52 -0
- package/vendor/shared-installer/templates/claude/.claude/skills/.gitkeep +1 -0
- package/vendor/shared-installer/templates/claude/CLAUDE.md +27 -0
- package/vendor/shared-installer/templates/codex/.agent/skills/.gitkeep +1 -0
- package/vendor/shared-installer/templates/codex/AGENTS.md +27 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: analytics-tracking
|
|
3
|
+
description: When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For A/B test measurement, see ab-test-setup.
|
|
4
|
+
metadata:
|
|
5
|
+
version: 1.1.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Analytics Tracking
|
|
9
|
+
|
|
10
|
+
You 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.
|
|
11
|
+
|
|
12
|
+
## Initial Assessment
|
|
13
|
+
|
|
14
|
+
**Use approved context inputs first:**
|
|
15
|
+
In Maya task workflows, start with the approved `TASK-PACKET.md` inputs and listed brand sections. If `PRODUCT.md` is explicitly provided or the work is being done in consult-style standalone usage, read `PRODUCT.md` before asking questions. If `PRODUCT.md` is missing, do not pretend the output is fully brand-calibrated.
|
|
16
|
+
|
|
17
|
+
Before implementing tracking, understand:
|
|
18
|
+
|
|
19
|
+
1. **Business Context** - What decisions will this data inform? What are key conversions?
|
|
20
|
+
2. **Current State** - What tracking exists? What tools are in use?
|
|
21
|
+
3. **Technical Context** - What's the tech stack? Any privacy/compliance requirements?
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Core Principles
|
|
26
|
+
|
|
27
|
+
### 1. Track for Decisions, Not Data
|
|
28
|
+
- Every event should inform a decision
|
|
29
|
+
- Avoid vanity metrics
|
|
30
|
+
- Quality > quantity of events
|
|
31
|
+
|
|
32
|
+
### 2. Start with the Questions
|
|
33
|
+
- What do you need to know?
|
|
34
|
+
- What actions will you take based on this data?
|
|
35
|
+
- Work backwards to what you need to track
|
|
36
|
+
|
|
37
|
+
### 3. Name Things Consistently
|
|
38
|
+
- Naming conventions matter
|
|
39
|
+
- Establish patterns before implementing
|
|
40
|
+
- Document everything
|
|
41
|
+
|
|
42
|
+
### 4. Maintain Data Quality
|
|
43
|
+
- Validate implementation
|
|
44
|
+
- Monitor for issues
|
|
45
|
+
- Clean data > more data
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Tracking Plan Framework
|
|
50
|
+
|
|
51
|
+
### Structure
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
Event Name | Category | Properties | Trigger | Notes
|
|
55
|
+
---------- | -------- | ---------- | ------- | -----
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Event Types
|
|
59
|
+
|
|
60
|
+
| Type | Examples |
|
|
61
|
+
|------|----------|
|
|
62
|
+
| Pageviews | Automatic, enhanced with metadata |
|
|
63
|
+
| User Actions | Button clicks, form submissions, feature usage |
|
|
64
|
+
| System Events | Signup completed, purchase, subscription changed |
|
|
65
|
+
| Custom Conversions | Goal completions, funnel stages |
|
|
66
|
+
|
|
67
|
+
**For comprehensive event lists**: See [references/event-library.md](references/event-library.md)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Event Naming Conventions
|
|
72
|
+
|
|
73
|
+
### Recommended Format: Object-Action
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
signup_completed
|
|
77
|
+
button_clicked
|
|
78
|
+
form_submitted
|
|
79
|
+
article_read
|
|
80
|
+
checkout_payment_completed
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Best Practices
|
|
84
|
+
- Lowercase with underscores
|
|
85
|
+
- Be specific: `cta_hero_clicked` vs. `button_clicked`
|
|
86
|
+
- Include context in properties, not event name
|
|
87
|
+
- Avoid spaces and special characters
|
|
88
|
+
- Document decisions
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Essential Events
|
|
93
|
+
|
|
94
|
+
### Marketing Site
|
|
95
|
+
|
|
96
|
+
| Event | Properties |
|
|
97
|
+
|-------|------------|
|
|
98
|
+
| cta_clicked | button_text, location |
|
|
99
|
+
| form_submitted | form_type |
|
|
100
|
+
| signup_completed | method, source |
|
|
101
|
+
| demo_requested | - |
|
|
102
|
+
|
|
103
|
+
### Product/App
|
|
104
|
+
|
|
105
|
+
| Event | Properties |
|
|
106
|
+
|-------|------------|
|
|
107
|
+
| onboarding_step_completed | step_number, step_name |
|
|
108
|
+
| feature_used | feature_name |
|
|
109
|
+
| purchase_completed | plan, value |
|
|
110
|
+
| subscription_cancelled | reason |
|
|
111
|
+
|
|
112
|
+
**For full event library by business type**: See [references/event-library.md](references/event-library.md)
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Event Properties
|
|
117
|
+
|
|
118
|
+
### Standard Properties
|
|
119
|
+
|
|
120
|
+
| Category | Properties |
|
|
121
|
+
|----------|------------|
|
|
122
|
+
| Page | page_title, page_location, page_referrer |
|
|
123
|
+
| User | user_id, user_type, account_id, plan_type |
|
|
124
|
+
| Campaign | source, medium, campaign, content, term |
|
|
125
|
+
| Product | product_id, product_name, category, price |
|
|
126
|
+
|
|
127
|
+
### Best Practices
|
|
128
|
+
- Use consistent property names
|
|
129
|
+
- Include relevant context
|
|
130
|
+
- Don't duplicate automatic properties
|
|
131
|
+
- Avoid PII in properties
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## GA4 Implementation
|
|
136
|
+
|
|
137
|
+
### Quick Setup
|
|
138
|
+
|
|
139
|
+
1. Create GA4 property and data stream
|
|
140
|
+
2. Install gtag.js or GTM
|
|
141
|
+
3. Enable enhanced measurement
|
|
142
|
+
4. Configure custom events
|
|
143
|
+
5. Mark conversions in Admin
|
|
144
|
+
|
|
145
|
+
### Custom Event Example
|
|
146
|
+
|
|
147
|
+
```javascript
|
|
148
|
+
gtag('event', 'signup_completed', {
|
|
149
|
+
'method': 'email',
|
|
150
|
+
'plan': 'free'
|
|
151
|
+
});
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**For detailed GA4 implementation**: See [references/ga4-implementation.md](references/ga4-implementation.md)
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Google Tag Manager
|
|
159
|
+
|
|
160
|
+
### Container Structure
|
|
161
|
+
|
|
162
|
+
| Component | Purpose |
|
|
163
|
+
|-----------|---------|
|
|
164
|
+
| Tags | Code that executes (GA4, pixels) |
|
|
165
|
+
| Triggers | When tags fire (page view, click) |
|
|
166
|
+
| Variables | Dynamic values (click text, data layer) |
|
|
167
|
+
|
|
168
|
+
### Data Layer Pattern
|
|
169
|
+
|
|
170
|
+
```javascript
|
|
171
|
+
dataLayer.push({
|
|
172
|
+
'event': 'form_submitted',
|
|
173
|
+
'form_name': 'contact',
|
|
174
|
+
'form_location': 'footer'
|
|
175
|
+
});
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**For detailed GTM implementation**: See [references/gtm-implementation.md](references/gtm-implementation.md)
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## UTM Parameter Strategy
|
|
183
|
+
|
|
184
|
+
### Standard Parameters
|
|
185
|
+
|
|
186
|
+
| Parameter | Purpose | Example |
|
|
187
|
+
|-----------|---------|---------|
|
|
188
|
+
| utm_source | Traffic source | google, newsletter |
|
|
189
|
+
| utm_medium | Marketing medium | cpc, email, social |
|
|
190
|
+
| utm_campaign | Campaign name | spring_sale |
|
|
191
|
+
| utm_content | Differentiate versions | hero_cta |
|
|
192
|
+
| utm_term | Paid search keywords | running+shoes |
|
|
193
|
+
|
|
194
|
+
### Naming Conventions
|
|
195
|
+
- Lowercase everything
|
|
196
|
+
- Use underscores or hyphens consistently
|
|
197
|
+
- Be specific but concise: `blog_footer_cta`, not `cta1`
|
|
198
|
+
- Document all UTMs in a spreadsheet
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Debugging and Validation
|
|
203
|
+
|
|
204
|
+
### Testing Tools
|
|
205
|
+
|
|
206
|
+
| Tool | Use For |
|
|
207
|
+
|------|---------|
|
|
208
|
+
| GA4 DebugView | Real-time event monitoring |
|
|
209
|
+
| GTM Preview Mode | Test triggers before publish |
|
|
210
|
+
| Browser Extensions | Tag Assistant, dataLayer Inspector |
|
|
211
|
+
|
|
212
|
+
### Validation Checklist
|
|
213
|
+
|
|
214
|
+
- [ ] Events firing on correct triggers
|
|
215
|
+
- [ ] Property values populating correctly
|
|
216
|
+
- [ ] No duplicate events
|
|
217
|
+
- [ ] Works across browsers and mobile
|
|
218
|
+
- [ ] Conversions recorded correctly
|
|
219
|
+
- [ ] No PII leaking
|
|
220
|
+
|
|
221
|
+
### Common Issues
|
|
222
|
+
|
|
223
|
+
| Issue | Check |
|
|
224
|
+
|-------|-------|
|
|
225
|
+
| Events not firing | Trigger config, GTM loaded |
|
|
226
|
+
| Wrong values | Variable path, data layer structure |
|
|
227
|
+
| Duplicate events | Multiple containers, trigger firing twice |
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Privacy and Compliance
|
|
232
|
+
|
|
233
|
+
### Considerations
|
|
234
|
+
- Cookie consent required in EU/UK/CA
|
|
235
|
+
- No PII in analytics properties
|
|
236
|
+
- Data retention settings
|
|
237
|
+
- User deletion capabilities
|
|
238
|
+
|
|
239
|
+
### Implementation
|
|
240
|
+
- Use consent mode (wait for consent)
|
|
241
|
+
- IP anonymization
|
|
242
|
+
- Only collect what you need
|
|
243
|
+
- Integrate with consent management platform
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## Output Format
|
|
248
|
+
|
|
249
|
+
### Tracking Plan Document
|
|
250
|
+
|
|
251
|
+
```markdown
|
|
252
|
+
# [Site/Product] Tracking Plan
|
|
253
|
+
|
|
254
|
+
## Overview
|
|
255
|
+
- Tools: GA4, GTM
|
|
256
|
+
- Last updated: [Date]
|
|
257
|
+
|
|
258
|
+
## Events
|
|
259
|
+
|
|
260
|
+
| Event Name | Description | Properties | Trigger |
|
|
261
|
+
|------------|-------------|------------|---------|
|
|
262
|
+
| signup_completed | User completes signup | method, plan | Success page |
|
|
263
|
+
|
|
264
|
+
## Custom Dimensions
|
|
265
|
+
|
|
266
|
+
| Name | Scope | Parameter |
|
|
267
|
+
|------|-------|-----------|
|
|
268
|
+
| user_type | User | user_type |
|
|
269
|
+
|
|
270
|
+
## Conversions
|
|
271
|
+
|
|
272
|
+
| Conversion | Event | Counting |
|
|
273
|
+
|------------|-------|----------|
|
|
274
|
+
| Signup | signup_completed | Once per session |
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Task-Specific Questions
|
|
280
|
+
|
|
281
|
+
1. What tools are you using (GA4, Mixpanel, etc.)?
|
|
282
|
+
2. What key actions do you want to track?
|
|
283
|
+
3. What decisions will this data inform?
|
|
284
|
+
4. Who implements - dev team or marketing?
|
|
285
|
+
5. Are there privacy/consent requirements?
|
|
286
|
+
6. What's already tracked?
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Tool Integrations
|
|
291
|
+
|
|
292
|
+
For implementation, see the [tools registry](../../tools/REGISTRY.md). Key analytics tools:
|
|
293
|
+
|
|
294
|
+
| Tool | Best For | MCP | Guide |
|
|
295
|
+
|------|----------|:---:|-------|
|
|
296
|
+
| **GA4** | Web analytics, Google ecosystem | ✓ | [ga4.md](../../tools/integrations/ga4.md) |
|
|
297
|
+
| **Mixpanel** | Product analytics, event tracking | - | [mixpanel.md](../../tools/integrations/mixpanel.md) |
|
|
298
|
+
| **Amplitude** | Product analytics, cohort analysis | - | [amplitude.md](../../tools/integrations/amplitude.md) |
|
|
299
|
+
| **PostHog** | Open-source analytics, session replay | - | [posthog.md](../../tools/integrations/posthog.md) |
|
|
300
|
+
| **Segment** | Customer data platform, routing | - | [segment.md](../../tools/integrations/segment.md) |
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Related Skills
|
|
305
|
+
|
|
306
|
+
- **ab-test-setup**: For experiment tracking
|
|
307
|
+
- **seo-audit**: For organic traffic analysis
|
|
308
|
+
- **page-cro**: For conversion optimization (uses this data)
|
|
309
|
+
- **revops**: For pipeline metrics, CRM tracking, and revenue attribution
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "analytics-tracking",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"prompt": "Help me set up analytics tracking for our B2B SaaS product. We use GA4 and GTM. We need to track signups, feature usage, and upgrade events.",
|
|
7
|
+
"expected_output": "Should use approved TASK-PACKET.md inputs first in Maya task workflows, and read PRODUCT.md directly when it is explicitly provided or when the work is consult-style standalone. Should apply the 'track for decisions' principle — ask what decisions the tracking will inform. Should use the event naming convention (object_action, lowercase with underscores). Should define essential events for SaaS: signup_completed, trial_started, feature_used, plan_upgraded, etc. Should provide GA4 implementation details with proper event parameters. Should include GTM data layer push examples. Should organize output as a tracking plan with event name, trigger, parameters, and purpose for each event.",
|
|
8
|
+
"assertions": [
|
|
9
|
+
"Uses approved TASK-PACKET.md inputs or PRODUCT.md context first",
|
|
10
|
+
"Applies 'track for decisions' principle",
|
|
11
|
+
"Uses object_action naming convention",
|
|
12
|
+
"Defines essential SaaS events (signup, feature usage, upgrade)",
|
|
13
|
+
"Provides GA4 implementation details",
|
|
14
|
+
"Includes GTM data layer examples",
|
|
15
|
+
"Output follows tracking plan format"
|
|
16
|
+
],
|
|
17
|
+
"files": []
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": 2,
|
|
21
|
+
"prompt": "What UTM parameters should we use? We run ads on Google, Meta, and LinkedIn, plus send a weekly newsletter and post on LinkedIn organically.",
|
|
22
|
+
"expected_output": "Should apply the UTM parameter strategy framework. Should define consistent UTM conventions: source (google, meta, linkedin, newsletter), medium (cpc, paid-social, email, organic-social), campaign (naming convention with date or identifier). Should provide specific UTM examples for each channel mentioned. Should warn about common UTM mistakes (inconsistent casing, redundant parameters, missing medium). Should recommend a UTM tracking spreadsheet or naming convention document.",
|
|
23
|
+
"assertions": [
|
|
24
|
+
"Applies UTM parameter strategy",
|
|
25
|
+
"Defines source, medium, and campaign conventions",
|
|
26
|
+
"Provides specific UTM examples for each channel",
|
|
27
|
+
"Uses consistent naming conventions (lowercase)",
|
|
28
|
+
"Warns about common UTM mistakes",
|
|
29
|
+
"Recommends tracking documentation"
|
|
30
|
+
],
|
|
31
|
+
"files": []
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": 3,
|
|
35
|
+
"prompt": "our tracking seems broken — we're seeing duplicate events and our conversion numbers in GA4 don't match what our database shows. help?",
|
|
36
|
+
"expected_output": "Should trigger on casual phrasing. Should apply the debugging and validation framework. Should systematically check for common issues: duplicate GTM tags firing, missing event deduplication, incorrect trigger conditions, cross-domain tracking issues, consent mode filtering. Should provide specific debugging steps: use GA4 DebugView, GTM Preview mode, browser developer tools. Should address the GA4 vs database discrepancy (common causes: consent mode, ad blockers, client-side vs server-side tracking, session timeout differences).",
|
|
37
|
+
"assertions": [
|
|
38
|
+
"Triggers on casual phrasing",
|
|
39
|
+
"Applies debugging and validation framework",
|
|
40
|
+
"Checks for duplicate tag firing",
|
|
41
|
+
"Provides specific debugging tools (GA4 DebugView, GTM Preview)",
|
|
42
|
+
"Addresses GA4 vs database discrepancy",
|
|
43
|
+
"Lists common causes of data mismatches",
|
|
44
|
+
"Provides systematic troubleshooting steps"
|
|
45
|
+
],
|
|
46
|
+
"files": []
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": 4,
|
|
50
|
+
"prompt": "We're launching an e-commerce store and need to set up tracking from scratch. What events do we absolutely need?",
|
|
51
|
+
"expected_output": "Should reference the essential events by site type, specifically e-commerce. Should define the e-commerce event taxonomy: product_viewed, product_added_to_cart, cart_viewed, checkout_started, checkout_step_completed, purchase_completed, product_removed_from_cart. Should include enhanced e-commerce parameters (item_id, item_name, price, quantity, etc.). Should follow object_action naming convention. Should organize as a tracking plan with priorities (must-have vs nice-to-have).",
|
|
52
|
+
"assertions": [
|
|
53
|
+
"References essential events for e-commerce site type",
|
|
54
|
+
"Defines full e-commerce event taxonomy",
|
|
55
|
+
"Includes enhanced e-commerce parameters",
|
|
56
|
+
"Follows object_action naming convention",
|
|
57
|
+
"Organizes by priority (must-have vs nice-to-have)",
|
|
58
|
+
"Provides tracking plan format output"
|
|
59
|
+
],
|
|
60
|
+
"files": []
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": 5,
|
|
64
|
+
"prompt": "We need to make sure our tracking is GDPR compliant. We have European users and we're using GA4, Hotjar, and Facebook Pixel.",
|
|
65
|
+
"expected_output": "Should apply the privacy and compliance framework. Should address GDPR requirements for each tool: consent before tracking, consent management platform (CMP) setup, GA4 consent mode configuration, conditional loading of Hotjar and Facebook Pixel. Should recommend a consent hierarchy (necessary, analytics, marketing). Should provide GTM implementation for consent-based tag firing. Should mention data retention settings in GA4. Should address cookie banner requirements.",
|
|
66
|
+
"assertions": [
|
|
67
|
+
"Applies privacy and compliance framework",
|
|
68
|
+
"Addresses GDPR requirements specifically",
|
|
69
|
+
"Recommends consent management platform",
|
|
70
|
+
"Covers GA4 consent mode configuration",
|
|
71
|
+
"Addresses conditional loading for each tool",
|
|
72
|
+
"Provides consent hierarchy",
|
|
73
|
+
"Mentions data retention settings"
|
|
74
|
+
],
|
|
75
|
+
"files": []
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": 6,
|
|
79
|
+
"prompt": "Help me set up tracking for our A/B test. We want to measure which version of our pricing page converts better.",
|
|
80
|
+
"expected_output": "Should recognize this overlaps with A/B test setup, not just analytics tracking. Should defer to or cross-reference the ab-test-setup skill for the experiment design, hypothesis, and statistical analysis. May help with the tracking implementation (events to fire, parameters to include) but should make clear that ab-test-setup is the right skill for the experiment framework.",
|
|
81
|
+
"assertions": [
|
|
82
|
+
"Recognizes overlap with A/B test setup",
|
|
83
|
+
"References or defers to ab-test-setup skill",
|
|
84
|
+
"May help with tracking implementation specifics",
|
|
85
|
+
"Does not attempt to design the full experiment"
|
|
86
|
+
],
|
|
87
|
+
"files": []
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# Event Library Reference
|
|
2
|
+
|
|
3
|
+
Comprehensive list of events to track by business type and context.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
- Marketing Site Events (navigation & engagement, CTA & form interactions, conversion events)
|
|
7
|
+
- Product/App Events (onboarding, core usage, errors & support)
|
|
8
|
+
- Monetization Events (pricing & checkout, subscription management)
|
|
9
|
+
- E-commerce Events (browsing, cart, checkout, post-purchase)
|
|
10
|
+
- B2B / SaaS Specific Events (team & collaboration, integration events, account events)
|
|
11
|
+
- Event Properties (Parameters)
|
|
12
|
+
- Funnel Event Sequences
|
|
13
|
+
|
|
14
|
+
## Marketing Site Events
|
|
15
|
+
|
|
16
|
+
### Navigation & Engagement
|
|
17
|
+
|
|
18
|
+
| Event Name | Description | Properties |
|
|
19
|
+
|------------|-------------|------------|
|
|
20
|
+
| page_view | Page loaded (enhanced) | page_title, page_location, content_group |
|
|
21
|
+
| scroll_depth | User scrolled to threshold | depth (25, 50, 75, 100) |
|
|
22
|
+
| outbound_link_clicked | Click to external site | link_url, link_text |
|
|
23
|
+
| internal_link_clicked | Click within site | link_url, link_text, location |
|
|
24
|
+
| video_played | Video started | video_id, video_title, duration |
|
|
25
|
+
| video_completed | Video finished | video_id, video_title, duration |
|
|
26
|
+
|
|
27
|
+
### CTA & Form Interactions
|
|
28
|
+
|
|
29
|
+
| Event Name | Description | Properties |
|
|
30
|
+
|------------|-------------|------------|
|
|
31
|
+
| cta_clicked | Call to action clicked | button_text, cta_location, page |
|
|
32
|
+
| form_started | User began form | form_name, form_location |
|
|
33
|
+
| form_field_completed | Field filled | form_name, field_name |
|
|
34
|
+
| form_submitted | Form successfully sent | form_name, form_location |
|
|
35
|
+
| form_error | Form validation failed | form_name, error_type |
|
|
36
|
+
| resource_downloaded | Asset downloaded | resource_name, resource_type |
|
|
37
|
+
|
|
38
|
+
### Conversion Events
|
|
39
|
+
|
|
40
|
+
| Event Name | Description | Properties |
|
|
41
|
+
|------------|-------------|------------|
|
|
42
|
+
| signup_started | Initiated signup | source, page |
|
|
43
|
+
| signup_completed | Finished signup | method, plan, source |
|
|
44
|
+
| demo_requested | Demo form submitted | company_size, industry |
|
|
45
|
+
| contact_submitted | Contact form sent | inquiry_type |
|
|
46
|
+
| newsletter_subscribed | Email list signup | source, list_name |
|
|
47
|
+
| trial_started | Free trial began | plan, source |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Product/App Events
|
|
52
|
+
|
|
53
|
+
### Onboarding
|
|
54
|
+
|
|
55
|
+
| Event Name | Description | Properties |
|
|
56
|
+
|------------|-------------|------------|
|
|
57
|
+
| signup_completed | Account created | method, referral_source |
|
|
58
|
+
| onboarding_started | Began onboarding | - |
|
|
59
|
+
| onboarding_step_completed | Step finished | step_number, step_name |
|
|
60
|
+
| onboarding_completed | All steps done | steps_completed, time_to_complete |
|
|
61
|
+
| onboarding_skipped | User skipped onboarding | step_skipped_at |
|
|
62
|
+
| first_key_action_completed | Aha moment reached | action_type |
|
|
63
|
+
|
|
64
|
+
### Core Usage
|
|
65
|
+
|
|
66
|
+
| Event Name | Description | Properties |
|
|
67
|
+
|------------|-------------|------------|
|
|
68
|
+
| session_started | App session began | session_number |
|
|
69
|
+
| feature_used | Feature interaction | feature_name, feature_category |
|
|
70
|
+
| action_completed | Core action done | action_type, count |
|
|
71
|
+
| content_created | User created content | content_type |
|
|
72
|
+
| content_edited | User modified content | content_type |
|
|
73
|
+
| content_deleted | User removed content | content_type |
|
|
74
|
+
| search_performed | In-app search | query, results_count |
|
|
75
|
+
| settings_changed | Settings modified | setting_name, new_value |
|
|
76
|
+
| invite_sent | User invited others | invite_type, count |
|
|
77
|
+
|
|
78
|
+
### Errors & Support
|
|
79
|
+
|
|
80
|
+
| Event Name | Description | Properties |
|
|
81
|
+
|------------|-------------|------------|
|
|
82
|
+
| error_occurred | Error experienced | error_type, error_message, page |
|
|
83
|
+
| help_opened | Help accessed | help_type, page |
|
|
84
|
+
| support_contacted | Support request made | contact_method, issue_type |
|
|
85
|
+
| feedback_submitted | User feedback given | feedback_type, rating |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Monetization Events
|
|
90
|
+
|
|
91
|
+
### Pricing & Checkout
|
|
92
|
+
|
|
93
|
+
| Event Name | Description | Properties |
|
|
94
|
+
|------------|-------------|------------|
|
|
95
|
+
| pricing_viewed | Pricing page seen | source |
|
|
96
|
+
| plan_selected | Plan chosen | plan_name, billing_cycle |
|
|
97
|
+
| checkout_started | Began checkout | plan, value |
|
|
98
|
+
| payment_info_entered | Payment submitted | payment_method |
|
|
99
|
+
| purchase_completed | Purchase successful | plan, value, currency, transaction_id |
|
|
100
|
+
| purchase_failed | Purchase failed | error_reason, plan |
|
|
101
|
+
|
|
102
|
+
### Subscription Management
|
|
103
|
+
|
|
104
|
+
| Event Name | Description | Properties |
|
|
105
|
+
|------------|-------------|------------|
|
|
106
|
+
| trial_started | Trial began | plan, trial_length |
|
|
107
|
+
| trial_ended | Trial expired | plan, converted (bool) |
|
|
108
|
+
| subscription_upgraded | Plan upgraded | from_plan, to_plan, value |
|
|
109
|
+
| subscription_downgraded | Plan downgraded | from_plan, to_plan |
|
|
110
|
+
| subscription_cancelled | Cancelled | plan, reason, tenure |
|
|
111
|
+
| subscription_renewed | Renewed | plan, value |
|
|
112
|
+
| billing_updated | Payment method changed | - |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## E-commerce Events
|
|
117
|
+
|
|
118
|
+
### Browsing
|
|
119
|
+
|
|
120
|
+
| Event Name | Description | Properties |
|
|
121
|
+
|------------|-------------|------------|
|
|
122
|
+
| product_viewed | Product page viewed | product_id, product_name, category, price |
|
|
123
|
+
| product_list_viewed | Category/list viewed | list_name, products[] |
|
|
124
|
+
| product_searched | Search performed | query, results_count |
|
|
125
|
+
| product_filtered | Filters applied | filter_type, filter_value |
|
|
126
|
+
| product_sorted | Sort applied | sort_by, sort_order |
|
|
127
|
+
|
|
128
|
+
### Cart
|
|
129
|
+
|
|
130
|
+
| Event Name | Description | Properties |
|
|
131
|
+
|------------|-------------|------------|
|
|
132
|
+
| product_added_to_cart | Item added | product_id, product_name, price, quantity |
|
|
133
|
+
| product_removed_from_cart | Item removed | product_id, product_name, price, quantity |
|
|
134
|
+
| cart_viewed | Cart page viewed | cart_value, items_count |
|
|
135
|
+
|
|
136
|
+
### Checkout
|
|
137
|
+
|
|
138
|
+
| Event Name | Description | Properties |
|
|
139
|
+
|------------|-------------|------------|
|
|
140
|
+
| checkout_started | Checkout began | cart_value, items_count |
|
|
141
|
+
| checkout_step_completed | Step finished | step_number, step_name |
|
|
142
|
+
| shipping_info_entered | Address entered | shipping_method |
|
|
143
|
+
| payment_info_entered | Payment entered | payment_method |
|
|
144
|
+
| coupon_applied | Coupon used | coupon_code, discount_value |
|
|
145
|
+
| purchase_completed | Order placed | transaction_id, value, currency, items[] |
|
|
146
|
+
|
|
147
|
+
### Post-Purchase
|
|
148
|
+
|
|
149
|
+
| Event Name | Description | Properties |
|
|
150
|
+
|------------|-------------|------------|
|
|
151
|
+
| order_confirmed | Confirmation viewed | transaction_id |
|
|
152
|
+
| refund_requested | Refund initiated | transaction_id, reason |
|
|
153
|
+
| refund_completed | Refund processed | transaction_id, value |
|
|
154
|
+
| review_submitted | Product reviewed | product_id, rating |
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## B2B / SaaS Specific Events
|
|
159
|
+
|
|
160
|
+
### Team & Collaboration
|
|
161
|
+
|
|
162
|
+
| Event Name | Description | Properties |
|
|
163
|
+
|------------|-------------|------------|
|
|
164
|
+
| team_created | New team/org made | team_size, plan |
|
|
165
|
+
| team_member_invited | Invite sent | role, invite_method |
|
|
166
|
+
| team_member_joined | Member accepted | role |
|
|
167
|
+
| team_member_removed | Member removed | role |
|
|
168
|
+
| role_changed | Permissions updated | user_id, old_role, new_role |
|
|
169
|
+
|
|
170
|
+
### Integration Events
|
|
171
|
+
|
|
172
|
+
| Event Name | Description | Properties |
|
|
173
|
+
|------------|-------------|------------|
|
|
174
|
+
| integration_viewed | Integration page seen | integration_name |
|
|
175
|
+
| integration_started | Setup began | integration_name |
|
|
176
|
+
| integration_connected | Successfully connected | integration_name |
|
|
177
|
+
| integration_disconnected | Removed integration | integration_name, reason |
|
|
178
|
+
|
|
179
|
+
### Account Events
|
|
180
|
+
|
|
181
|
+
| Event Name | Description | Properties |
|
|
182
|
+
|------------|-------------|------------|
|
|
183
|
+
| account_created | New account | source, plan |
|
|
184
|
+
| account_upgraded | Plan upgrade | from_plan, to_plan |
|
|
185
|
+
| account_churned | Account closed | reason, tenure, mrr_lost |
|
|
186
|
+
| account_reactivated | Returned customer | previous_tenure, new_plan |
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Event Properties (Parameters)
|
|
191
|
+
|
|
192
|
+
### Standard Properties to Include
|
|
193
|
+
|
|
194
|
+
**User Context:**
|
|
195
|
+
```
|
|
196
|
+
user_id: "12345"
|
|
197
|
+
user_type: "free" | "trial" | "paid"
|
|
198
|
+
account_id: "acct_123"
|
|
199
|
+
plan_type: "starter" | "pro" | "enterprise"
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Session Context:**
|
|
203
|
+
```
|
|
204
|
+
session_id: "sess_abc"
|
|
205
|
+
session_number: 5
|
|
206
|
+
page: "/pricing"
|
|
207
|
+
referrer: "https://google.com"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Campaign Context:**
|
|
211
|
+
```
|
|
212
|
+
source: "google"
|
|
213
|
+
medium: "cpc"
|
|
214
|
+
campaign: "spring_sale"
|
|
215
|
+
content: "hero_cta"
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Product Context (E-commerce):**
|
|
219
|
+
```
|
|
220
|
+
product_id: "SKU123"
|
|
221
|
+
product_name: "Product Name"
|
|
222
|
+
category: "Category"
|
|
223
|
+
price: 99.99
|
|
224
|
+
quantity: 1
|
|
225
|
+
currency: "USD"
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Timing:**
|
|
229
|
+
```
|
|
230
|
+
timestamp: "2024-01-15T10:30:00Z"
|
|
231
|
+
time_on_page: 45
|
|
232
|
+
session_duration: 300
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Funnel Event Sequences
|
|
238
|
+
|
|
239
|
+
### Signup Funnel
|
|
240
|
+
1. signup_started
|
|
241
|
+
2. signup_step_completed (email)
|
|
242
|
+
3. signup_step_completed (password)
|
|
243
|
+
4. signup_completed
|
|
244
|
+
5. onboarding_started
|
|
245
|
+
|
|
246
|
+
### Purchase Funnel
|
|
247
|
+
1. pricing_viewed
|
|
248
|
+
2. plan_selected
|
|
249
|
+
3. checkout_started
|
|
250
|
+
4. payment_info_entered
|
|
251
|
+
5. purchase_completed
|
|
252
|
+
|
|
253
|
+
### E-commerce Funnel
|
|
254
|
+
1. product_viewed
|
|
255
|
+
2. product_added_to_cart
|
|
256
|
+
3. cart_viewed
|
|
257
|
+
4. checkout_started
|
|
258
|
+
5. shipping_info_entered
|
|
259
|
+
6. payment_info_entered
|
|
260
|
+
7. purchase_completed
|