Skip to the content.

Core Web Vitals Optimizer (BETA)

What are the Core Web Vitals?

Google’s Core Web Vitals are a set of metrics to measure the user experience of web sites:

Learn more about the Core Web Vitals

What are the benefits of having good Core Web Vitals?

What is the Core Web Vitals Optimizer?

The Core Web Vitals Optimizer is a tool based on Google Sheets which supports a proven workflow to achieve good CWV with any website:

Who is the Core Web Vitals Optimizer for?

How to get started

Make a copy of the Google Sheet

File: Google Sheet: CoreWebVitals-Optimizer-public-v.1

Menu: File → Make a copy

Get a CrUX API Key (free)

You have to create a free CrUX API key which is needed to get the current CrUX data for your origns and high-traffic pages.

Configuration

If you run the first function you see this scary message. If anybody has an idea how this can be avoided please ping me. I wasn’t able to figure this out. To proceed you have to click on the “Advance” button.

CleanShot 2021-11-14 at 18 57 01

In the next step you have to grant the script permission to the following things:

CleanShot 2021-11-14 at 18 46 22

If you make your own copy the script is running from your own Google account and nobody else has access to the data.

Follow the steps in the right order

It is recommended to follow the order in the “Core Web Vitals Optimizer” menu

1. Origins

Create/Update CrUX Origins

Menu: Core Web Vitals Organizer → Origins → Create/Update CrUX Origins

The tool creates a Origin sheet and shows the Core Web Vital metrics based on the latest CrUX data. If you run it again the page will be deleted and recreated.

Toggle detail

Menu: Core Web Vitals Organizer → Origins → Toggle detail

Changes the level of details shown on the sheet. This might be handy for making screenshots.

CleanShot 2021-11-14 at 19 15 05

2. Page Groups

Create Page Groups

Menu: Core Web Vitals Organizer → Page Groups → Create Page Groups

As the page group example URLs are not in CrUX data set you have to set the data manually.

Toggle detail

Menu: Core Web Vitals Organizer → Page Groups → Toggle detail

Changes the level of details shown on the sheet. This might be handy for making screenshots.

3. Pages

Create CrUX Pages (or continue after timeout)

Menu: Core Web Vitals Organizer → Pages → Create CrUX Pages (or continue after timeout)

Update CrUX Pages table

Menu: Core Web Vitals Organizer → Pages → Update CrUX Data in Pages table

This functionality goes through all the URLs in the table and gets the newest CrUX data. This is much faster then checking the complete sitemap.xml. If you have the auto function activated you get the newest data automatically. If the excecution time excecutes before all pages are updated the scripts automatically starts over and contuines the work until it is done.

CleanShot 2021-11-14 at 19 17 06

Toggle detail

Menu: Core Web Vitals Organizer → Pages → Toggle detail

Changes the level of details shown on the sheet. This might be handy for making screenshots.

CleanShot 2021-11-14 at 19 17 42

Delete cached URLs

Menu: Core Web Vitals Organizer → Pages → Delete cached URLs

When you create the pages sheet all URLs from the sitemap.xml(s) get chached in a hidden sheet. If your website has a lot of new pages you can delete the cache and start fresh.

5. Import page data

Create Importer sheet

Menu: Core Web Vitals Organizer → Pages → Create page data importer sheet

This creates a sheet with three columns: URL, page views and page types. If you can export this data from your analytics tool you can copy&paste it here.

CleanShot 2021-11-14 at 19 18 41

Import data

Menu: Core Web Vitals Organizer → Pages → Import pages views and page types

This will copy the page views and pages types to your pages sheet and page groups sheet for matching URLs.

5. Audits

Recommend Audits

Menu: Core Web Vitals Organizer → Audits → Recommend Audits

Before you use the recommendation function you should add the page groups and pages sheet and set the page types and page views. The recommendation engine sorts the entries by Core Web Vitals metrics (poor, needs improvement, poor), page types, page views. It recommends the worst pages for each page type with the most page views.

Create audits for marked pages

Menu: Core Web Vitals Organizer → Audits → Create audits for marked pages

It creates an audit sheet for each URL which has a activated check box in the audit column (pages & page groups). For each URL only one audit sheet will be created.

CleanShot 2021-11-14 at 19 57 30

Hide completed audit sheets

Menu: Core Web Vitals Organizer → Audits → Hide completed audit sheets

Hide all audit sheets with the status “Done”.

Show completed audit sheets

Menu: Core Web Vitals Organizer → Audits → Show completed audit sheets

If you set the status in an Audit sheet to “done” the audit sheet gets automatically hidden. If you want to check completed audit sheets again, you can make them visible all at once (you can also use the Google Sheet functionality to show/hide single audit sheets)

Audit Overview

The Audit Overview sheet shows the status of all audits at a glance: CleanShot 2021-11-14 at 19 49 28

6. Planning

Show planning sheet

Menu: Core Web Vitals Organizer → Planning → Show planning sheet

The planning sheet gives you a nice overview of all the audit outcomes:

CleanShot 2021-11-14 at 19 51 59

Create Trend Sheets

Menu: Core Web Vitals Organizer → Trends → Create trend sheets for marked origins

This gives you a nice overview how the Core Web Vitals change over time. You get two different chart types for each Core Web Vital metric. It is recommended to activate the daily CrUX updates.

A special thanks to Barry Polland (@tunetheweb) who shared his charts with me.

CleanShot 2021-11-14 at 19 13 53

Webpagetest.org integration (paid WPT API key needed) – work in progress

I am currently working together with the Webpagetest team to find the best way we can integrate the Webpagetest.org API into the tool.

The idea is to run multiple webpagetests simultanously (mobile, desktop, with & without Cookielayer) and show the results of the median test in a table. This gives you a quick overview if things are getting better or not.

If you add random data for the Webpagetest API Key and the test keys you can see a mockup which works based on random generated data.

Customizations

If you open the config.gs (Extendions → Script Editor → config.gs) you can easily change the following settings:

Change Timezone (Timezone Format)

Change Workflows

Planning sheet (name, background color, font color):

Audit (name, background color, font color):

Change Checklist