
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
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
URLs | textarea | Yes |
Linking Google PageSpeed Insights to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Google PageSpeed Insights
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import