Thisbefine Documentation
Your app is on fire. Here's how to sit with it.
Thisbefine Docs
Lightweight analytics, error tracking, and logging for indie devs. One SDK, no enterprise nonsense.
pnpm add @thisbefine/analyticsimport { Analytics } from '@thisbefine/analytics/next';
export default function RootLayout({ children }) {
return (
<html>
<body>
{children}
<Analytics apiKey={process.env.NEXT_PUBLIC_THISBEFINE_API_KEY!} />
</body>
</html>
);
}That's it. Pageviews tracked. Keep reading for events, users, and errors →
Get Started
Features
Analytics
Events, pageviews, user identification
Lifecycle Events
Signups, subscriptions, churn tracking
Error Tracking
Stack traces, breadcrumbs, grouping
Logging
Structured logs with levels and metadata
Bug Reports
User feedback with screenshots and context
Reference
React Hooks
useTrack, useIdentify, and more
Configuration
All the options
API Reference
Types and methods