> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zixflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Advanced Configuration

> Advanced Configuration — Zixflow React Native SDK integration guide.

### Log Levels

Control SDK logging for debugging:

```typescript theme={null}
import { Zixflow, ZixflowLogLevel } from 'zixflow-reactnative';

const config = {
  apiKey: 'YOUR_API_KEY',
  logLevel: ZixflowLogLevel.debug,  // debug, info, error, none
};

Zixflow.initialize(config);
```

**Log levels**:

* `ZixflowLogLevel.debug` - Verbose logging (development)
* `ZixflowLogLevel.info` - Informational messages
* `ZixflowLogLevel.error` - Errors only
* `ZixflowLogLevel.none` - No logging (production)

### Auto-Tracking Options

Configure automatic tracking features:

```typescript theme={null}
import { Zixflow } from 'zixflow-reactnative';

const config = {
  apiKey: 'YOUR_API_KEY',

  // Automatically track device attributes (OS, model, app version)
  autoTrackDeviceAttributes: true,

  // Automatically track app lifecycle events (open, close, background)
  trackApplicationLifecycleEvents: true,

  // Automatically track screens (requires integration)
  autoTrackScreenViews: true,
};

Zixflow.initialize(config);
```

### Custom API Hosts

Override API endpoints for testing or custom infrastructure:

```typescript theme={null}
import { Zixflow } from 'zixflow-reactnative';

const config = {
  apiKey: 'YOUR_API_KEY',

  // Custom tracking API host
  trackingApiUrl: 'https://custom-track.zixflow.com',

  // Custom in-app messaging API host
  inApp: {
        // Override in-app messaging API endpoint if needed
  },
};

Zixflow.initialize(config);
```

***
