lilith-platform.live/codebase/@features/analytics
2026-04-18 19:25:56 -07:00
..
frontend-client
shared feat(analytics): Add domain tracking to analytics client and update UTM parameter extraction to include original domain from redirects 2026-04-12 21:26:45 -07:00
website-backend-users
website-frontend-users deps-upgrade(dependencies-significant): ⬆️ Coordinate and upgrade 16 dependencies across feature modules and shared packages, including @lilith/provider-api-client and quinn-app-switcher 2026-04-18 19:25:56 -07:00
README.md
services.yaml

analytics

Analytics tracking for lilith-platform.live.

Local Packages

Analytics is provided as two local workspace packages (no Verdaccio dependency):

@lilith/analytics-clientshared/

Core analytics client, batch queue, device collector, UTM attribution, types. No React dependency — works in browser and Node.js.

import { AnalyticsClient } from '@lilith/analytics-client'
import type { AnalyticsConfig } from '@lilith/analytics-client'

@lilith/analytics-client-reactfrontend-client/

React provider, hooks, and funnel tracking. Depends on @lilith/analytics-client.

import { AnalyticsProvider, usePageViewTracking } from '@lilith/analytics-client-react'
import { useFunnelEvents, captureEntryReferrer } from '@lilith/analytics-client-react'

function App() {
  return (
    <AnalyticsProvider config={analyticsConfig}>
      <AppRoutes />
    </AnalyticsProvider>
  )
}

Other Analytics Services

  • website-backend-users/ — Lightweight proxy (port 4005) forwarding events to the collector
  • website-frontend-users/ — Analytics dashboard UI (port 5122)

The full analytics infrastructure (collector, query API, TimescaleDB) lives in ~/Code/@applications/@analytics/ and is started via ./run dev:analytics.