Unlock Special Pricing for a Limited Time – GET 70% OFF NOW!

SpeedyGo
  • Feature
  • Documentation
  • Pricing
  • Blog
  • Support Ticket
  • FAQ
  • Login
It's Free Download Now
Login

Getting Started

  • Requirements & Compatibility
  • Installation
  • First-Time Setup

Caching & Preloading

  • Scheduled Expiration & Auto Purge
  • Cache Warm-Up
  • Cache Preloading
  • Mobile Caching
  • Object Caching
  • Browser Caching
  • Full-Page Caching

Asset Optimization

  • JS Interaction Loader
  • JavaScript Combination
  • CSS Combination
  • JavaScript Minification
  • CSS Minification
  • HTML Minification

Compression

  • Defer Scripts
  • Brotli Compression
  • Gzip Compression

Image Optimization (Pro)

  • Recommended Configuration (Pro Users)
  • Lazy Load
  • WebP Quality Control
  • Conversion Scope Rules
  • Enable WebP Conversion

PageSpeed & Analytics (Pro)

  • Mobile vs Desktop Tracking
  • Google PageSpeed API Integration

System & Developer Tools

  • Clean Uninstallation
  • WP-Cron Monitoring
  • Licensing & Security Checks
  • Admin Bar Purge Action
  • Advanced Cache Rules (.htaccess)

Troubleshooting

  • Purging Cache on UI Glitches
  • WebP Conversion Failing
  • Missing API Key / Connection Error
  • Excluding Broken Files (Minification & Combination Issues)
  • Debugging Compression Warnings
  • System Requirement Issues

Changelog

  • Changelog

Contact & Support

  • Contact & Support
View Categories
  • Home
  • Docs
  • PageSpeed & Analytics (Pro)
  • Google PageSpeed API Integration

Google PageSpeed API Integration

SpeedyGo connects to the official Google PageSpeed Insights API to fetch real-time performance reports for your website URL directly inside the WordPress dashboard.

24.1 Overview #

When you click Run Analysis, the plugin performs the following process:

  • Triggers an AJAX request: speedygo_ajax_run_pagespeed
  • Executes a server-side cURL request
  • Sends the request to Google’s PageSpeed API endpoint
  • Retrieves a structured JSON response
  • Parses and displays performance metrics inside the dashboard

Technical Context #

  • Uses admin-ajax.php for secure AJAX handling
  • Performs a server-side cURL API call
  • Accepts user-defined timeout values
  • Prevents script exhaustion on slow servers
  • Sanitizes and validates URL before request
  • Securely parses JSON response

24.2 How to Generate Google PageSpeed API Key #

Follow these steps to generate your API key:

  1. Go to https://console.cloud.google.com/
  2. Create a new project (or select an existing one)
  3. Navigate to APIs & Services → Library
  4. Search for PageSpeed Insights API
  5. Click Enable
  6. Go to APIs & Services → Credentials
  7. Click Create Credentials → API Key
  8. Copy the generated API key
  9. Paste it inside SpeedyGo → Settings → PageSpeed

Recommended Security Step:

  • Restrict the API key to HTTP referrers or specific IP addresses
  • Limit usage quota to prevent abuse

24.3 Server Requirements #

  • cURL must be enabled on the server
  • Outbound HTTPS requests must be allowed
  • PHP execution time should allow API response handling

24.4 Best Practice Recommendation #

  • Use moderate timeout values (15–30 seconds)
  • Run analysis after clearing cache for accurate results
  • Test both Mobile and Desktop reports

Google PageSpeed API Integration allows direct performance monitoring within SpeedyGo for continuous optimization.

Updated on March 12, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Mobile vs Desktop Tracking
Table of Contents
  • 24.1 Overview
    • Technical Context
  • 24.2 How to Generate Google PageSpeed API Key
  • 24.3 Server Requirements
  • 24.4 Best Practice Recommendation
SpeedyGo
  • Support Ticket
  • Feature
  • Documentation
  • Blog
  • FAQ
  • Get SpeedyGo

SpeedyGo is built to make your WordPress site faster, lighter, and easier to manage. From caching to compression, we simplify performance so you can focus on growing your website.

©2026 SpeedyGo. All rights reserved.

  • Privacy Policy
  • Refund Policy
  • Terms and Conditions
  • Privacy Disclosure