For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to set up the Google Sheets integration

Connect Google Sheets so spreadsheet data flows into journey map metric cards.

An Admin connects Google Sheets once at the account level. After that, anyone in the workspace can build metrics from your sheets.

Set up the Google Sheets integration

Prerequisites

Available on all plans, for both authentication methods.

In Smaply, go to Account Settings > Integrations and click Set up next to Google Sheets.

Smaply Account settings page with the Integrations tab open. The Metrics integrations section lists Google Analytics, Office 365 Excel, Power BI, Google Sheets, and Qualtrics, each with a Set up button to the right.
Account settings > Integrations

The Configure Google Sheets page opens with two authentication options under Select integration type.

Configure Google Sheets page in the unconfigured state. The left pane shows two integration types: Login with your Google Sheets service account (selected by default) and Login with your Google Sheets account (oAuth). The right pane shows the Configure service account section with a Service account file upload area.
Configure Google Sheets, unconfigured

Pick the authentication method that fits:

  • Service account (recommended) - Server-to-server, so the connection isn't tied to one person's login. Best when your team works on the same Smaply account.

  • OAuth - Signs Smaply in as you. Simpler when only one person needs the data.


Verify the setup

Reopen the Configure Google Sheets page from Account Settings > Integrations. A green Success banner and the Added on and Added by details confirm the connection is live. To check that your data is reachable, start a new Google Sheets metric and confirm a spreadsheet you shared (service account) or have access to (OAuth) appears when you click Select file.

If the connection shows an error or no spreadsheets resolve, see Troubleshooting below.


Use Google Sheets in a metric

After the integration is connected, Editors create Google Sheets metrics like any other Smaply metric. In the metric configuration modal, set Source to Google Sheet and then pick the spreadsheet, sheet, and column layout.

Add metric page with Source set to Google Sheet and Type set to Series. The Source step shows the Google Sheets specific fields: Spreadsheet with a Select file button, Sheet combobox, a Make top row headers checkbox under Header (checked), Data label and Data values dropdowns, a Select bottom rows checkbox under Row selection (unchecked), and Number of rows (max 50) defaulting to 50. The right pane shows a muted default card preview.
Add metric, Source = Google Sheet, Type = Series

For Series and Comparison metrics, the Source step exposes these Google-Sheets-specific fields:

  • Spreadsheet - Click Select file to open Google's spreadsheet picker and pick a sheet you've shared with the connected account.

  • Sheet - Pick the tab inside the spreadsheet. Disabled until a spreadsheet is selected.

  • Make top row headers - Treats the first row as column names. Checked by default.

  • Data label - The column that supplies labels (for example, dates or category names).

  • Data values - The column that supplies numeric values.

  • Select bottom rows and Number of rows (max 50) - Limit the metric to the most recent rows. Smaply reads up to 50 rows per metric.

For Number metrics, the Source step is simpler: pick the spreadsheet and sheet, then enter a single cell reference (for example, A2) and optional prefix and suffix (for example, $ and %).

The Save button stays disabled until Spreadsheet, Sheet, and the data fields for your chosen type are all set.

For the full metric flow, including chart types, filters, and how the card behaves on a journey map, see How to create and configure a metric.

lightbulb

Tip: Match the sheet to the journey context

Google Sheets metrics refresh on an hourly cycle, in line with all Smaply metric integrations. There's no continuous or streaming pull.


Troubleshooting

The Integrations tab in Account Settings shows the integration's current state. Pick the symptom below that matches what you're seeing.

Connection Failed or Connection Error banner - Connection issue

A red banner on the Configure Google Sheets page means Smaply cannot reach Google Sheets with the stored credentials.

  • For service account: confirm the Google Sheets API is enabled in the Google Cloud project. Re-upload the JSON key if the file may have been corrupted or replaced.

  • For OAuth: click Connect Google Sheets again from the Configure page. The token may have expired or been revoked.

The spreadsheet picker is empty or my sheet isn't listed - Access issue

The connection succeeds, but Smaply doesn't show the spreadsheet you expected when you click Select file during metric setup.

  • For service account: the spreadsheet hasn't been shared with the service account email address. Open the spreadsheet in Google Sheets, click Share, paste the service account email, set access to Viewer, and click Send. The sheet appears in Smaply's picker once sharing is in place.

  • For OAuth: the Google account you signed in with doesn't have access to that spreadsheet. Make sure the sheet is shared with that account in Google Sheets, or sign in with the account that does have access.

Token expired and metrics stopped pulling - OAuth issue

Metrics that worked previously have stopped pulling data and the OAuth connection shows an error.

  • Open the Configure Google Sheets page and click Connect Google Sheets to refresh the token.

  • If you regularly hit token expiry, consider switching to a service account. Switching disconnects the current OAuth connection, so existing metrics stop pulling until you reconnect.

Service account lost access to a sheet - Permissions issue

A metric that previously worked starts returning no data, even though the connection still looks active.

  • The service account was probably removed from the spreadsheet in Google Sheets. Open the sheet, click Share, confirm the service account email is still listed with Viewer access, and re-add it if missing.

  • If the spreadsheet itself was deleted or moved out of a shared drive, Smaply can't reach it. Move the file back or point the metric at a replacement sheet.

A metric returns no data or unexpected values - Data issue
  • Check the Data label and Data values columns in the metric. If headers shifted or columns were reordered in the source sheet, the metric may be reading the wrong column.

  • If Make top row headers is unchecked but the sheet does have a header row, that row gets read as data. Re-check the box, or remove the header from the sheet.

  • If Select bottom rows is enabled, confirm Number of rows (max 50) is high enough to cover the data range you expect to see.

  • Confirm the values in the Data values column are numeric. Cells containing text, formulas that return text, or #REF! errors won't render as numbers.

For wider questions about how integrations behave across tools (refresh frequency, switching auth, what happens on disconnect), see How to manage integrations.

Still not working? Contact support at help@smaply.com


Last updated