Create Google PageSpeed API key

Getting a Google PageSeed API key is free and can be obtained via Google. You do need a Google/Gmail account before you get started. So please create one first if you haven’t already (https://accounts.google.com/SignUp).

  1. Go to https://code.google.com/apis/console
  2. Login with your account if you haven’t already;
  3. Select a project in the top left corner (select/dropdown) if you already have a project in here you want to use, otherwise create a new one;
  4. Click on the “Google APIs” logo in the top left;
  5. You will see a “Enable API” button right next to the text “Dashboard”, click that;
  6. Within the search box, search for “Pagespeed”. It will autocomplete and give you 1 result. Click that result (name);
  7. Now you will be within the “PageSpeed Insights API” page. There should be an “Enable” button right next to that title. Click it;
  8. Now click the “Credentials” button in the menu on the left;
  9. Click “Create credentials” within this page and click “API key (if there are already API keys available in the list of this page, use one key available there);
  10. A pop-up will be displayed, showing the API key. Copy that key;
  11. Optionally, you can restrict the API key to certain HTTP referrers (websites) and specific IP addresses. You can Google more about how to use that and when to use that, but for this scenario you only need the API key!
  12. Login to your concrete5 dashboard and navigate to “Pages & themes” – “Page Speed Checker” – “Config”. Under the label “Google API Key” you can paste the key you just copied from the google API console;