Skip to Content
FeaturesAnalytics

Analytics

AppBoost includes built-in analytics powered by PostHog , with event tracking already integrated into key user flows.

Setup

See the PostHog Configuration guide to connect your PostHog project.

Pre-configured Events

Analytics are automatically tracked for:

Onboarding

  • onboarding_started, onboarding_step_viewed, onboarding_skipped, onboarding_completed

Paywall & Purchases

  • paywall_viewed, paywall_closed
  • purchase_started, purchase_completed, purchase_failed
  • restore_purchases_started, restore_purchases_completed

Authentication

  • auth_screen_viewed, user_logged_in
  • magic_link_requested, magic_link_sent
  • google_sign_in_started, google_sign_in_completed, google_sign_in_cancelled

Usage

Track custom events anywhere in your app:

import { usePostHogAnalytics } from "../providers/PostHogProvider"; const { capture, identify, isFeatureEnabled } = usePostHogAnalytics(); // Track events capture('button_clicked', { button_name: 'share' }); // Identify users (already done automatically on login) identify('user_123', { email: 'user@example.com' }); // Feature flags if (isFeatureEnabled('new_feature')) { // Show new feature }