Install the tracking snippet
Drop this into your site's <head>. That's it — data starts flowing immediately.
html
<script defer src="https://cdn.camelanalytics.co/pulse.js"
data-site="YOUR_SITE_KEY"></script>Custom events
Track anything meaningful — signups, purchases, feature usage.
js
camel('event', 'sale_completed', {
amount: 4200,
currency: 'KES',
sku: 'COFF-01',
});Identify users
Link anonymous sessions to a known user ID once they log in.
js
camel('identify', 'usr_1042', {
email: 'jamila@example.com',
});REST API
All read endpoints return the standard envelope.
json
{
"success": true,
"message": "ok",
"data": { /* payload */ },
"meta": { "period": "7d", "page": 1, "per_page": 50 }
}Framework guides
Works everywhere — React, Django templates, plain HTML, Next.js, SvelteKit. See the dedicated guides for each stack.