Skip to content

Integrating PageSpeed Insights with FlyWP

Part 1: Generating Your Google PageSpeed Insights API Key

Section titled “Part 1: Generating Your Google PageSpeed Insights API Key”

To enable automated performance monitoring within FlywP, you need to connect it to Google’s PageSpeed Insights (PSI) API. This requires a free API key from the Google Cloud Console.

Follow these steps to create and configure your key:

  • Go to the Google Cloud Console.
  • Log in with your Google account.
  • Click the Project Dropdown (top left, next to the Google Cloud logo) and select New Project.

Image

  • Enter a name (e.g., FlywP-Performance-Monitor) and click Create.

Screenshot 2025 12 22 at 16.00.46

  1. Ensure your new project is selected in the top dropdown.
  2. In the search bar at the top, type “PageSpeed Insights API”.
  3. Click on the result under the Marketplace/APIs section.
  4. Click the blue Enable button.

Screenshot 2025 12 22 at 16.06.53

  1. Once the API is enabled, navigate to APIs & Services > Credentials via the left-hand sidebar.
  2. Click + Create Credentials at the top of the page.
  3. Select API key from the dropdown menu.
  4. A dialog box will appear with your new API key.
  5. Copy this key and store it securely.

To prevent unauthorized use of your key, it is best practice to restrict it:

  1. In the “API key created” dialog, click Edit API key (or click the pencil icon next to the key in the Credentials list).
  2. Under API restrictions, select Restrict key.
  3. From the dropdown menu, find and check PageSpeed Insights API.
  4. Click Save.

Screenshot 2025 12 22 at 16.04.39

  1. In FlyWP, go to Team Settings → Integrations, find PageSpeed Insights, and click Add Account.

    Team Settings Integrations page with the Add Account button under PageSpeed Insights highlighted

  2. Enter a Name and paste your Google API Key in the designated field.

  3. Click Add Account.

  4. Go to your site dashboard and navigate to Performance → Performance Monitor. You can now click Scan Now to run audits for Desktop and Mobile, and review your Core Web Vitals.

    Scan Now button on the Performance Monitor page

    Site sidebar with Performance expanded and Performance Monitor highlighted

Still stuck? How can we help?

View as Markdown