---
schema_version: "1"
id: d071725b9e6633cb2a1b9babb8000d5863e1a066d3d579fd12259cbe54cd3e6d
title: Android Analytics Overview
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/android/analytics-overview-android.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/analytics-overview-android.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bfd2ed4041b556ab41b4f152fa297c2fa4c178099c4244b89ee1cf4ce9339f46
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# Android Analytics Overview

Analytics and instrumentation for the Agentforce Android SDK.

## Analytics Classes

- **[AgentforceInstrumentationHandler](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-instrumentation-handler-android.md)** - Analytics event handling
- **[AgentforceInstrumentationEvent](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-instrumentation-event-android.md)** - 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

```kotlin
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](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/configuration-overview-android.md) for setup
- **UI Components**: See [Android UI Components](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/ui-components-android.md) for component analytics
- **Integration**: See [Android Development](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/development-android.md) for architecture patterns
