> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Statistics V2

# Type: Statistics Object

# Link: https://dev.wix.com/docs/api-reference/business-management/ai-site-chat/statistics-v2/statistics-object.md

## Description: Aggregated AI Site-Chat statistics for a site.

Statistics include daily KPI rows for recent activity and period KPI rows for comparison windows, such as the last 30 days and the previous 30 days.

## Schema:

```json
 Type: Statistics Object | type: Statistics
 Description: Aggregated AI Site-Chat statistics for a site.

Statistics include daily KPI rows for recent activity and period KPI rows for comparison windows, such as the last 30 days and the previous 30 days.
       - name: id  | type: string | description: Site ID the statistics are scoped to.
       - name: dailies  | type: Array<Daily> | description: Typed daily statistics.  Deprecated. Use `dailyKpis` instead.
           - name: date  | type: string | description: Date the daily statistics are for.
               - name: seconds  | type: string | description: 
               - name: nanos  | type: number | description: 
           - name: conversations  | type: string | description: Number of conversations on this date.
               - name: value  | type: string | description: 
           - name: messages  | type: string | description: Number of messages on this date.  Deprecated.
           - name: visitors  | type: string | description: Number of unique visitors on this date.
           - name: exposedItems  | type: string | description: Number of product items shown or recommended in AI Site-Chat on this date.
           - name: orders  | type: string | description: Number of orders associated with AI Site-Chat activity on this date.
           - name: chatHandler  | type: string | description: Chat handler the daily statistics are grouped by.
               enum: UNKNOWN_HANDLER, AI, WIX_USER
           - name: repliedConversationsCount  | type: string | description: Number of conversations that received a response on this date.
       - name: timespans  | type: Array<Timespan> | description: Typed period statistics.  Deprecated. Use `periodKpis` instead.
           - name: period  | type: string | description: Comparison period the statistics are aggregated for.
               enum: UNKNOWN_PERIOD, LAST_30_DAYS, PREVIOUS_30_DAYS
           - name: conversations  | type: string | description: Number of conversations in this period.
           - name: messages  | type: string | description: Number of messages in this period.  Deprecated.
           - name: visitors  | type: string | description: Number of unique visitors in this period.
           - name: exposedItems  | type: string | description: Number of product items shown or recommended in AI Site-Chat in this period.
           - name: orders  | type: string | description: Number of orders associated with AI Site-Chat activity in this period.
           - name: chatHandler  | type: string | description: Chat handler the period statistics are grouped by.
           - name: repliedConversationsCount  | type: string | description: Number of conversations that received a response in this period.
           - name: medianResponseTimeSecondsP50  | type: string | description: Median response time in seconds.
           - name: medianFirstResponseTimeSecondsP50  | type: string | description: Median first response time in seconds.
       - name: dailyKpis  | type: Array<Struct> | description: Daily KPI rows for the last 30 days.  Each row contains the fields requested in `dailyFields`, or all default daily KPI fields if `dailyFields` isn't provided.
           - name: fields  | type: object | description: 
       - name: periodKpis  | type: Array<Struct> | description: Period KPI rows for comparison windows.  Each row contains the fields requested in `byPeriodFields`, or all default period KPI fields if `byPeriodFields` isn't provided.

```