Monitoring Stack untuk SaaS: Sentry, PostHog, dan Plausible
Triad monitoring yang kami pasang di hampir semua project: error tracking, product analytics, dan privacy-first traffic analytics.
Tiga jenis data yang harus Anda track
| Tipe | Untuk Apa | Tools |
|---|---|---|
| Error & Performance | Tahu kalau app rusak sebelum user lapor | Sentry, Highlight |
| Product Analytics | Tahu fitur mana dipakai, conversion funnel | PostHog, Mixpanel, Amplitude |
| Traffic Analytics | Lihat trafik & SEO performance | Plausible, Fathom, GA4 |
1. Sentry — error tracking
Setup di Astro / Next.js / Node app:
npx @sentry/wizard@latest -i nextjs
Wizard otomatis bikin config + DSN env. Yang penting:
- Sample rate — jangan 100% di production untuk hemat quota. Mulai 10%, naikkan kalau perlu.
- Filter noise — exclude bot errors, browser extension errors.
- Source maps — upload otomatis di build CI agar stack trace readable.
- Release tag — tag tiap deploy dengan commit SHA untuk track regression.
Alert: hubungkan ke WhatsApp via webhook → tim kena alert dalam menit.
2. PostHog — product analytics
Self-hosted gratis, atau cloud Free tier 1M events/bulan. Kelebihan dari Mixpanel:
- Session replay — lihat user nyata berinteraksi (anonymized).
- Feature flags — A/B testing tanpa external tool.
- Funnel — track signup → activation → paid conversion.
Setup minimum:
posthog.init('phc_xxx', { api_host: 'https://app.posthog.com' });
// Track event
posthog.capture('signup_completed', {
plan: 'pro',
source: 'landing_page',
});
Track event yang penting saja: signup, activation milestone, paid conversion, churn signal.
3. Plausible — traffic analytics
GA4 makin ribet (event-based, complex UI, privacy concern). Plausible:
- Privacy-friendly — no cookies, GDPR-compliant by default.
- Single page UI — semua metric di satu dashboard.
- Lightweight script — < 1 KB.
- Self-hosted gratis atau cloud $9/bulan.
Setup di <head>:
<script defer
data-domain="lancartech.co.id"
src="https://plausible.io/js/script.js"></script>
Yang Anda track: pageviews, unique visitors, top pages, sources, devices, location. Untuk Indonesian SEO, Plausible cukup.
Stack standar yang kami install
Untuk SaaS klien:
- Sentry (error + perf, $26/bulan untuk team kecil)
- PostHog cloud free tier (sampai user growth, lalu upgrade)
- Plausible self-hosted (gratis di server in-house, atau $9/bulan)
- Optional: Healthchecks.io untuk cron monitoring
Total: < $50/bulan untuk full observability.
Yang sering terlewat
- Real User Monitoring (RUM) — Sentry punya, aktifkan untuk track Core Web Vitals dari user nyata.
- Custom dashboard — bikin satu Notion/Slack daily digest dari semua tools.
- Alert hierarchy — critical (page down) ke WhatsApp, warning (high error) ke Slack.