If you want to collect responses from your widget in Kameleoon and export them to CSV, refer to the Survey data export article.
- How to configure your Google Sheet to receive survey data.
- How to set up the Survey Settings tab in the Widget Studio to send responses to Google Sheets.
Configure your Google sheet
- Go to Google Sheets and create a new spreadsheet.
- Name the tab Sheet 1 (which is the default).
- In the first row, define the columns as follows:

- Column A > Enter Date. Kameleoon automatically populates this cell with the date and time of each submission.
- From Column B onward > Enter the name of each survey or form element added to your widget.



- Column A: Date
- Column B: Scale
- Column C: Long Answer
- Add a Google App Script

- Click Extensions > App Script. A new Google Script opens. Rename it; for example, use “form data.”
- Replace all code with the following:
If you can’t name your tab “Sheet 1,” change the first line of the script and replace “Sheet 1,” with your tab’s actual name.

- Click Save project to Drive (to the left of Run).
- In the dropdown to the right of Debug, select
initialSetup(usually selected by default). - Click Run.



- Choose which function to run:
doPost - Choose which deployment should run:
Head - Select event source:
From spreadsheet - Select event type:
On form submit


- Description: Use a descriptive name, such as “form data.”
- Web app > Execute as:
Me - Web app > Who has access:
Anyone

Configure survey settings in the Widget Studio
- In the Survey Settings tab, select the button that users click to submit their response.
- Under How are responses collected?, choose HTTP Request (external).
- Request Name: Name your request; for example, “send data to Google Sheet.”
- Method: Select
POST. - Action URL: Paste the URL generated by your Google Apps Script.
- Save your configuration.
Test your setup
- Preview your widget.
- Fill out the survey and Submit.
- Go back to your Google Sheet.