> ## 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.

# contextualDestinationHealth

> Storefront event delivery and connected destination health for Contextual: whether browser events are arriving, each destination's connection status and settings link, and any active problems or waiting-for-first-events state. Returns null when Contextual is not yet set up for the store.

**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`

## Returns

**contextualDestinationHealth** `[ContextualDestinationHealth](/docs/api-reference/v3/reference/marketing/contextual-destination-health)`

Storefront event delivery and destination health for Contextual.

**fields**

**browserEventCount** `Int!` *required*

Number of storefront browser events Contextual received in the lookback window.

**destinations** `[\[ContextualDestination!\]!](/docs/api-reference/v3/reference/marketing/contextual-destination)` *required*

Contextual destinations configured for this store.

**fields**

**connectedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the destination was created in Contextual.

**externalId** `String!` *required*

Contextual's id for this destination.

**issues** `[\[ContextualDestinationIssue!\]!](/docs/api-reference/v3/reference/marketing/contextual-destination-issue)` *required*

Active health issues for this destination.

**fields**

**code** `[ContextualDestinationIssueCode!](/docs/api-reference/v3/reference/marketing/contextual-destination-issue-code)` *required*

The kind of problem detected.

**connectedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the destination was created in Contextual, or null for merchant-wide issues.

**destinationExternalId** `String`

Contextual's id for the affected destination, or null for merchant-wide issues such as `NO_BROWSER_EVENTS`.

**destinationName** `String`

Display name of the affected destination, or null for merchant-wide issues.

**destinationType** `[ContextualDestinationType](/docs/api-reference/v3/reference/marketing/contextual-destination-type)`

The affected destination's platform type, or null for merchant-wide issues.

**message** `String!` *required*

Human-readable description of the problem.

**settingsUrl** `String!` *required*

Merchant app URL for this destination's settings, or marketing integrations settings for merchant-wide issues.

**statusMessage** `String`

Contextual's explanation for a `DESTINATION_ERROR`, when one was provided.

**waitingForFirstEvents** `Boolean!` *required*

True when the destination was connected within the last hour and has no `DESTINATION_ERROR`, so silence is expected while waiting for first events.

**name** `String!` *required*

Display name of the destination.

**pixelEventCount** `Int`

Events this destination's ad platform pixel reported in the lookback window, shared by every destination of that platform. Null when Contextual does not count pixel events for the platform (it counts Meta, TikTok and Snapchat).

**serverEventCount** `Int!` *required*

Server-side events Contextual forwarded to this destination in the lookback window.

**settingsUrl** `String!` *required*

Merchant app URL for this destination's settings.

**status** `[ContextualDestinationStatus!](/docs/api-reference/v3/reference/marketing/contextual-destination-status)` *required*

Current connection status reported by Contextual.

**statusMessage** `String`

Contextual's error message when `status` is `ERROR`, if provided.

**tagDelivery** `[ContextualTagDelivery](/docs/api-reference/v3/reference/marketing/contextual-tag-delivery)`

How the platform's pixel is fired for this destination, or null when not set (treated as `GTM`).

**type** `[ContextualDestinationType!](/docs/api-reference/v3/reference/marketing/contextual-destination-type)` *required*

The destination platform.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the destination was last updated in Contextual.

**waitingForFirstEvents** `Boolean!` *required*

True when the destination has a non-error silence issue and was connected within the last hour.

**gtmContainerConfigured** `Boolean!` *required*

Whether the store gave its Google Tag Manager container id during Contextual setup, so Contextual's tags fire ad platform pixels through it.

**issues** `[\[ContextualDestinationIssue!\]!](/docs/api-reference/v3/reference/marketing/contextual-destination-issue)` *required*

All detected Contextual health issues, including merchant-wide issues such as `NO_BROWSER_EVENTS`.

**fields**

**code** `[ContextualDestinationIssueCode!](/docs/api-reference/v3/reference/marketing/contextual-destination-issue-code)` *required*

The kind of problem detected.

**connectedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the destination was created in Contextual, or null for merchant-wide issues.

**destinationExternalId** `String`

Contextual's id for the affected destination, or null for merchant-wide issues such as `NO_BROWSER_EVENTS`.

**destinationName** `String`

Display name of the affected destination, or null for merchant-wide issues.

**destinationType** `[ContextualDestinationType](/docs/api-reference/v3/reference/marketing/contextual-destination-type)`

The affected destination's platform type, or null for merchant-wide issues.

**message** `String!` *required*

Human-readable description of the problem.

**settingsUrl** `String!` *required*

Merchant app URL for this destination's settings, or marketing integrations settings for merchant-wide issues.

**statusMessage** `String`

Contextual's explanation for a `DESTINATION_ERROR`, when one was provided.

**waitingForFirstEvents** `Boolean!` *required*

True when the destination was connected within the last hour and has no `DESTINATION_ERROR`, so silence is expected while waiting for first events.

**lookbackDays** `Int!` *required*

Number of days ending now that the event counts and health checks cover.

**receivingBrowserEvents** `Boolean!` *required*

Whether Contextual received any storefront browser events in the lookback window.

## Example

```graphql theme={null}
query {
  contextualDestinationHealth {
    browserEventCount
    gtmContainerConfigured
    lookbackDays
    receivingBrowserEvents
  }
}
```


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