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.

App Logs Module

Log user activity in your app via base44.appLogs.

Contents

Methods

fetchLogs(params?) and getStats(params?) also exist on base44.appLogs, but are marked @internal in the SDK source — they’re not part of the module’s documented public contract (no stable parameter/return shape is published), so avoid depending on them in app code. logUserInApp() is the one public method, and it’s available in any authentication mode.

Examples

Log User Activity

The page name doesn’t have to be an actual page - it can be any string you want to track.

Use Cases

Track Page Views in React

Track Feature Usage

Notes

  • Logs appear in the Analytics page of your app dashboard
  • App logs track page-level and feature-level activity
  • Use analytics.track() for custom events with properties, appLogs.logUserInApp() for simple page/feature tracking
  • logUserInApp() silently no-ops when analytics consent isn’t granted (it feeds App Analytics, so it follows the same consent gate)

Type Definitions