# Import historical survey responses

Import past answers into a Shopoll survey to compare them with new results. You can import into an unpublished draft and check the report before publishing.

## Prepare the CSV

Use UTF-8 CSV with a header row and one row per response. Each question gets its own column. In the survey editor, expand **Import historical responses** and select **Download CSV headers for this survey** to get the question IDs. You can also import a Shopoll **Download CSV** report. Shopoll groups its answer lines back into their original responses.

| Column | What to put in it |
| --- | --- |
| Question ID | An answer that fits the question. Use the exact option text for a choice and a whole number within the configured range for a score. For multiple choice, ranks or single-choice matrix rows, use a JSON array of strings in one quoted CSV cell. A multiple-selection matrix takes one array per row, in saved row order, such as `[["Speed","Price"],["Support"]]`. Each row must meet the survey’s selection limit. |
| timestamp | The original response date or ISO timestamp. A date without a time starts at midnight UTC. A missing date uses the import time. |
| completed | Use **yes** or **no** to preserve completion status. A missing value marks the response complete. |
| email, name, shopify_customer_id | Optional participant details. Shopify identifiers can be numeric or use the full Shopify ID. |
| shopify_order_id, order_value, currency | Optional purchase details as recorded in the source file. They appear under **Imported response details**. Verified order revenue continues to use Shopify order evidence. |
| Other columns | Keep them as response metadata, map them to questions or skip them. |

For example, a file for a survey with question IDs **score** and **comment** could contain these two responses.

```csv
score,comment,timestamp
9,"The package arrived early",2025-10-04
6,"I had to ask about delivery",2025-10-05
```

When importing a Shopoll response report with matrix answers, keep **Matrix answer JSON** with the readable **Answer** column. The JSON preserves empty rows and punctuation in option labels.

## Check the mapping

1. Open the destination survey and expand **Import historical responses**.
2. Choose or drop a CSV, then select **Preview CSV**. Each file can contain up to 2,000 responses, 128 columns and 2 MiB of UTF-8 data.
3. Review each column. Shopoll matches question IDs automatically. For a column such as **Score**, choose the matching question from the menu and preview again.
4. Correct any reported rows in your spreadsheet, save the file and preview it again. Confirmation becomes available once every row is valid.

## Confirm and check the result

Choose **Import responses**. You can leave the page once Shopoll accepts the file. Reopen the panel to see how many responses finished importing. When email delivery is configured, enter your address before confirming to receive a completion message.

Open **Results** and set the date range to include the dates in your file. Imported answers appear in rating counts and reports for their recorded dates. Imported responses do not use your live response allowance, give rewards or send customer notifications. Shopoll recognizes an identical file already accepted by the same survey. When splitting a large file, put each person’s responses in one part so you do not import them twice.

To bring across the survey as well, first [move the survey definition](/surveys/migrate-survey.md). To read the resulting charts, see [response reports](/report.md).
