---
schema_version: "1"
id: 111f09a6838392f79f3e7316c83e5725499ab779e52d440fa1e60ec402f00f3e
title: iOS Analytics Overview
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/analytics-overview-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/analytics-overview-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6b44b9f60ed8384772183f6d22e2d02749b7939aed04fb66bde56f4c9003e80b
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# iOS Analytics Overview

The Agentforce iOS SDK provides comprehensive analytics and instrumentation capabilities for tracking user interactions, conversation metrics, and system performance. This system enables developers to monitor SDK usage, understand user behavior, and optimize the conversational AI experience.

## Analytics Classes

- **[AgentforceInstrumentationHandler](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-instrumentation-handler-ios.md)** - Protocol for handling analytics events and integrating with analytics platforms
- **[AgentforceInstrumentationEvent](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-instrumentation-event-ios.md)** - Data structure representing analytics events with context and metadata
- **[AgentforceInstrumentationMarker](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-instrumentation-marker-ios.md)** - Performance markers for timing and measurement

## Analytics System Architecture

The analytics system is built around a flexible event-driven architecture that supports multiple analytics platforms and custom implementations.

### Event Types

- **User Interaction Events**: Track user actions, button taps, and conversation flow
- **Performance Events**: Monitor response times, loading states, and system performance
- **Error Events**: Capture exceptions, network failures, and error conditions
- **Custom Events**: Support for application-specific analytics and business metrics

### Integration Patterns

The analytics system supports various integration approaches:

- **Single Platform**: Direct integration with one analytics service
- **Multi-Platform**: Simultaneous integration with multiple analytics providers
- **Custom Analytics**: Implementation of custom analytics logic
- **Hybrid Approach**: Combination of platform analytics and custom tracking

### Event Processing

Events flow through a structured pipeline:

1. **Event Generation**: SDK components generate events automatically
2. **Event Collection**: Events are collected and contextualized
3. **Event Processing**: Custom handlers process and transform events
4. **Event Delivery**: Events are sent to configured analytics platforms

## Implementation Guide

### Basic Analytics Setup

Configure a basic analytics handler to process instrumentation events from the Agentforce SDK.

### Advanced Analytics Integration

Implement advanced analytics handlers that can integrate with multiple analytics platforms simultaneously.

## Key Benefits

- **Performance Monitoring**: Real-time insights into SDK performance
- **User Behavior Analysis**: Understanding how users interact with conversational AI
- **Error Tracking**: Comprehensive error reporting and debugging
- **Custom Metrics**: Support for business-specific analytics requirements
- **Platform Flexibility**: Integration with any analytics service

## Next Steps

- **UI Components**: See [iOS UI Components](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/ui-components-ios.md) for component-specific analytics
- **Configuration**: See [iOS Configuration Overview](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/configuration-overview-ios.md) for analytics setup
- **Integration**: See [iOS Development](https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/development-ios.md) for architecture patterns
