- Home
- Skills
- Workflow Automation
- Product Analytics Agent
More screenshots
Works with the AI Agents you already use
Product Analytics Agent
Instrument your SaaS with lean tracking plans and vendor-neutral event instrumentation.
$1.50
Product Analytics Agent
Example session with this skill installed
I just launched my Next.js SaaS and need to track signups and subscriptions using PostHog. Create a tracking plan and instrument the code.
- Read your context and instructions
- Compiled the product analytics agent
- Generated the document
I have analyzed your repository and identified the signup and checkout flow. I have created a lean tracking plan and implemented the PostHog adapter.
Analytics Implementation Report
Tracking Plan
The following events are now defined in docs/analytics/tracking_plan.md:
| Event Name | Trigger | Properties |
|---|---|---|
user_signed_up | Successful auth completion | auth_method, plan_type |
checkout_started | User clicks 'Upgrade' | price_id, billing_cycle |
subscription_completed | Stripe webhook confirmation | revenue, currency, plan |
session_started | First page load of session | referrer, utm_source |
Code Changes
- PostHog Provider: Initialized in
app/layout.tsxwithcapture_pageview: true. - Signup Logic: Instrumented
app/api/auth/callback/route.tsto callposthog.capture('user_signed_up')andposthog.identify(). - Checkout Logic: Added
capturecall to thehandleUpgradefunction incomponents/PricingTable.tsx.
// Example instrumentation in app/api/auth/callback/route.ts
await posthog.capture({
distinctId: user.id,
event: 'user_signed_up',
properties: {
auth_method: 'github',
$set: { email: user.email }
}
});
Next steps
- Set
NEXT_PUBLIC_POSTHOG_KEYandNEXT_PUBLIC_POSTHOG_HOSTin your.env.local. - Trigger a test signup and verify the event appears in the PostHog "Live Events" stream.
- Define the
Signups -> Subscriptionsfunnel in the PostHog UI using the new events.
layout.tsx
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop shipping features into a black hole. Most early-stage products suffer from "zero-data" syndrome or broken funnels that provide no signal. This skill turns vague requirements into a working, vendor-neutral analytics implementation that gives you trustworthy numbers in days, not months.
What it does
- Drafts tracking plans by defining 5-10 core events across acquisition, activation, and money moments.
- Instruments codebases by injecting SDK calls into frontend routes and backend logic.
- Audits broken data to identify why funnels show zero, user counts are inflated, or events are missing.
- Configures funnel logic with explicit conversion windows and identity resolution rules.
- Generates analytics reports by querying vendor APIs to answer specific questions about user behavior.
How it works
- Discovery phase where the agent scans your
package.jsonorrequirements.txtto identify your framework and current SDKs. - Strategy phase where it generates a lean tracking plan using
snake_caseevent naming and trigger definitions. - Execution phase where it writes the instrumentation adapter and hooks it into signup, checkout, and route changes.
- Verification phase where it runs a checklist to confirm test events arrive and funnels calculate correctly.
Frameworks & tools
Supports PostHog, Amplitude, Mixpanel, Segment, Plausible, Umami, and Pulse. Works across React, Next.js, Go, Python, Rust, and PHP environments.
Why this beats prompting it yourself
Generic prompts often result in bloated event schemas or "governance theater" that founders don't need. This skill uses opinionated templates focused on the "money moment" and ensures identity resolution works correctly across browser and server, preventing duplicate user counts.
Use cases
- Adding analytics to a newly launched MVP to see where users drop off.
- Fixing a broken signup funnel where events arrive but conversion shows 0%.
- Implementing privacy-first, self-hosted tracking with Plausible or Umami.
- Moving from simple page views to event-based tracking for a SaaS product.
Known limitations
Does not support live credential management; you must provide API keys via environment variables. Cannot fix upstream data corruption for events already stored in your provider.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.