> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.polytomic.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server.

# Google Analytics

Supports:
* ✅ Bulk sync source
* ✅ Connection Proxy


## Connection

### Configuration
<table>
<thead>
<tr>
<th>Name</th><th>Type</th><th>Description</th><th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>auth_method</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">Authentication method<br/><br/>Accepted values: `oauth`, `jwt` <a href="#auth-method-jwt">↓</a></td>
<td><code>required</code></td>
</tr>
<tr>
<td><code>auto_add_properties</code></td>
<td><code>boolean</code></td>
<td style="vertical-align: top;">Automatically add new properties</td>
<td><code>optional</code></td>
</tr>
<tr>
<td><code>client_id</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;"></td>
<td><code>optional</code></td>
</tr>
<tr>
<td><code>client_secret</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;"></td>
<td><code>optional</code></td>
</tr>
<tr>
<td><code>custom_reports</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">Custom reports<br/><br/>One report per line. Format is a report name followed by a comma-separated list of fields. e.g. newUsersByDay:date</td>
<td><code>optional</code></td>
</tr>
<tr>
<td><code>oauth_refresh_token</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;"></td>
<td><code>optional</code></td>
</tr>
<tr>
<td><code>properties</code></td>
<td><code>array</code></td>
<td style="vertical-align: top;">Properties</td>
<td><code>optional</code></td>
</tr>
</tbody>
</table>

<table>
<thead>
<tr>
<th>Read-only property</th><th>Type</th><th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>user_email</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">Connected user's email</td>
</tr>
</tbody>
</table>

<a id="auth-method-jwt"></a>

#### `auth_method`

When `auth_method` is `jwt`:

<table>
<thead>
<tr>
<th>Name</th><th>Type</th><th>Description</th><th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>service_account</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">Service account key</td>
<td><code>required</code></td>
</tr>
</tbody>
</table>

```json
{
  "name": "Google Analytics connection",
  "type": "googleanalytics",
  "configuration": {
    "auth_method": "jwt",
    "auto_add_properties": false,
    "client_id": "eb669428-1854-4cb1-a560-403e05b8acbf",
    "client_secret": "ay8d5hdepz62px8lqeoakuea2ccl4rxm13i6tbyorxhu1i20kc8ruvksmzxq",
    "custom_reports": "",
    "oauth_refresh_token": "dasfdasz62px8lqeoakuea2ccl4rxm13i6tbyorxhu1i20kc8ruvksmzxq",
    "properties": [
      {
        "label": "",
        "value": ""
      }
    ],
    "service_account": ""
  }
}
```


#### Example

```json
{
  "name": "Google Analytics connection",
  "type": "googleanalytics",
  "configuration": {
    "auth_method": "oauth",
    "auto_add_properties": false,
    "client_id": "eb669428-1854-4cb1-a560-403e05b8acbf",
    "client_secret": "ay8d5hdepz62px8lqeoakuea2ccl4rxm13i6tbyorxhu1i20kc8ruvksmzxq",
    "custom_reports": "",
    "oauth_refresh_token": "dasfdasz62px8lqeoakuea2ccl4rxm13i6tbyorxhu1i20kc8ruvksmzxq",
    "properties": [
        {
            "label": "",
            "value": ""
        }
    ]
  }
}
```




## Bulk Sync
### Source
Google Analytics connections may be used as a bulk sync source. No additional configuration options are required.