Send survey responses to Google Sheets with Shopify Flow

Shopify Flow can add a row to a Google Sheet for each question a customer answers or skips. Zenith starts the workflow, and Flow's Add row to spreadsheet action writes the row through your own Google account. Zenith never sees that account.

Before you start

  • A Flow workflow that starts on Zenith's trigger. If you have not made one yet, follow steps 1 to 3 of setting up Shopify Flow for Zenith, then come back here for step 4.
  • A spreadsheet your Google account can edit, with a tab ready for responses. Flow's Add row to spreadsheet action needs its Google Sheets for Shopify Flow connector, which you add in step 4, where you connect your own Google account.

Add the Google Sheets action

  1. Connect Google Sheets

    Click + and choose Action. The list opens filtered to Installed apps, so Google Sheets is missing until you click × on that filter. Search for and choose Add row to spreadsheet. Flow says the app is not installed: click Install and sign in with your Google account. Allow Flow to See, edit, create, and delete all your Google Sheets spreadsheets, or it cannot add your rows (Shopify's guide to Add row to spreadsheet). Close the sign-in window and refresh the page.

  2. Fill in the row

    If the Add row to spreadsheet step is still in your workflow, select it. Otherwise click +, choose Action and choose it again. If it is greyed out, refresh the page. Fill in Spreadsheet URL and Tab name, then paste the row below into Row contents.

  3. Turn it on

    Click New Workflow to give it a name, then click Turn on workflow.

The row to paste into Row contents

{{submittedAt}}, {{orderId}}, {{question | replace: ",", ";"}}, {{answer | replace: ",", ";"}}, {{status}}, {{comment | replace: ",", ";"}}

That gives you six columns: when, which order, the question, the answer, whether it was answered or skipped, and the comment. Every other field is in the variables table, and any of them can go in the row the same way.

Commas and empty cells

Row contents is split on commas, so a value with a comma in it spreads across extra columns. That includes every answer with several choices, which arrives as a list such as Instagram, A friend. The row above swaps the commas out of every field that can hold one; do the same for any field you add. Shopify also notes that an empty value can shift the cells after it. Zenith never sends an empty field, so that cannot happen to your rows: a field with nothing in it arrives as n/a.

What to know

  • One row per question. A customer who answers three questions adds three rows. Skipped questions add a row too, with Status set to skipped; add a condition on Status if you only want answers.
  • Zenith cannot see your workflows. If rows stop arriving, check the workflow in Flow itself.

Install Zenith from the Shopify App Store