Guides / SaaS

Event Tracking for Indie Hackers

3 min read·SaaS

What Indie Hackers Actually Need

You don't need Mixpanel. You don't need Segment. You need to know the moment someone signs up, pays you, or hits an error — so you can act on it fast.

LogIt is one API call. You call it. You get a notification. That's it.

The setup (2 minutes)

bash
npm install logit
ts
// lib/logit.ts
import { init } from "logit";
export const logit = init({ token: process.env.LOGIT_API_KEY! });

Log the four moments that matter

ts
// 1. Signup
await logit.now("signups", {
  event: "New user 👤",
  description: user.email,
  notify: true,
  icon: "👤",
  tags: { plan: user.plan },
});

// 2. First payment
await logit.now("payments", {
  event: "First payment 💰",
  description: `${user.email} — $${amount}`,
  notify: true,
  icon: "💰",
  tags: { amount: String(amount) },
});

// 3. Error
await logit.now("errors", {
  event: "Checkout crashed",
  description: error.message,
  notify: true,
  icon: "❌",
});

// 4. Milestone (your choice)
await logit.now("milestones", {
  event: "100th signup 🎉",
  description: "Total users crossed 100",
  notify: true,
  icon: "🎉",
});

Why Not Google Analytics / Mixpanel?

Those tools are for product analytics — funnels, retention, cohorts. LogIt is for operational awareness — knowing when something happens, right now, without opening a dashboard.

For an indie hacker, a phone buzz when someone pays beats any chart.

Try LogIt free

7-day trial. No credit card required.

Start free