SDKs
Track from anywhere.
Drop in an SDK and events start flowing — auto-tracking, identity resolution, and session management included.
Quickstart
Initialize once, track everywhere.
import { init, identify, track } from '@poluruprvn/pug-web'
init('your-project-id', { apiKey: 'pub_your_key' })
// Page views, clicks, scrolls, form interactions, rage clicks,
// and dead clicks are captured automatically from here on.
identify('user_123', { email: 'ada@example.com', plan: 'pro' })
track('signup', { plan: 'pro' })
track('order_completed', { amount: 49.0, currency: 'USD' }) import 'package:pug_flutter_sdk/pug_flutter_sdk.dart';
await Pug.init('your-project-id', const PugOptions(apiKey: 'pub_your_key'));
// Auto-tracking starts immediately. Identify users on sign-in:
await Pug.identify('user_123', traits: {'plan': 'pro'});
// Typed methods for well-known events (custom props go in extras):
Pug.track.signup(extras: {'plan': 'pro'}); import { Pug } from 'sdk-node'
const pug = new Pug({ apiKey: process.env.PUG_API_KEY }) // private key, prv_…
// Server events name the user explicitly — no ambient session.
pug.track('user_123', 'order_completed', { amount: 49.0, currency: 'USD' })
await pug.identify('user_123', { email: 'ada@example.com', plan: 'pro' })
// Private keys can also read: profiles and insight queries.
const profile = await pug.profiles.getByExternalId('user_123') On the roadmap
More platforms, coming soon.
Native SDKs in active development — built on the same event and identity model.
Coming soon
Android
Native Kotlin SDK with provider-neutral push.
Coming soon
iOS
Native Swift SDK for tracking and push.
Coming soon
React Native
Cross-platform tracking for React Native apps.
Ready to understand your users?
Open source and self-hostable. Spin up your first project in minutes.