Query your Google Sheets data in PostHog

Connect Google Sheets to PostHog to link your spreadsheets to how customers use your product.

What syncs from Google Sheets

Each worksheet in your spreadsheet becomes a table. The first row becomes the column names, so you can join a sheet to your events like any other table.

Every worksheet

Each worksheet becomes its own table. One source syncs one spreadsheet.

Headers become columns

PostHog reads the first row as column names. Each header needs a unique name.

Numbers and dates

PostHog reads numbers and dates in your spreadsheet's locale, so they keep their type.

Viewer access only

PostHog's service account only needs to view the sheet. It can't change anything.

Choose a sync method per worksheet

Full refresh

Re-imports the whole worksheet each time. Best for sheets people edit by hand.

Incremental

Fetches only the rows added since the last sync, using the id column.

Append-only

Adds new rows without changing the old ones. Best for logs that only grow.

Incremental and append-only syncs need a numeric column called id. Add one with the formula =ROW().

How to connect Google Sheets

Share the sheet with PostHog's service account as a viewer. Then paste the spreadsheet URL and pick the worksheets to sync. You don't need an API key.

PostHog Wizard hedgehog

Questions you can answer with Google Sheets and PostHog

Growth

Are we on track for this month's goals?

Keep monthly targets in a sheet. Plot them next to real signups and activations, so everyone sees the gap.

Do podcasts and sponsorships bring active users?

Log spend for channels with no connector in a sheet. Compare each one with the signups and usage from its UTM source.

Sales and events

Did the people we met at the conference sign up?

Sync the lead list from the event. Join it to signups by email and see who used your product afterward.

How does usage differ by segment or account owner?

Keep a sheet that maps each account to a segment or owner. Use it as a dimension to break down any insight.

Read the guide

Product

Are the users who asked for this feature using it?

Keep a sheet of who asked for each feature. After you ship, see who tried it and who never opened it.

Which feature requests come from your most active users?

Paste requests from sales calls or a feedback form into a sheet. Rank them by how active each requester is.

Use Google Sheets data across PostHog

Once it's in PostHog, your spreadsheet isn't stuck in a tab nobody opens. You can use it everywhere you already work.

Feature flags

Turn on a beta feature for everyone on your beta list. You don't need to copy emails into PostHog.

Session replay

Watch how your beta testers use the new feature. See where they get stuck before they tell you.

Surveys

Ask the people you met at an event what they think, right inside your product.

Error tracking

Rank exceptions by the key accounts that hit them. Fix the bug your biggest customers see first.

Alerts

Get an alert when signups fall behind the target in your sheet. Find out mid-month, not at the end.

Do it once, reuse it everywhere

Build a “beta testers” cohort from your sheet once. Reuse it as a flag target, replay filter, survey audience, and alert.

Read about cohorts →

Get your data out of its cell

Event leads, targets, and feature requests sit in a spreadsheet. Connect Google Sheets and put your data to work.

Break it out

Not using PostHog? Sign up