Skip to main content

Analytics (lamp.analytics)

Records in-app events such as page navigation, logins, and notification receipts.

Configuration

  • SensorSpec: lamp.analytics
  • Sampling: Continuous
  • Platform: iOS, Android, Web

Usage

Analytics events are generated automatically as participants use the app. No additional configuration is needed.

Data

The data structure varies by event type:

Login Event

FieldTypeDescription
actionstring"login"
device_tokenstringPush notification device token
device_typestring"Android" or "iOS"
user_agentstringApp version, OS version, device model

Page Open Event

FieldTypeDescription
typestring"open_page"
pagestringPage name (e.g., "learn", "assess", "manage", "portal")
activitystring or nullActivity identifier, if applicable

Notification Event

FieldTypeDescription
actionstring"notification"
device_typestring"Android" or "iOS"
contentobjectNotification content and parameters
actionsarrayUser actions taken on the notification

Cortex Features

analytics (raw) → app_time (secondary)

The app_time feature accepts a category parameter to filter by app category.

View in Portal | Python SDK | API Reference