agentsclimarketplace

Analytics integration

Skill Cheggin/request-for-startups/skills/analytics-integration

Integrate PostHog product analytics into a Next.js application with page views, event tracking, conversion funnels, A/B testing via feature flags, and API access for programmatic dashboard queries. Use when setting up product analytics, tracking user actions, defining conversion funnels, or enabling A/B experiments.From its SKILL.md

Install
npx -y skills add Cheggin/request-for-startups --skill analytics-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.1 KB, as published. Nobody here has run it

Analytics Integration

Set up PostHog product analytics in a Next.js app to track user behavior, measure conversion, and run experiments.

Setup

  1. Install posthog-js and initialize in the Next.js app layout or provider with the project API key from environment variables.
  2. Configure the PostHog React provider to auto-capture page views on all routes via Next.js router events.
  3. Link user identification to the auth system so events are attributed to authenticated users.
  4. Respect Do Not Track headers and implement cookie consent before tracking.

Event Tracking

Define intentional custom events for key user actions rather than tracking everything:

  • Sign-up: Capture method (email, OAuth), referral source
  • Onboarding completion: Track each step and overall completion rate
  • Feature usage: Record which features are used and frequency per user
  • Conversion: Track the full funnel: visit -> sign up -> activate -> pay

Dashboards and API Access

  1. Create a PostHog dashboard with key metrics: DAU, conversion rate, feature adoption, retention.
  2. Configure read-only API access so agents can query PostHog dashboards programmatically for reporting.
  3. Feed dashboard metrics into investor updates with actual numbers, never estimates.

A/B Testing

  1. Use PostHog feature flags to create experiment variants.
  2. Assign users to control/variant groups consistently via user ID.
  3. Run experiments until sample size reaches statistical significance before drawing conclusions.
  4. Report experiment results with the format: "Changed X from A to B -- metric improved from N% to M% (+P%)".

Keep looking

Skills are one crate of 608,666. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.