/vivreal-growth-analytics:growth-reportfrom vivreal-growth-analytics
Pull a unified growth dashboard combining consented GA4 and Clarity data, the first-party site traffic rollup, and MongoDB signup and paying-group data, with week-over-week deltas
Ships in vivreal-growth-analytics. Installing the plugin adds it to Claude Code.
Pull a comprehensive growth report by combining GA4 and Clarity (consented portal and vivreal.io visitors), the first-party site_traffic_dailies rollup, and Vivreal's MongoDB. The growth-context skill carries the source details; there is no PostHog.
/growth-report [period] [--compare] [--focus=area]
[period]: Time range for the report. Default: 7d (last 7 days)
1d, today7d, last 7 days (default)30d, last 30 daysmtd, month to datecustom:2026-03-01:2026-03-15, custom date range--compare: Include week-over-week or period-over-period comparison (default: on)--focus: Focus on a specific area instead of the full report
traffic, GA4 traffic sources and page views onlyfunnel, the GA4 funnel steps onlysignups, MongoDB signup (leads) and group creation data onlyengagement, session duration, pages/session, return visitsCookieConsent in the portal's src/app/layout.tsx is the one mount that loads GA and Clarity, so every count is a CONSENTED subset, not total traffic. Say so beside any number.vivreal-hq/packages/admin-app) calls: GET /api/admin/analytics/google-analytics/traffic (GA4 Data API, sources, landing pages, devices; ?scope=landing|portal|combined splits vivreal.io from /app by page path, and landing plus portal can exceed combined for a session that visited both), GET /api/admin/analytics/google-analytics/funnel (the portal-emitted funnel events, FUNNEL_STEPS in getFunnelReport.js: studio demo viewed, demo CTA, demo signup, register started, register completed, sign up; event names come from the portal's src/lib/analytics.ts), and GET /api/admin/analytics/clarity/engagement.Vivreal.clarity_daily_snapshots, which the analyticsSnapshot cron writes once a day. Never call the Clarity API directly: it allows about ten requests a day, and a missed day is a gap in the series, not an error.origin/stable), and no GA4 or PostHog MCP is part of this plugin. Do not plan a PostHog query.SiteBeacon posts to collect.vivreal.io, and VR_Analytics_API's daily rollup writes Vivreal.site_traffic_dailies (one row per siteId and date: pageviews, uniqueVisitors, topPages, referrers, devices, countries, groupID). The code calls it site_traffic_daily; the PHYSICAL collection is plural, so the singular name is a false zero. Owners read the same data through GET /api/analytics/site/traffic. Detail: vivreal-analytics-knowledge.Vivreal.groups: createdAt, tier, stripeSubscriptionID, subscriptionStatus, frozen, overageBilling. Vivreal.leads: one row per signup (signedUp, userId, createdAt, activated/activatedAt, the lifecycle activation signal). There is no users collection: people are Cognito users plus groups.users[].Vivreal. Count deployed sites per pod (<dbKey>.sites, deployment.status: "live"), resolving the pod from each group's stored dbKey.stripeSubscriptionID, never tier != 'free'. Several paid-tier groups are comped by hand and pay nothing (measured 2026-10-15: 5 groups on pro, 0 with a Stripe subscription), so a tier count reports revenue that does not exist. Report the tier distribution and the paying count side by side.Vivreal.commerce_dailies.site_traffic_dailies for the periodleads and groups, each pod's sites for live deployments## Growth Report: <period description>
Generated: <timestamp>
### Headline Metrics
| Metric | Current | Previous | Delta |
|---|---|---|---|
| Total Sessions | X | Y | +Z% |
| New Users (GA4, consented) | X | Y | +Z% |
| Signups (`leads`) | X | Y | +Z% |
| Paying groups (Stripe subscription) | X | Y | +Z |
| New Groups (MongoDB) | X | Y | +Z% |
| Sites Deployed | X | Y | +Z% |
| Funnel Completion Rate | X% | Y% | +Z pp |
### Traffic Sources
| Source | Sessions | % of Total | Trend |
|---|---|---|---|
| Organic Search | X | Y% | arrow |
| Direct | X | Y% | arrow |
| Social | X | Y% | arrow |
| Referral | X | Y% | arrow |
| Paid | X | Y% | arrow |
### Funnel Performance (GA4 funnel steps, consented)
| Step | Users | Conversion | Drop-off |
|---|---|---|---|
| Studio demo viewed | X | 100% | |
| Demo CTA clicked | X | Y% | Z% |
| Register started | X | Y% | Z% |
| Register completed | X | Y% | Z% |
| Activated (`leads.activated`) | X | Y% | Z% |
### Tier Distribution (MongoDB)
| Tier | Count | Paying (Stripe subscription) | New This Period |
|---|---|---|---|
| Free | X | Y% | Z |
| Basic | X | Y% | Z |
| Pro | X | Y% | Z |
| ...one row per tier in the CURRENT ladder, plus one row for any raw stored value that is not in it | X | Y% | Z |
### Top Insights
1. <Actionable insight based on the data>
2. <Actionable insight based on the data>
3. <Actionable insight based on the data>
### Recommendations
- <Specific recommendation tied to data>
- <Specific recommendation tied to data>
Follow the same safety rules as /db-query:
find, aggregate, countvivreal mainDb for cross-tenant metricsgroupName, always { _id: ObjectId(groupID) } (shell form; in Node write new ObjectId(groupID), bson 6 throws without new). { key } takes the group's slug, never dbKey: dbKey is the tenant database name (pod_01, pod_02), no group's key equals it, so { key: dbKey } returns null/growth-report
→ Default 7-day report with WoW comparison across all sources
/growth-report 30d
→ 30-day report with month-over-month comparison
/growth-report 7d --focus=funnel
→ The GA4 funnel steps only, for the last 7 days
/growth-report mtd --focus=signups
→ Month-to-date MongoDB signup and group creation data
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
2 commands in this plugin
npx claudepluginhub hillbombcreations/vivreal-skills --plugin vivreal-growth-analytics