Karrot Builds Web SDK to Unify Browser and App Analytics
Key point
Karrot built a web SDK that sends browser behavior logs to its in-house analytics system alongside app and server events.
Details
- Karrot’s Data team built the KarrotAnalytics Web SDK to bring web behavior logs from a third-party service into the company’s in-house analytics system.
- The unified system applies the same event conventions across web and app logs, letting teams follow logged-in users across both and use Karrot’s internal analytics tools.
- The SDK assigns browsers an ID, groups activity into sessions that end after 30 minutes of inactivity, and automatically records events such as page views and session starts.
Bot handling
- The SDK keeps bot events and tags them rather than discarding them; the collection server determines bot status using the request’s User-Agent and the browser’s automation flag.
- Over a two-week period, 13.6% of web events came from bots, and 64% of browser IDs were classified as bots.
Collection and delivery
- Events are buffered and sent in batches, with retries for temporary failures; when a page closes, the SDK uses the browser’s sendBeacon mechanism to try to deliver remaining events.
- The SDK also handles page changes across different web app setups, and Karrot built a Chrome extension to inspect events in DevTools.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.