Skip to main content
This page is part of an AI coding agent skill and is written for agents, not humans. For the human-readable Base44 docs, see the developer documentation.

Analytics Module

Track custom events and user activity via base44.analytics.

Contents

Methods

Examples

Track Custom Event

Track User Actions

Automatic Tracking

The analytics module automatically tracks:
  • Initialization events: When the app loads
  • Heartbeat events: Periodic activity signals
  • Session duration: Time spent in the app
These internal events help measure user engagement without manual instrumentation.

Best Practices

  1. Use descriptive event names: order_completed instead of click
  2. Include relevant properties: Add context that helps analyze the event
  3. Be consistent: Use the same event names and property keys across your app
  4. Don’t track sensitive data: Avoid PII in event properties

Type Definitions