# Analytics

> Track messaging performance and usage statistics.

Source: https://wav1.recrav.com/docs/learn/analytics

## Dashboard Overview [#dashboard-overview]

The analytics section provides insights into:

* Message volume
* Delivery rates
* Response times
* Session health

## Key Metrics [#key-metrics]

### Message Volume [#message-volume]

Track messages over time:

* Total messages sent
* Total messages received
* Messages by type (text, media)
* Hourly/daily/weekly trends

### Delivery Rates [#delivery-rates]

Monitor message delivery success:

| Metric        | Description             | Good Range |
| ------------- | ----------------------- | ---------- |
| Delivery Rate | % of messages delivered | > 95%      |
| Read Rate     | % of messages read      | > 70%      |
| Failure Rate  | % of failed messages    | \< 5%      |

### Response Time [#response-time]

Track API performance:

* Average response time
* 95th percentile latency
* Error rate

## Viewing Analytics [#viewing-analytics]

### Session Analytics [#session-analytics]

Per-session statistics:

1. Select a session
2. Go to "Analytics" tab
3. View charts and metrics

Time ranges:

* Last 24 hours
* Last 7 days
* Last 30 days
* Custom range

### Account Analytics [#account-analytics]

Aggregate across all sessions:

1. Go to main dashboard
2. View account-level metrics
3. Compare session performance

## Metrics Explained [#metrics-explained]

### Messages Sent [#messages-sent]

Total outgoing messages from your session.

**High volume + low delivery rate?**

* Check session health
* Verify phone numbers
* Review error logs

### Messages Received [#messages-received]

Total incoming messages to your session.

**No incoming messages?**

* Verify webhook is configured
* Check webhook delivery logs
* Ensure session is connected

### Delivery Rate [#delivery-rate]

Percentage of messages successfully delivered.

```
Delivery Rate = (Delivered / Sent) × 100
```

**Low delivery rate causes:**

* Invalid phone numbers
* Recipient blocked you
* Session disconnected
* Rate limiting

### Read Rate [#read-rate]

Percentage of delivered messages that were read.

```
Read Rate = (Read / Delivered) × 100
```

**Improving read rates:**

* Send at optimal times
* Use engaging message content
* Personalize messages

### API Usage [#api-usage]

Track your API consumption:

* Requests per minute
* Rate limit status
* Error breakdown

## Exporting Data [#exporting-data]

Download analytics reports:

1. Select date range
2. Choose metrics
3. Click "Export CSV"
4. Download report

## Use Cases [#use-cases]

### Monitoring Campaign Performance [#monitoring-campaign-performance]

Track marketing message effectiveness:

```
Campaign: Summer Sale
- Messages Sent: 10,000
- Delivered: 9,800 (98%)
- Read: 7,200 (73%)
- Clicked: 1,500 (21% of read)
```

### Identifying Issues [#identifying-issues]

Spot problems early:

```
Alert: Delivery rate dropped to 85%

Investigation:
- Session status: Connected ✓
- Error logs: Many 404 errors
- Cause: Invalid phone number format
- Fix: Updated number validation
```

### Capacity Planning [#capacity-planning]

Predict when to upgrade:

```
Current: Starter Plan (1,000 msg/hour)
Usage: 850 msg/hour average
Growth: 20% monthly

Recommendation: 
Upgrade to Pro in 2 months
```

### Reporting to Stakeholders [#reporting-to-stakeholders]

Generate executive reports:

```
Monthly WhatsApp Metrics:
├── Messages Sent: 45,000 (↑ 15%)
├── Delivery Rate: 97.5% (↑ 2%)
├── Avg Response Time: 120ms
└── Customer Satisfaction: 4.5/5
```

## Alerts [#alerts]

Set up notifications for:

* Delivery rate drops below threshold
* Session disconnects
* Rate limit approaching
* Unusual traffic patterns

Configure in Settings → Alerts

## Best Practices [#best-practices]

### Regular Monitoring [#regular-monitoring]

Check analytics weekly:

* Spot trends early
* Identify issues
* Optimize performance

### Benchmarking [#benchmarking]

Set baseline metrics:

* Record normal performance
* Detect anomalies
* Measure improvements

### Action on Data [#action-on-data]

Don't just collect data - act on it:

* Low delivery? Fix phone numbers
* Low read rate? Improve content
* High errors? Check integration
