Skip to content

Analytics (Local / Demo Tracking)

LaunchKit Pro tracks safe usage events locally — no Google Analytics, Mixpanel, or other paid service required.

Environment variables

Backend:

env
ANALYTICS_ENABLED=true
ANALYTICS_PROVIDER=LOCAL
ANALYTICS_DEMO_TRACKING_ENABLED=true
ANALYTICS_RETENTION_DAYS=90

Frontend:

env
NEXT_PUBLIC_ANALYTICS_ENABLED=true
NEXT_PUBLIC_ANALYTICS_PROVIDER=LOCAL

Set ANALYTICS_ENABLED=false or NEXT_PUBLIC_ANALYTICS_ENABLED=false for a complete no-op. The frontend client fails silently if the API is unreachable.

Tracked events

EventWhen
page_viewDashboard or admin route change
demo_loginDemo account sign-in (backend)
demo_restricted_actionDemo restriction warning shown
ai_generate_clickedAI generate action
billing_plan_selectedPlan checkout started
file_upload_attemptFile upload started
webhook_test_clickedWebhook test button
search_usedGlobal search query executed

No PII, IP addresses (unless policy-safe and truncated), passwords, or secrets are stored.

API

EndpointAccessDescription
POST /analytics/eventsPublic (optional JWT)Record a safe event
GET /admin/analytics/summaryAdminTotals, demo events, top modules

Admin UI

Open /admin/analytics for:

  • Total and demo event counts
  • Last 24h / 7d totals
  • Top event types and dashboard modules
  • Recent events table (safe fields only)

LaunchKit Pro by LaunchKit Labs — buyer documentation. No secrets in this site.