← All integrations
PostHog

PostHog → Google Sheets™

PostHog product analytics — events, HogQL queries, insights, dashboards, persons, cohorts, and feature flags.

API Import for Google Sheets™ lets you connect PostHog with the most popular apps, so you can automate your work and have more time for what matters most — no code required.

Google OAuth

PostHog is an open-source product analytics platform used by tens of thousands of teams to track events, run funnels, ship feature flags, and analyse user behaviour. The dashboards inside PostHog answer most questions, but pulling raw event data, HogQL query results, or insight exports into a spreadsheet unlocks bespoke reporting and lets you combine PostHog data with revenue, support, or marketing metrics. API Import connects to PostHog Cloud US via OAuth or a scoped personal API key and pulls events, insights, persons, cohorts, and feature flags directly into Google Sheets™ on any schedule you set. Note: PostHog Cloud EU is not currently supported — EU support is planned for a future release.

Example prompts
“Run HogQL: select event, count() from events group by event order by count() desc limit 20”
“List the 100 most recent PostHog events”
“List my PostHog insights”
“List PostHog persons”
“List PostHog feature flags”
How to get credentials
  1. Open API Import for Sheets from the Google Sheets™ Extensions menu.
  2. Select PostHog from the API selector.
  3. Click Connect and authorize your account.
  4. Your credentials are stored securely — no copy-pasting required.
→ View in docs

Ready to connect PostHog to Google Sheets™?

Install the free add-on and start pulling data in minutes.

Install Free on Google Sheets™