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

# Google Sheets

> The Google Sheets integration allows you to automatically send responses to a Google Sheet of your choice.

<Note>
  If you are on a self-hosted instance, you will need to configure this integration separately. Please follow
  the guides [here](/self-hosting/configuration/integrations) to configure integrations on your self-hosted
  instance.
</Note>

## Connect Google Sheets

1. Click on the `Configuration` tab in the left sidebar and then click on the `Integrations` tab and click on the `connect` button under the `Google Sheets` card.

<img src="https://mintcdn.com/formbricks/W79CbeUfNts3a2Kp/images/xm-and-surveys/core-features/integrations/google-sheets/integrations-tab.webp?fit=max&auto=format&n=W79CbeUfNts3a2Kp&q=85&s=f82d698226f67ede5283203e9725d26e" alt="Formbricks Integrations Tab" width="3534" height="1988" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/integrations-tab.webp" />

1. Now click on the "Connect with Google" button to authenticate yourself with Google.

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/google-sheets/connect-with-google.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=ea10e4650bd441f0874dd939eb90600b" alt="Connect Formbricks with your Google" width="1910" height="996" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/connect-with-google.webp" />

1. You will now be taken to the Google OAuth page where you can select the Google account you want to use for the integration.

2. Once you have selected the account and completed the authentication process, you will be taken back to Formbricks Cloud and see the connected status as below:

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/google-sheets/google-connected.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=ce11807bf1b56feb2f32476aae579f4c" alt="Formbricks is now connected with Google" width="1903" height="995" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/google-connected.webp" />

<Note>
  Before the next step, make sure that you have a Formbricks Survey with at least one question and a Google
  Sheet in the Google account you integrated.
</Note>

1. Now click on the "Link New Sheet" button to link a Google Sheet with Formbricks and a modal will open up.

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/google-sheets/link-survey-with-sheet.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=3670ee7adbe554d041502228b26ad1a7" alt="Link Formbricks with a Google Sheet" width="3434" height="1724" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/link-survey-with-sheet.webp" />

1. Enter the spreadsheet URL for the Google Sheet you want to link with Formbricks and the Survey. On doing so, you will be asked with what questions' responses you want to feed in the Google Sheet. Select the questions and click on the "Link Sheet" button.

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/google-sheets/link-with-questions.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=2d1dfbb10a9b6210afb3aa53f416befe" alt="Select question to link with Google Sheet" width="3434" height="1724" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/link-with-questions.webp" />

1. On submitting, the modal will close and you will see the linked Google Sheet in the list of linked Google Sheets.

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/google-sheets/list-linked-surveys.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=2f1cd47cfae275e0d739cf40ca568df9" alt="List of linked Google Sheets" width="1900" height="996" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/list-linked-surveys.webp" />

Congratulations! You have successfully linked a Google Sheet with Formbricks. Now whenever a response is submitted for the linked survey, it will be automatically added to the linked Google Sheet.

## Remove Integration with Google Account

To remove the integration with Google Account,

1. Visit the Integrations tab in your Formbricks Cloud dashboard.

2. Select **Manage Sheets** button in the Google Sheets card.

3. Click on the **Delete Integration** button.

4. It will now ask for a confirmation to remove the integration. Click on the **Delete** button to remove the integration. You can always come back and connect again with the same Google Account.

<img src="https://mintcdn.com/formbricks/hX4eoMhsUTcFz4G1/images/xm-and-surveys/core-features/integrations/google-sheets/delete-connection.webp?fit=max&auto=format&n=hX4eoMhsUTcFz4G1&q=85&s=cb24d7ad8295537fb18c169114b48308" alt="Delete Google Integration with Formbricks" width="1913" height="992" data-path="images/xm-and-surveys/core-features/integrations/google-sheets/delete-connection.webp" />

## What info do you need?

* Your **Email ID** for authentication (We use this to identify you)

* Your **Google Sheets Names and IDs** (We fetch this to list and show you the options of choosing a sheet to integrate with)

* Write access to **selected Google Sheet** (The google sheet you choose to integrate it with, we write survey responses to it)

For the above, we ask for:

1. **User Email**: To identify you (that's it, nothing else, we're opensource, see this in our codebase [here](https://github.com/formbricks/formbricks/blob/main/apps/web/app/api/google-sheet/callback/route.ts#L47C17-L47C25))

2. **Google Spreadsheet API**: To write to the spreadsheet you select (that's it, nothing else, we're opensource, see this method in our codebase [here](https://github.com/formbricks/formbricks/blob/main/packages/lib/googleSheet/service.ts#L70))

<Note>We store as little personal information as possible.</Note>

Still struggling or something not working as expected? [Join our Github Discussions](https://github.com/formbricks/formbricks/discussions) and we'd be glad to assist you!
