Android Analytics Overview

Analytics and instrumentation for the Agentforce Android SDK.

Analytics Classes 

Analytics Features 

Event Tracking 

  • User Interactions: Button clicks, form submissions, and navigation
  • Conversation Events: Message sending, receiving, and conversation state changes
  • Performance Metrics: Response times, error rates, and system performance
  • Custom Events: Application-specific analytics and user behavior

Data Collection 

  • Event Properties: Structured data for each analytics event
  • User Context: User identification and session information
  • System Context: Device information and application state
  • Privacy Controls: Data collection preferences and consent management

Implementation 

Event Handler 

1class MyAnalyticsHandler : AgentforceInstrumentationHandler {
2    override fun trackEvent(event: AgentforceInstrumentationEvent) {
3        // Send event to analytics service
4    }
5}

Event Types 

  • User Events: User interactions and behavior
  • System Events: Application and SDK performance
  • Error Events: Error tracking and debugging
  • Business Events: Application-specific metrics

Next Steps