🟢
Connected ✓
Your SDK is active and sending events.
View Events →
Copy your script tag
One line of code. That's it. Drop it on any page and start tracking in seconds.
<script src="https://littlebirdos.polsia.app/sdk/littlebirdos.js"
data-key="lbo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></script>
✓
Copied to clipboard — paste it before </head> on any page.
Paste into your site
Add the script tag just before the closing </head> tag on any page you want to track.
<html>
<head>
<title>My App</title>
<script src="...littlebirdos.js" data-key="lbo_xxx"></script> ← paste here
</head>
<body></body>
</html>
Verify connection
Visit a page that has the script tag — even open a new tab. We'll detect the first event automatically.
Waiting for first event...
Open a page with your script tag installed
60s remaining
🎉
Connected! You're live.
Events are flowing. LittlebirdOS is tracking your users.
View Events →
⏱
No events yet
Make sure the script tag is on a page that gets traffic, then try again.
JavaScript API
LittlebirdOS.track(event, props)
Track Custom Event
Track any custom event. Props are optional metadata.
LittlebirdOS.identify(userId, traits)
Identify User
Identify a user with optional traits (email, plan, etc). Persists across sessions.
LittlebirdOS.getUserId()
Get User ID
Returns the current anonymous or identified user ID.
LittlebirdOS.flush()
Flush Events
Immediately send all queued events to the server.