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

# Select Accounts

> Select GA4 properties once and reuse it across multiple ga4_get_report nodes—no repeated account selection

Select GA4 properties once and reuse it across multiple ga4\_get\_report nodes—no repeated account selection. You can also select and list all available accounts. Skip if you have just one ga4\_get\_report, as it already includes its own picker.

| | |
| - | - |
| **App** | Google Analytics |
| **Operation ID** | `ga4_select_accounts` |
| **Type** | Action |
| **Connection** | `ga4` (required) |
| **Credits per run** | Free |
| **Agent / MCP tool** | Yes |
| **Versions** | 1, 2 (default: 2) |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `selection_mode` | string or SelectableOption | Yes | - | Selection mode for accounts. Available options: 'manual': User can pick accounts from a dropdown in the UI in the node settings. 'all': Select all available accounts the user has access to. 'filter': User can filter accounts by name or ID. |
| `accounts` | array (also accepts a comma-separated string) | No | - | List of accounts to select from. If not provided, the user will be prompted to select accounts in the UI. Only use if 'selection\_mode' is 'manual'. The accounts should be in the format: |
| `filters` | array of FilterItem | No | - | List of filters to apply to the accounts. Each filter must have a field, operator, and value. Only use if 'selection\_mode' is 'filter'. The only available fields to filter by are: - 'accountName' - 'accountId' Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST. |
| `limit` | integer | No | - | The maximum number of accounts to return. If not provided, all accounts will be returned. |

### FilterItem

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `field` | string or SelectableOption | Yes | - | The field to filter on, must be one of the current selected metrics or dimensions. |
| `operator` | string | Yes | - | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value` | string | Yes | - | The value to filter by, always as a string: text, a number, or a regex. For IN\_LIST and NOT\_IN\_LIST, pass the values as one comma-separated string such as 'a,b,c', not as an array. For regex values, escape backslashes once in the JSON string: write \b for a word boundary, not \b. |

### SelectableOption

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |

## Output

**Type**: `List[Dict]`

Returns list of accounts with label (account name) and value (account ID). Note: the output is formatted to be directly used in other nodes that accept account selection inputs, no need for further transformation.

**Fields**: `label`, `value`


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