Google PageSpeed Insights

Google PageSpeed Insights

Connect Google PageSpeed Insights to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Enter your Google Cloud API key and the URLs you want to analyze to pull PageSpeed Insights (Lighthouse) scores into the PostHog Data warehouse.

Create an API key in the Google Cloud console and enable the PageSpeed Insights API for your project. A key raises your quota to 25,000 queries/day (400 per 100 seconds); without one, requests are heavily throttled.

There is no list endpoint — every request runs a fresh, on-demand analysis of a single URL — so enter one URL per line (starting with http:// or https://). For example:

https://posthog.com
https://posthog.com/docs

Each analysis is a full Lighthouse run and can take several seconds. Each URL is analyzed once per selected table (desktop / mobile) per sync. To accumulate a history of scores over time, pick the append sync method on the table.

Configuration

OptionTypeRequired
API keypasswordYes
URLstextareaYes

Linking Google PageSpeed Insights to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Google PageSpeed Insights
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Community questions

Questions about this page? or post a community question.