Available
Get started with Pug
Analytics and profiles for growth teams. Install the SDK, watch events flow into Live analytics, and build funnels in Insights — one platform, one pipeline.
3
SDKs
6
Pipeline stages
100%
Open source
import { init, track } from '@poluruprvn/pug-web'
init('YOUR_PROJECT_ID', {
apiKey: 'YOUR_API_KEY',
endpoint: 'https://api.pug.sh'
})
track('page_view')import { init, track } from '@poluruprvn/pug-web'
init('YOUR_PROJECT_ID', {
apiKey: 'YOUR_API_KEY',
endpoint: 'https://api.pug.sh'
})
track('page_view')# Events via Connect RPC — use an SDK in production
curl -X POST https://api.pug.sh/pug.v1.EventsService/BatchCreate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-project-id: YOUR_PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"events":[{"name":"page_view"}]}'How it works
Events flow from your app through an async pipeline to analytics storage. The same data powers Live, Insights, and Profiles.
SDKtrack() & identify()
APIConnect RPC ingest
NATSAsync pipeline
WorkersGeo & enrichment
ClickHouseAnalytics store
DashboardInsights & profiles
Platform
Choose your path
Website or web app
Install the Web SDK, auto-track page views and clicks, identify users on sign-in.
Quickstart →Server-side analytics
Query insights and read profiles with the Connect API and a shared key.
API overview →Self-hosted deployment
Run the full stack — Postgres, ClickHouse, NATS, and Go workers — on your infrastructure.
Self-hosting guide →Jump straight in
Copy-paste SDK snippets for tracking events and identifying users.
import { track } from '@poluruprvn/pug-web'
track('button_clicked', { label: 'Sign up' })
track('purchase', {
revenue: 29.99,
currency: 'USD'
}, { immediate: true })import { identify, reset } from '@poluruprvn/pug-web'
identify('user-123', {
email: 'user@example.com',
plan: 'pro'
})
reset()