Developer Reference
One SDK. Every GA4 event.
A sub-2KB TypeScript library with createClient(), pageView(), purchase(), and captureException() helpers.
Key Architecture & Capabilities
Engineered for high performance, zero data leaks, and developer simplicity.
01
Sub-2KB Footprint
Zero dependencies and non-blocking beacon dispatch keep your app blazing fast.
Production Verified
02
GA4 Event Helpers
Native wrappers for purchase, sign_up, begin_checkout, and generate_lead.
Production Verified
03
Crash Diagnostics
Automatically clusters uncaught window exceptions and async Promise rejections.
Production Verified
04
Geo-IP Resolution
Extracts visitor country codes automatically without transmitting raw IP addresses.
Production Verified
Tracabit vs Legacy Competitors
How our zero-cookie architecture compares against traditional platforms.
| Capability | Tracabit | Google Analytics 4 | Sentry / Datadog |
|---|---|---|---|
| Client Script Overhead | < 1.8 KB | 48.2 KB | 64.0 KB+ |
| Cookie Banner Obligation | 100% Exempt (0 Cookies) | Mandatory Consent Banner | Depends on Session Cookies |
| Inference-Free Model Protocol (MCP) | Native Sub-15ms Tools | Not Supported | Proprietary REST only |
| Cost Per 1,000,000 Events | $12.00 | Data monetization model | $350.00+ |
Implementation Example
Drop-in code sample with strict TypeScript definitions.
app.ts
import { createClient } from 'tracabit';
const client = createClient({
apiKey: 'tcb_live_99a8f21c08e',
projectId: 'proj_marketing_portal'
});
// Custom GA4 purchase event
client.purchase({
transaction_id: 'ord_123',
value: 49.99,
currency: 'USD',
items: [{ item_id: 'sku_pro', item_name: 'Pro Plan' }]
});Ready to upgrade your telemetry?
Get started with 100,000 free events every month. Zero cookies, sub-2KB client overhead, and instant setup.