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

# attributionPerformance

> Compare total store revenue and orders against Redo-attributed revenue and orders for a date range, broken down by type, channel, author, audience, and sale kind. Pass `controls` or `includeBotClicks` to re-run the report under different attribution models, evidence switches (including `MEANINGFUL_CONVERSATION`), or windows without saving them; `defaultAttributed` and `defaultRows` return the saved baseline when overrides differ.

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

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

## Arguments

**controls** `[AttributionSettingsUpdateInput](/docs/api-reference/v3/reference/marketing/attribution-settings-update-input)`

Attribution model and evidence overrides for this view only; nothing is saved. Omit to use the store's saved settings.

**fields**

**defaultModel** `[AttributionModel](/docs/api-reference/v3/reference/marketing/attribution-model)`

The model reports load first. Leave it out to keep the stored value.

**evidence** `[\[AttributionEvidenceSettingInput!\]](/docs/api-reference/v3/reference/marketing/attribution-evidence-setting-input)`

The kinds of evidence to change. Each kind may appear once.

**fields**

**enabled** `Boolean`

Whether this kind of evidence is enough for a message to earn credit. Leave it out to keep the stored value. Not null.

**type** `[AttributionEvidenceType!](/docs/api-reference/v3/reference/marketing/attribution-evidence-type)` *required*

The kind of evidence to change.

**window** `[AttributionWindowInput](/docs/api-reference/v3/reference/marketing/attribution-window-input)`

How far back from an order this evidence counts. Leave it out to keep the stored value. Not null. Refused for `CODE_REDEEMED` and `MEANINGFUL_CONVERSATION`, whose windows are fixed.

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

Last day to report on, inclusive, in the store's timezone. The range may span at most 400 days.

**includeBotClicks** `Boolean`

Whether clicks judged to be from bots can earn credit for this view only; nothing is saved. Omit to use the store's saved setting.

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

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

## Returns

**attributionPerformance** `[AttributionPerformance!](/docs/api-reference/v3/reference/marketing/attribution-performance)` *required*

Store revenue compared with Redo-attributed revenue for a date range, with optional view-only attribution controls.

**fields**

**applied** `[AttributionSettings!](/docs/api-reference/v3/reference/marketing/attribution-settings)` *required*

The effective attribution settings used for `attributed` and `rows`.

**fields**

**defaultModel** `[AttributionModel!](/docs/api-reference/v3/reference/marketing/attribution-model)` *required*

The model reports load first. Reports include every model either way.

**evidence** `[\[AttributionEvidenceSetting!\]!](/docs/api-reference/v3/reference/marketing/attribution-evidence-setting)` *required*

Every kind of evidence, switched on or off.

**fields**

**enabled** `Boolean!` *required*

Whether this kind of evidence is enough for a message to earn credit.

**type** `[AttributionEvidenceType!](/docs/api-reference/v3/reference/marketing/attribution-evidence-type)` *required*

The kind of evidence.

**window** `[AttributionWindow!](/docs/api-reference/v3/reference/marketing/attribution-window)` *required*

How far back from an order this evidence counts. Fixed for `CODE_REDEEMED` and `MEANINGFUL_CONVERSATION`.

**attributed** `[AttributionPerformanceAttributedTotals!](/docs/api-reference/v3/reference/marketing/attribution-performance-attributed-totals)` *required*

Total revenue and orders credited to Redo under the applied controls.

**fields**

**orders** `Float!` *required*

Attributed orders. Fractional when `LINEAR` splits credit across multiple messages.

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

Attributed revenue 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).

**defaultAttributed** `[AttributionPerformanceAttributedTotals](/docs/api-reference/v3/reference/marketing/attribution-performance-attributed-totals)`

Total revenue and orders under the store's saved settings, for comparing against `attributed`. Null when the applied controls match the saved settings.

**fields**

**orders** `Float!` *required*

Attributed orders. Fractional when `LINEAR` splits credit across multiple messages.

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

Attributed revenue 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).

**defaultRows** `[\[AttributionPerformanceRow!\]](/docs/api-reference/v3/reference/marketing/attribution-performance-row)`

Breakdown under the store's saved settings, for comparing against `rows`. Null when the applied controls match the saved settings.

**fields**

**audience** `[AttributionPerformanceAudience!](/docs/api-reference/v3/reference/marketing/attribution-performance-audience)` *required*

Whether the message reached subscribers or non-subscribers.

**author** `[AttributionPerformanceAuthor!](/docs/api-reference/v3/reference/marketing/attribution-performance-author)` *required*

Who authored the credited message.

**channel** `[AttributionPerformanceChannel!](/docs/api-reference/v3/reference/marketing/attribution-performance-channel)` *required*

The channel the credited message was sent over.

**orders** `Float!` *required*

Attributed orders for this slice. Fractional when `LINEAR` splits credit across multiple messages.

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

Attributed revenue for this slice 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).

**saleKind** `[AttributionPerformanceSaleKind!](/docs/api-reference/v3/reference/marketing/attribution-performance-sale-kind)` *required*

Whether the revenue came from a new order, exchange, or edit.

**type** `[AttributionPerformanceType!](/docs/api-reference/v3/reference/marketing/attribution-performance-type)` *required*

Whether the credited message was a campaign or automation.

**includeBotClicks** `Boolean!` *required*

Whether clicks judged to be from bots counted toward `attributed` and `rows`.

**rows** `[\[AttributionPerformanceRow!\]!](/docs/api-reference/v3/reference/marketing/attribution-performance-row)` *required*

Attributed revenue and orders broken down by type, channel, author, audience, and sale kind.

**fields**

**audience** `[AttributionPerformanceAudience!](/docs/api-reference/v3/reference/marketing/attribution-performance-audience)` *required*

Whether the message reached subscribers or non-subscribers.

**author** `[AttributionPerformanceAuthor!](/docs/api-reference/v3/reference/marketing/attribution-performance-author)` *required*

Who authored the credited message.

**channel** `[AttributionPerformanceChannel!](/docs/api-reference/v3/reference/marketing/attribution-performance-channel)` *required*

The channel the credited message was sent over.

**orders** `Float!` *required*

Attributed orders for this slice. Fractional when `LINEAR` splits credit across multiple messages.

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

Attributed revenue for this slice 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).

**saleKind** `[AttributionPerformanceSaleKind!](/docs/api-reference/v3/reference/marketing/attribution-performance-sale-kind)` *required*

Whether the revenue came from a new order, exchange, or edit.

**type** `[AttributionPerformanceType!](/docs/api-reference/v3/reference/marketing/attribution-performance-type)` *required*

Whether the credited message was a campaign or automation.

**saved** `[AttributionSettings!](/docs/api-reference/v3/reference/marketing/attribution-settings)` *required*

The store's saved attribution settings, which `controls` start from.

**fields**

**defaultModel** `[AttributionModel!](/docs/api-reference/v3/reference/marketing/attribution-model)` *required*

The model reports load first. Reports include every model either way.

**evidence** `[\[AttributionEvidenceSetting!\]!](/docs/api-reference/v3/reference/marketing/attribution-evidence-setting)` *required*

Every kind of evidence, switched on or off.

**fields**

**enabled** `Boolean!` *required*

Whether this kind of evidence is enough for a message to earn credit.

**type** `[AttributionEvidenceType!](/docs/api-reference/v3/reference/marketing/attribution-evidence-type)` *required*

The kind of evidence.

**window** `[AttributionWindow!](/docs/api-reference/v3/reference/marketing/attribution-window)` *required*

How far back from an order this evidence counts. Fixed for `CODE_REDEEMED` and `MEANINGFUL_CONVERSATION`.

**savedIncludeBotClicks** `Boolean!` *required*

Whether the store's saved settings count clicks judged to be from bots.

**store** `[AttributionPerformanceStoreTotals!](/docs/api-reference/v3/reference/marketing/attribution-performance-store-totals)` *required*

Every order in the store over the date range, attributed or not.

**fields**

**orders** `Int!` *required*

Total store orders placed in the period.

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

Total store revenue 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).

## Example

```graphql theme={null}
query {
  attributionPerformance(controls: { ... }, endDate: "...", includeBotClicks: true, startDate: "...") {
    includeBotClicks
    savedIncludeBotClicks
  }
}
```


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