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

# Analytics & Reports

> Message analytics, agent performance, CSAT scores, revenue attribution, and CTWA ad tracking.

# Analytics & Reports

Kaanha AI provides comprehensive analytics across messaging, agent performance, revenue attribution, and customer satisfaction.

## Message Analytics

Go to **Analytics** for an overview of your messaging activity.

### Metrics

| Metric                | Description                            |
| --------------------- | -------------------------------------- |
| **Messages Sent**     | Total outbound messages in the period  |
| **Messages Received** | Total inbound messages                 |
| **Delivery Rate**     | % of sent messages confirmed delivered |
| **Read Rate**         | % of delivered messages opened         |

### Date Range

Use the **From / To** date pickers to customize the analysis period. Defaults to the last 30 days.

### Hourly Distribution

The **Read Rate by Hour** chart shows which hours have the highest engagement — useful for scheduling broadcasts.

***

## Agent Performance

Go to **Analytics → Agent Performance** for per-agent metrics:

| Metric            | Description                                 |
| ----------------- | ------------------------------------------- |
| Conversations     | Assigned to this agent in the period        |
| Resolved          | Conversations closed by this agent          |
| Avg Response Time | Average time from assignment to first reply |

Click column headers to sort. Filter by date range.

***

## SLA Compliance

A stat card on the Analytics page shows:

* **Compliance Rate**: % of conversations where first response was within your SLA target
* **Avg First Response**: Average first response time across all conversations

Configure SLA targets at Settings → SLA.

***

## CSAT (Customer Satisfaction)

After each resolved conversation, Kaanha AI sends an automated 1-5 rating request.

CSAT ratings are collected and stored per conversation, but there is currently no dedicated CSAT dashboard on the org-level **Analytics** page — the aggregated score, distribution, and platform-wide summary are visible to super admins only, under **Admin Analytics** (see below). A per-org CSAT view is not yet available.

***

## Revenue Attribution

Go to **Analytics → Revenue** to track WhatsApp-driven revenue:

| Metric                 | Description                                     |
| ---------------------- | ----------------------------------------------- |
| **Attributed Revenue** | Total payments completed from WhatsApp contacts |
| **Pending Revenue**    | Payment links created but not yet paid          |
| **Conversion Rate**    | % of payment links that were paid               |
| **Revenue by Day**     | Daily bar chart of completed payments           |

***

## Pipeline Forecast & Velocity

The **Dashboard** includes two deal-pipeline charts pulled from your CRM data:

* **Pipeline Forecast** — projected pipeline value based on open deals, weighted by stage probability
* **Pipeline Velocity** — how quickly deals move through your pipeline stages on average, so you can spot where deals are stalling

***

## CTWA (Click-to-WhatsApp Ad Attribution)

Go to **Analytics → CTWA** to see which ads are driving WhatsApp conversations:

| Column        | Description                        |
| ------------- | ---------------------------------- |
| Source        | Ad platform (Meta, Google, etc.)   |
| Headline      | Ad headline text                   |
| New Contacts  | Contacts acquired through this ad  |
| Conversations | Conversations started from this ad |

This data is captured automatically from the `referral` field in WhatsApp webhook events.

***

## CSV Export

Export raw data for external analysis:

1. Go to **Analytics → Export**
2. Select data type: Messages or Contacts
3. Choose date range
4. Download CSV

***

## Admin Analytics (Super Admin)

Platform-wide analytics at `/admin/analytics`:

| Section           | Data                                    |
| ----------------- | --------------------------------------- |
| Message Volume    | Daily messages across all organizations |
| Top Organizations | Ranked by message volume                |
| AI Usage          | Token consumption by org                |
| Channel Breakdown | WhatsApp vs SMS vs Slack                |
| CSAT Summary      | Platform-wide satisfaction scores       |
