# Google Sheets destination

> How to sync Windsor.ai data to Google Sheets using the add-on or a destination task.

The Google Sheets destination syncs Windsor data directly into a spreadsheet. You can query the data manually with the Windsor add-on or automate it with a scheduled destination task.

## Option A: Windsor add-on (manual or scheduled)

The Windsor Google Sheets add-on lets you pull data into a sheet from within Google Sheets itself.

1. Install the **Windsor.ai** add-on from the [Google Workspace Marketplace](https://workspace.google.com/marketplace/).
2. Open a Google Sheet and go to **Extensions → Windsor.ai**.
3. Enter your Windsor API key (found in your Windsor account settings).
4. Paste your Connector URL or configure your query in the add-on sidebar.
5. Click **Get Data** to run a one-time pull.
6. To schedule automatic refreshes, set a refresh interval in the add-on settings (hourly, daily, etc.).

## Option B: Destination task (automated export)

You can also set up Google Sheets as a Windsor destination task, which writes data to a specified sheet on a schedule.

1. In Windsor, configure your data source query.
2. In the destination list, select **Google Sheets**.
3. Authorize Windsor to access your Google account.
4. Choose the spreadsheet and sheet tab where data should be written.
5. Click **Add Destination Task**.
6. Set the refresh schedule (daily or hourly depending on your plan).
7. Click **Save**.

Windsor will overwrite the specified sheet range on each refresh.

## Tips

- **Aggregatable vs. non-aggregatable metrics**: some metrics (like CTR, CPC, ROAS) must not be summed across rows. See [Understanding aggregatable vs. non-aggregatable metrics](https://windsor.ai/documentation/troubleshooting/aggregatable-vs-non-aggregatable-metrics.md).
- **Templates**: Windsor provides pre-built Google Sheets templates for common marketing reports. See [How to use Windsor.ai's Google Sheets templates](https://windsor.ai/documentation/troubleshooting/how-to-use-windsor-ai-google-sheets-templates.md).
- **Large datasets**: for very large date ranges or high-volume sources, create a [Cache Data Store](https://windsor.ai/documentation/troubleshooting/understanding-cache-data-store-and-query-cache.md) destination task first, then point your Sheets query at the cache.

## Troubleshooting

- [How to fix data mismatch issues in Google Sheets](https://windsor.ai/documentation/troubleshooting/how-to-fix-data-mismatch-issues-in-google-sheets.md)
- [How to fix the "Reauthentication is needed" error](https://windsor.ai/documentation/troubleshooting/reauthentication-needed-error-bigquery.md)
- [Understanding aggregatable vs. non-aggregatable metrics](https://windsor.ai/documentation/troubleshooting/aggregatable-vs-non-aggregatable-metrics.md)
- [How to use Windsor.ai's Google Sheets templates](https://windsor.ai/documentation/troubleshooting/how-to-use-windsor-ai-google-sheets-templates.md)
