Unified Product Command Center

Feature plan, v2 · Vacademy super admin portal · 3 November 2026

The plan: add a Command Center module to the Vacademy super admin portal. It brings website traffic and funnel events from the four product sites together with logins, usage, AI token use and platform billing from the shared backend, into one analytics store. From the same screens you can create demos, start trials, and suspend, terminate or recreate accounts. v2 builds on what the portal and backend already have instead of rebuilding it.

0. What changed from v1

1. Overview

Today each product site reports to its own analytics, usage sits in the backend, and billing sits in admin-core. Answering "how many visitors became paying institutes this month, and on which product?" means opening several tools and stitching the numbers together by hand.

ProductWhat it isWebsiteSign-inData the Command Center needs
Vacademy.ioLMS; base product, hosts the super admin portalvacademy.iodash.vacademy.ioTraffic, funnel clicks, logins, LMS usage, tokens
VoomsalesSales CRMvoomsales.comapp.voomsales.com/loginTraffic, funnel clicks, logins, usage
TelleoAI calling (also sold as an API at api.telleo.ai)Own sitedash.vacademy.ioTraffic, funnel clicks, calls, tokens
EvalezyAnswer-sheet evaluation (also sold as an API at api.evalezy.com)Own sitedash.vacademy.ioTraffic, funnel clicks, evaluations, tokens

product values used everywhere: vacademy, voomsales, telleo, evalezy. Vimotion is out of scope.

1.1 Decisions already made

1.2 Who can use it

The PM is the main user in v1, and there is no full role model. But the portal already admits every username on the PORTAL_ALLOWED_USERS allowlist, which is enforced by the portal's Cloudflare proxy. So Suspend, Terminate and Recreate are also limited to a short list of named usernames. Every destructive action needs typed confirmation and writes an audit entry.

1.3 Already built: reuse, don't rebuild

CapabilityWhere it lives todayHow the Command Center uses it
Platform billing via Razorpay: charges, payment links, mandates, mark paid, waive, refund, invoices, credit notesadmin-core platform billing; portal plan-billing-api.ts; HMAC-verified webhook /payments/webhook/callback/razorpay-platform; hourly reconcile jobsRevenue screen and the Convert to paid action
Demo provisioning and expiry; login blocked when a demo expiresauth-service /super-admin/v1/demo/provision, institute_trial table, TrialAccessGuard; portal onboarding demo-accounts listCreate demo, Start / Extend trial
Logins, sessions, active usersuser_session, user_activity_log, daily_user_activity_summary; auth-service /active-users, /activity-trendsDAU/WAU/MAU, last login, activation
AI token and credit usageai_usage_event (use case, source service, credits, real cost), ai_token_usage, credits tablesTokens per institute, per product
Per-institute feature switchesInstitute modules and presetsSuspend a single product without blocking login
Lead tags PROD / LEAD / TEST / FREE_TRIALInstitute recordsMapped onto the new states, so there is one source of truth (§5)
Change history with reasonsModules, pricing, plans, AI settingsShown together in the Audit log screen

1.4 Out of scope for v1

2. Architecture

The Command Center never queries GA4 or Razorpay live when a page opens. Website data is synced into one analytics store on a schedule, and backend data is read where it already lives. Dashboards load fast and every product is measured by the same definitions.

Sources feed one analytics store; the portal reads it and writes back lifecycle actions
1. Sources2. Ingestion3. Store4. Super admin portal GA4 properties (x4)vacademy.io, voomsales.com,Telleo and Evalezy sites Website trackerJS snippet on all 4 sites,CTA clicks, visitor_id, UTMs Shared backend (existing)sessions, activity, telephony,evaluations, ai_usage_event,demos / trials Platform billing (existing)admin-core; Razorpay webhook+ hourly reconcile already run GA4 Data API synccommunity-service job; hourlytoday, nightly full refresh POST /public/v1/trackcommunity-service, public,rate-limited, bot-filtered Read-only viewsjoined on institute_id;use case → product mapping;nightly daily aggregates Read billing APIsno new webhook receiver;one payment source of truth analytics schema web_events, visitorsga4_dailyusage_dailyproduct_entitlementslifecycle_events OverviewFunnels & trafficAccounts listAccount 360Demos & trialsRevenueAlertsAudit log read directly reads actions Lifecycle actions call existing auth-service / admin-core endpoints and write lifecycle_events plus an audit entry.

2.1 Where ingestion runs

The portal is a static app behind a Cloudflare Pages proxy and has no server of its own. The GA4 sync job, the /track endpoint and the nightly aggregates run in community-service:

Store: a separate analytics schema in the existing Postgres. Raw events move to ClickHouse or BigQuery only if volume makes dashboards slow.

2.2 External connections: what exists and what's missing

Checked against the backend and site repositories on 3 November 2026.

ConnectionHowExists todayGap / owner
GA4 (4 properties)GA4 Data API with one Google service account added as Viewer on each propertyVoomsales GA4 G-5VXCVMX3EH; vacademy.io loads GA4 inside GTM GTM-5C4DDJ6WNo GA4 code in the backend. Telleo and Evalezy marketing sites aren't in any local repo, so owners and GA4 IDs are unknown. Need the property ID behind the GTM container.
Website trackerSnippet on 4 sites posts to /community-service/public/v1/trackPublic endpoint pattern onlyNew endpoint with rate limiting and bot filtering; snippet added to 4 site repos.
Visitor → institutePass visitor_id + first-touch UTMs in CTA links; save them on lead submit and signupVoomsales and Vidyayatan forms already post to admin-core-service/open/v1/audience/lead/submitvacademy.io "Book a demo" opens a Google Calendar link, so no demo request reaches the backend. Replace it with the lead form. No site captures incoming UTMs yet.
Logins / activityRead existing session and activity tablesYes, keyed by institute_idNo product dimension: a login at dash.vacademy.io doesn't say which product (see §2.3).
Product per instituteNew product_entitlements table (institute, product, state)institutes.product holds a single value (vacademy or vimotion)Biggest gap. The multi-product institute doesn't exist in the data yet. This is a Phase 0 backend change.
Token usageRead ai_usage_event; map use case → productRich data keyed by institute_idNo product column. The use case → product mapping is kept in the portal's Metering catalogue.
PaymentsRead admin-core platform billingVerified Razorpay webhook (payment.*, order.paid, token.*); hourly reconcile for AI subscriptions and credit packsOnly AI plans and credit packs are billed here; core LMS subscription revenue isn't recorded. No subscription.* / payment_link.* handlers. Don't include per-institute student payments, which are the institutes' own money.
Demo / trial / suspendReuse demo provisioning, institute_trial, TrialAccessGuardDemo, expiry, login block on expiryNo institute-level suspend or terminate (only per-user deactivate). Add an institute status checked at login.
Telleo / Evalezy usageRead telephony (admin-core) and open_evaluation (assessment-service)Both live in the shared backendConfirm API customers are institutes with the same institute_id.
Cookie consentSite-wide banner + GA Consent Mode before visitor_id is setBanner on 4 vacademy.io use-case pages onlyMissing on every other site.

Access to collect in Phase 0:

2.3 Sign-in entry points

3. Event tracking plan

All four sites and products send the same event names with the same parameters, which is what makes a combined funnel possible.

EventFires whenWhere
page_view / session_startVisitor lands on any pageAll marketing sites (GA4 default + tracker)
cta_login_clickLogin button clickedAll marketing sites (returning-customer metric, not the funnel)
cta_book_demo_clickBook a demo clickedAll marketing sites
demo_form_submitDemo lead accepted by the backend lead-submit endpointServer side
cta_trial_clickStart free trial clickedAll marketing sites
trial_signup_completeTrial account createdServer side
login_successUser logs inServer side, from existing session data
feature_usedKey action: course published, lead added, call made, sheet evaluatedServer side
pricing_view / checkout_startPricing page seen / payment link openedSites and in-app billing
payment_success / payment_failedPlatform billing records the resultServer side (admin-core)

vacademy.io already sends demo_request to GTM, and Voomsales sends generate_lead. Rename both to the standard names, or map them in GA4.

3.1 Parameters on every event

product (vacademy, voomsales, telleo, evalezy), visitor_id, institute_id (once known), page_path, utm_source / utm_medium / utm_campaign, device, country / state.

3.2 Linking a website visitor to an institute

The sites are on separate domains (vacademy.io, voomsales.com and the Telleo and Evalezy sites), so they can't share a cookie. Instead:

3.3 GA4 identity

Set GA4 user_id to the real user ID, and send institute_id as a user property. (v1 used the institute ID as the user ID, which would merge every user in an institute into one GA4 "user".) Don't send personal data such as emails or phone numbers to GA4.

3.4 Consent and retention

4. Dashboard modules

Eight screens in the super admin portal. Every screen has a product filter (All, Vacademy.io, Voomsales, Telleo, Evalezy) and a date range.

ModuleWhat you seeWhat you can do
OverviewVisitors, demo requests, trial starts, active trials, paid institutes, MRR, today's active users; each with change vs. last periodClick any number to drill into its list
Funnels & trafficFunnel from visit to paid (below); traffic by source, campaign, landing page and day; returning-customer login clicksCompare products side by side; export CSV
Accounts listEvery institute: state per product, plan, last login, 7-day active users, tokens usedSearch, filter, sort; bulk extend trial
Account 360One institute: timeline of visits, signup, logins, feature use, tokens, charges, admin actionsAll lifecycle actions (§5)
Demos & trialsAll demo and trial accounts, days left, activation status, last activityCreate demo, start / extend trial, convert, expire
RevenueMRR, new vs. churned, failed charges, plan mix, revenue by product, from admin-core platform billing (includes marked-paid charges, excludes waived)Open the billing record; resend payment link
AlertsTrials ending in 3 days without activation, failed charges, accounts inactive for 14 days, traffic dropsMark handled; jump to account
Audit logEvery Command Center action, together with existing module / pricing / plan change historyFilter and export
One funnel, with two branches; filterable by product, date range and UTM source
Website visitCTA click: Book a demo or Start trial Demo requestedTrial startedActivatedPaid Counted by visitor_id (tracker); GA4 users for referencecta_book_demo_click or cta_trial_click demo_form_submit | trial_signup_completeactive on 3+ separate days in first 7first platform charge marked paid

Each stage shows its count and the percentage that moves to the next stage. A demo can also convert straight to paid.

5. Account lifecycle

Each institute has a state per product, because an institute can be paid on Vacademy.io while trialling Telleo.

One state machine, per product
LeadDemoTrialActive (paid) Expired NEWPast dueSuspended TerminatedRecreated visitor / lead formsandbox, auto-expirestime-limited, real data platform charge paidread-only, data keptcharge failed, in grace features off, data keptsoft delete, hold periodsame ID, old data archived create demostart trialconvert payspaysends unpaidreopen failsretry okgrace ends pays / unsuspendterminatehold ends / admin recreatere-enters as

5.1 Mapping existing data

5.2 Actions

ActionScopeWhat it doesSafeguard
Create demoPer productExisting demo provisioning, from a template per product (sample courses, leads, calls, sheets), assigned to a prospect emailAuto-expires after N days
Start trialPer productEnables the product with a trial end date and usage capsTrial length set per product
Extend trialPer productMoves the end dateReason required and logged
Convert to paidPer productSends a platform billing payment linkOnly a paid charge flips the state to Active
Suspend productPer productSwitches the product's features off through institute modules; login still works for other productsReversible in one click
Suspend accountAccountBlocks login for the institute (new institute status checked at login)Named users only; typed confirmation
TerminateAccountSoft delete; data held, then purged. Lists every product it affects before confirmingType the institute name; named users only
RecreateAccountNew clean account under the same institute ID. Old data is moved to an archive keyed by archive ID, so it never mixes with new dataConfirmation + audit entry
Reset demoPer productRestores the demo template dataDemo accounts only

6. Data model

New tables go in the analytics schema; existing tables are read, not changed. The one exception is the Phase 0 entitlements change.

TableKey columnsPurpose
product_entitlements prerequisiteinstitute_id, product, state, plan, trial_ends_at, created_byCurrent state per product; replaces the single institutes.product value
lifecycle_eventsinstitute_id, product, from_state, to_state, reason, actor, atHistory behind the state machine; feeds the Audit log
visitorsvisitor_id, first_utm_*, first_seen_at, institute_idVisitor-to-institute link
web_eventsvisitor_id, product, event, page_path, utm_*, atFirst-party funnel events
ga4_dailydate, product, source, medium, campaign, sessions, users, key eventsSynced GA4 aggregates
usage_dailydate, institute_id, product, active_users, sessions, minutes, tokensNightly rollup from existing session, activity and ai_usage_event data
use_case_product_mapuse_case, productGives token usage a product

Dropped from v1:

7. Metrics glossary

One definition for every number, used on every screen.

MetricDefinition
VisitorsUnique visitor_ids on a product site in the period. GA4 users are shown alongside for reference only; they will differ because of ad blockers and consent.
CTA click rateVisitors who clicked Book a demo or Start trial, divided by visitors
Returning-customer clicksVisitors who clicked Login (outside the funnel)
Demo requestsdemo_form_submit events accepted by the backend
Trial startstrial_signup_complete events
Activated trialTrial institute with activity in that product on 3 or more separate days in its first 7 days
Trial-to-paid rateTrials whose product reaches Active within 14 days after the trial end date, divided by trials that ended in the period
DAU / WAU / MAUUsers with a session in the last 1 / 7 / 30 days. Per product: users with feature use in that product.
Avg session lengthMean minutes from login to last activity, per session (from user_session)
Tokens per instituteFrom ai_usage_event, per product (via use case mapping), per period
MRRSum of active monthly subscription values in platform billing (annual plans / 12). Includes manually marked-paid charges; excludes waived charges.
ChurnProducts moving from Active to Terminated, or to Suspended past the grace period, divided by Active at the start of the period. Past-due accounts still in grace don't count.

Thresholds such as "3 days in 7" are starting points; tune them after a month of data.

8. Rollout

Visibility ships first. Revenue moves up to Phase 1 because its data already exists.

About 16 weeks for one small team (suggested)
Phase 0Phase 1Phase 2Phase 3Phase 4 Weeks 1–2Weeks 3–6Weeks 7–10Weeks 11–14Weeks 15–16 GA4 access collectedEvent names lockedproduct_entitlementsIngestion host agreedLead tag ↔ state mapConsent approach GA4 sync + funnelsTraffic dashboardAccounts listRevenue (existing platform billing)Overview Account 360Demo / trial actions(existing provisioning)Suspend / terminate / recreate Tracker + /trackVisitor-to-account stitchingBigQuery export AlertsHealth scoreWeekly PM digest access + entitlementsfunnel + MRR numbersactions auditedvisits stitch to accounts

Dependencies

Open questions