If you want to collect responses from your widget in Kameleoon and export them to CSV, refer to this 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. This cell will be automatically populate with the data 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, My form data).
- Replace all code with the following:
If for any reason 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(it should be 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:
My Form Data(This can be anything you want; just make it descriptive.) - 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 will click to submit their response.
- Under How are responses collected?, choose HTTP Request (external).
- Request Name: Give your request a name (for example, Send data to my 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.