PageSpeed Service

Initial Setup

This page contains information needed to complete the initial setup to start using PageSpeed Service. The video on the right shows an example of how to perform the initial setup of your website.

NOTE: At this time, PageSpeed Service is offered to a limited set of webmasters. Please request access to the service by filling this web form. You can complete the next steps only after you receive an email confirming that you have been approved to use PageSpeed Service.

  1. Log into the Google APIs Console

    1. Click on the activation link provided in the approval email you received from the PageSpeed Service team.
    2. Log in using the Google account you mentioned when requesting access to PageSpeed Service.
    3. Click on I agree to these terms checkbox and click on the Accept button.
    4. Click on PageSpeed Service on the left navigation bar, and you should see the following:

      PageSpeed Service Console with no domain added
  2. Provide the domain of the website you want to speed up

    1. Enter the domain of the website you would like to speed up and click the Add button.
    2. If you have never verified the ownership of your domain through Google Webmaster Central, your dialog will look like this:
      Dialog that shows that your domain hasn't been verified
      Click Claim Ownership and follow the steps in Google Webmaster Central.
  3. (Optional) Preview how your site will look when served by PageSpeed Service

    Previewing your site will allow you to experience how your website will render when you start using PageSpeed Service. If you encounter any issues with pages not rendering correctly, you can blacklist the offending URLs from the Rewriter Settings pane in the Google APIs Console, and preview your site again. The preview methods described here should not be used to measure speed up of your site, since these will not provide accurate results. Instead run tests to measure the speed up. You can preview using either of the following methods:

    Note: If your machine requires a proxy to access the Internet, neither of these methods will work for you.

  4. Setup an Origin Host

    PageSpeed Service needs to fetch content from your host servers. This requires specifying the name of an origin host that the service can fetch content from. In this step you will set up a new DNS record for the origin host.

    Sometimes we can identify a suitable origin hostname for your site from its DNS record and pre-fill this information for you. If the Status message for your domain is “Not Ready - Setup Serving domain”, then skip this section and proceed to Step 5. You will be able to edit the recommended origin host name if you wish after setup is complete.

    Otherwise you will need to setup an origin domain name, say origin.example.com. Click “Setup origin host” and follow instructions. Detailed instructions for some popular DNS providers are at this page. Remember to Save the DNS changes when you're done.

    Origin domain not yet added state

    PageSpeed Service will send requests to the origin domain with the Host header set to match your primary domain. You should not expose the origin domain origin.example.com to avoid receiving any direct traffic.

  5. Setup the Serving Domain

    In this last step, you will point your site's main DNS record to Google datacenters. Click “Setup serving domain” and follow the instructions to add a CNAME (Alias) record for your serving domain (or edit the existing record) to point to PageSpeed servers. If your website serves pages over SSL, please first consult the SSL Setup Guide to support SSL traffic on your site, before proceeding with the DNS change.
    Serving domain not yet added state

    Detailed instructions for some popular DNS providers are at this page. Remember to Save the DNS changes when you're done.

    Here is one example of how to correctly setup the DNS records for use with PageSpeed Service. Here 1.2.3.4 represents the IP address for your site, provided by your hosting provider. The @ symbol is used in many DNS editors to represent the bare domain name of your site, such as example.com

        Example Initial Configuration:
        
        Record Type   Host      Points to
        A             @         1.2.3.4
        CNAME         www       @
    
        After setup with PageSpeed Service:
        
        Record Type   Host      Points to
        A             @         1.2.3.4
        A             origin    1.2.3.4
        CNAME         www       pagespeed.googlehosted.com
        

    If you have an existing DNS A-record for your serving domain, say www.example.com, delete it so that www.example.com has only the CNAME-record that you just added (pointing to pagespeed.googlehosted.com). You should not delete any other DNS records associated with your site.

    Note:
    • Some DNS providers require adding a period symbol (.) at the end of the CNAME value field in order to point to a different domain. So if you discover that your CNAME record was incorrectly changed to something like pagespeed.googlehosted.com.example.com then please edit the record value to “pagespeed.googlehosted.com.” with the period symbol at the end to fix the problem.
    • If you previously pointed your CNAME entry to ghs.google.com or ghs.googlehosted.com, we strongly recommend changing it to point to pagespeed.googlehosted.com instead. This will allow you to avail of recent improvements in the way Google crawlers operate on your site.

You can now monitor near-real time traffic and latency metrics for your web site from the “Overview” tab. You can always refer to the FAQ or consult the resources if you need help troubleshooting or have questions.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.