Analytics and instrumentation for the Agentforce Android SDK.
Analytics Classes
- AgentforceInstrumentationHandler - Analytics event handling
- AgentforceInstrumentationEvent - Event data structures
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
class MyAnalyticsHandler : AgentforceInstrumentationHandler {
override fun trackEvent(event: AgentforceInstrumentationEvent) {
// Send event to analytics service
}
}
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
- Configuration: See Configuration Overview for setup
- UI Components: See Android UI Components for component analytics
- Integration: See Android Development for architecture patterns