# Analytics Funnel Attribution

> Track acquisition and retention funnels for skill usage and workflow completion

- **Type:** Skill
- **Install:** `agentstack add skill-lgrappag-workflows-agents-analytics-funnel-attribution`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [LgrappaG](https://agentstack.voostack.com/s/lgrappag)
- **Installs:** 0
- **Category:** [Data & Analytics](https://agentstack.voostack.com/c/data-and-analytics)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [LgrappaG](https://github.com/LgrappaG)
- **Source:** https://github.com/LgrappaG/Workflows-Agents/tree/main/skills/analytics-funnel-attribution
- **Website:** https://lgrappag.github.io/portfolio/

## Install

```sh
agentstack add skill-lgrappag-workflows-agents-analytics-funnel-attribution
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# analytics-funnel-attribution

## Overview

Track user acquisition, engagement, and retention funnels for game features—measuring skill adoption, workflow completion, and feature impact on business metrics. This skill enables data-driven iteration on framework quality and community engagement.

## Key Capabilities

### 1. Funnel Tracking
- **Event Stream**: Track skill usage, workflow starts/completions, feature interactions
- **Session Management**: Identify user cohorts and session lifecycles
- **Retention Curves**: Measure D1, D7, D30 retention for features
- **Convertion Tracking**: Skill discovery → adoption → maintenance pipeline
- **Churn Analysis**: Identify users at risk and feature abandonment patterns

### 2. Attribution Modeling
- **Multi-Touch Attribution**: Credit skill exposure across multiple touchpoints
- **First/Last-Click Models**: Simple and complex attribution for causal inference
- **Cohort Analysis**: Compare feature adoption across user segments
- **A/B Testing Framework**: Controlled experiments on skill variants
- **Incrementality Testing**: Measure true impact vs. correlation

### 3. Analytics Infrastructure
- **Event Validation**: Schema validation, deduplication, late arrival handling
- **Real-time Dashboards**: Live funnel metrics with 20%)
- **Cohort Insights**: Generation of insights via statistical testing
- **Custom Reports**: Self-service dashboards for different stakeholder needs
- **Export APIs**: CSV/JSON export for external analysis
- **Predictive Models**: Churn prediction, lifetime value estimation

## Implementation Pattern

```csharp
// Pseudo-code: Event tracking and funnel analysis
namespace SkillAnalytics {
    public class SkillEventTracker {
        public void TrackSkillDiscovery(string skillId, string userId, string source) {
            var evt = new Event {
                EventType = "skill_discovered",
                SkillId = skillId,
                UserId = userId,
                Source = source,
                Timestamp = DateTime.UtcNow
            };
            EventStore.Log(evt);
        }

        public void TrackSkillAdoption(string skillId, string userId, string workflowId) {
            EventStore.Log(new Event {
                EventType = "skill_adopted",
                SkillId = skillId,
                UserId = userId,
                WorkflowId = workflowId,
                Timestamp = DateTime.UtcNow
            });
        }

        public async Task ComputeFunnel(
            string skillId,
            TimeSpan period,
            CancellationToken ct = default)
        {
            var discovered = await EventStore.Count(
                eventType: "skill_discovered",
                skillId: skillId,
                period: period
            );

            var adopted = await EventStore.Count(
                eventType: "skill_adopted",
                skillId: skillId,
                period: period
            );

            var completed = await EventStore.Count(
                eventType: "workflow_completed",
                skillId: skillId,
                period: period
            );

            return new FunnelMetrics {
                Discovered = discovered,
                Adopted = adopted,
                AdoptionRate = (double)adopted / discovered,
                Completed = completed,
                CompletionRate = (double)completed / adopted
            };
        }
    }
}
```

## Mandates

- **Consent-First**: Track only GDPR-compliant events with explicit user consent
- **Privacy by Design**: No PII in event stream, anonymized user IDs
- **Accuracy Thresholds**: Metrics must be 99%+ accurate for decision-making
- **Latency Targets**: Real-time dashboards update within 5 minutes
- **Retention Policy**: Raw events deleted after 90 days, aggregates kept for 2 years

## Best Practices

1. **Event Schema First**: Design events before implementation, validate strictly
2. **Track Behaviors, Not Identities**: Focus on what users do, not who they are
3. **Correlation ≠ Causation**: Use proper statistical testing for causal claims
4. **Sample Judiciously**: Balance accuracy with cost through intelligent sampling
5. **Iterate on Metrics**: Review and refine KPIs quarterly based on learnings

## Key Metrics

| Metric | Target | Alert Threshold |
|--------|--------|-----------------|
| Skill Discovery → Adoption | >30% | 80% | 50% | 5min |
| Data Freshness | 15min |

## Resources

- [Event Schema Design Guide](docs/event-schema.md)
- [Attribution Model Comparison](docs/attribution-models.md)
- [GDPR Compliance Checklist](docs/gdpr-checklist.md)
- Example: `examples/funnel-dashboard-config.json`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [LgrappaG](https://github.com/LgrappaG)
- **Source:** [LgrappaG/Workflows-Agents](https://github.com/LgrappaG/Workflows-Agents)
- **License:** MIT
- **Homepage:** https://lgrappag.github.io/portfolio/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lgrappag-workflows-agents-analytics-funnel-attribution
- Seller: https://agentstack.voostack.com/s/lgrappag
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
