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

# contextualVisitorIdentification

> The visitor identification results the Contextual dashboard shows for a date range: visitors identified, the identification rate, new contacts and the revenue attributed to Contextual-triggered messages, with visitors identified per day. Returns null when the store has not set up Contextual. It reads the Contextual service and the analytics warehouse, so it costs 20 points. A request may ask for at most 2 different date ranges.

**Required scopes:** [`marketing_settings_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_settings_read)

**Store must have one of:** `CONTEXTUAL`

## Arguments

**endDate** `[Date!](/docs/api-reference/v3/reference/common/date)` *required*

Last day to report on, inclusive. The range may span at most 400 days.

**startDate** `[Date!](/docs/api-reference/v3/reference/common/date)` *required*

First day to report on, inclusive. Must be on or before `endDate`, and the range may span at most 400 days.

## Returns

**contextualVisitorIdentification** `[ContextualVisitorIdentification](/docs/api-reference/v3/reference/marketing/contextual-visitor-identification)`

The visitor identification results the Contextual dashboard shows for a date range.

**fields**

**attributedRevenue** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Revenue from orders attributed to messages sent in the range by automations that Contextual events triggered, in the store's currency.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The exact amount as a decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**identificationRate** `Float!` *required*

The share of anonymous visitors Contextual identified, from 0 to 1. The dashboard shows it as a percentage.

**newContacts** `Int!` *required*

The figure the dashboard's `New contacts added` card shows for the range.

**visitorsIdentified** `Int!` *required*

Anonymous visitors Contextual resolved into known contacts in the range.

**visitorsIdentifiedSeries** `[\[ContextualVisitorIdentificationPoint!\]!](/docs/api-reference/v3/reference/marketing/contextual-visitor-identification-point)` *required*

Visitors identified per day, in chronological order. Days the Contextual service has no data for may be left out.

**fields**

**label** `String!` *required*

The chart's label for this point, such as `Mar 3`. It is the text the dashboard prints, not a date, and carries no year.

**visitorsIdentified** `Int!` *required*

Visitors identified at this point.

## Example

```graphql theme={null}
query {
  contextualVisitorIdentification(endDate: "...", startDate: "...") {
    identificationRate
    newContacts
    visitorsIdentified
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.