You are currently viewing Field Guide to Reporting on Core Web Vitals: Part 2

Field Guide to Reporting on Core Web Vitals: Part 2

Updated August 24, 2021 with new information and data. Since this article was originally published in September 2020, the amazing Simo Ahava has since devised a method to measure Core Web Vitals in Google Analytics (both Universal Analytics and GA4). Weโ€™ve added a section toward the end of this post showing our adaptation of his method specifically for Universal Analytics.

Welcome to the second installment of the Field Guide to Reporting on Web Vitals! In Part 1, we covered:

  • What Core Web Vitals are
  • Why they matter
  • What tools you can use to measure them

In this post, weโ€™ll outline three solutions to integrate Core Web Vitals into your reporting. To illustrate this solution, weโ€™ll use Google Data Studio (the Portent dashboarding tool of choice) and Googleโ€™s Universal Analytics.

How to Report on Core Web Vitals in Google Data Studio

We recommend two methods of pulling Core Web Vitals data into GDS to create a comprehensive and automated web vitals report: the Chrome UX GDS connector and PageSpeed Insights.

Chrome UX Reports GDS Connector

The Chrome UX Report GDS connector is a free, open-source connector. The Chrome UX report (aka CrUX) โ€œprovides user experience metrics for how real-world Chrome users experience popular destinations on the web.โ€

With this connector, we get access to:

  • Largest Contentful Paint (LCP)
  • First Input Delay (FID)
  • Cumulative Layout Shift (CLS)
  • First Contentful Paint (FCP)

To use this connector, go to Data Studio and select โ€œCreateโ€ at the top lefthand side, and then โ€œData source.โ€

Search for โ€œChrome UX Reportโ€ and it will appear at the bottom. Click into the connector.

""

Enter the origin URL of choice, and then click โ€œConnect.โ€

This connector only accepts origin URLs like โ€œhttps://www.portent.com,โ€ and does not accept full URLs, such as โ€œhttps://www.portent.com/blog.โ€ For additional information on how to input URLs, Google has provided an excellent resource for details about the Chrome UX connector.

""

After you create the data source, itโ€™s ready to use and configure in Google Data Studio.

Here is a sample slide of how we recommend visualizing and reporting on the Core Web Vitals metrics, with five reporting elements called out.

""

This sample slide focuses on Cumulative Layout Shift (CLS). The five reporting elements are what help bring context to understanding CLS, and how it is trending on our website over time:

  1. Last Month. This is a sideways 100% stacked bar chart that displays โ€œPoor CLS,โ€ โ€œNeeds Improvement CLS,โ€ and โ€œGood CLS.โ€ Iโ€™ve set the date range to โ€œLast Month,โ€ and included each metricโ€™s percentages for clarity. You can also mouse over each individual section to get a pop-out box of the metric name and result.""Iโ€™ve also color-matched these to the Search Console report, for visual continuity.
  2. Change Over Time. This is a 100% stacked column chart, set back as far as we have available data for the metric. This timeframe will vary from metric to metric (for example, the Largest Contentful Paint metric only goes back as far as September 2019.) The data reads from left to right, with left being the earliest data available, and right being the most recent. This chart allows you to see where improvements are being made and how. The metrics here are also โ€œPoor CLS,โ€ โ€œNeeds Improvement CLS,โ€ and โ€œGood CLS.โ€
  3. Device Type. While seeing Core Web Vitals as a whole is useful, itโ€™s also critical to understand that these metrics may behave very differently on desktop, mobile, and tablets, and therefore score differently. Having a โ€œDeviceโ€ filter allows you to see where these metrics are most impacted. The โ€œLast Monthโ€ and โ€œChange Over Timeโ€ charts are 100% stacked charts so that they are responsive to this filter.
  4. โ€œGoodโ€ CLS and โ€œPoorโ€ CLS compared YoY. We picked the โ€œGoodโ€ and โ€œPoorโ€ metrics to highlight in the scorecard, with โ€œLast Monthโ€ as the date range, and YoY comparison data underneath. This will tell you at a glance how your website ranks and how the metric has changed compared to the previous year.
  5. Definitions. Core Web Vitals each measure a specific aspect of a userโ€™s experience with a web page. Weโ€™ve used this section to reiterate what that measurement is, and what is considered โ€œGood,โ€ โ€œNeeds Improvement,โ€ and โ€œPoorโ€ as it relates to each metric.

This format is repeatable for all three Core Web Vitals metrics, and First Contentful Paint. These are the first four pages of the report:

PageSpeed Insights via the URL Embed Tool

The second data source we recommend using in this web vitals report is PageSpeed Insights. To achieve this, we have embedded PageSpeed Insights measuring โ€œPortent.comโ€ in the final page of our GDS report:

""

To embed this report in GDS, click on โ€œInsertโ€ in the top navigation bar, and scroll down to โ€œURL Embed.โ€ Draw a box on the GDS slide where you want PageSpeed Insights to appear. In our report, weโ€™ve dedicated most of the slide to the embed box for maximum visibility and ease of use.

After placing the box, you can define the URL of the embed. Simply replace the below URL with the URL you want to measure:

โ€œhttps://developers.google.com/speed/pagespeed/insights/?url=portent.comโ€

""
""

Embedding a URL into GDS functions as if youโ€™re on the PageSpeed Insights page, except that itโ€™s accessible in your GDS report, supplementing the Chrome UX Web Vitals data.

While the previous monthโ€™s Chrome UX data is available beginning the second Tuesday of the month, PageSpeed Insights are available to you all the time. It gives you an instant pulse check on all metrics and how they measure in real-time.

This report aggregates mobile and desktop separately, so remember to toggle between the two and see how they compare. This report defaults to mobile first, so youโ€™ll need to toggle to see desktop:

""

PageSpeed Insights also outlines specific opportunities and diagnostics to give you tangible actions to improve your Core Web Vitals scores.

""
Opportunities to improve Web Vitals scores
""
Additional page diagnostics

How to Report on Core Web Vitals in Google Analytics

As youโ€™ve just read, reporting on Core Web Vitals in Google Data Studio is really straightforward. But it has two major drawbacks:

  1. Thereโ€™s no way to get page-specific data in the GDS connector. If youโ€™re trying to troubleshoot the most problematic pages on your site from a Core Web Vitals perspective, that presents an issue.
  2. Thereโ€™s no way to contextualize your performance on Core Web Vitals alongside its larger effect on your siteโ€™s user experience over time. If you want to know how CLS, FCP, or FID is impacting a userโ€™s engagement with content or their conversion rate, youโ€™re out of luck.

Thatโ€™s where Simoโ€™s new Google Tag Manager template comes in.

Customizing the Core Web Vitals Event Tag in Google Tag Manager

Once youโ€™ve gone to Simoโ€™s site and followed his step-by-step directions including the variable and triggers, youโ€™ll want to set up a Universal Analytics event tag with the following settings:

  1. Name your Event Category โ€œCore Web Vitals.โ€
  2. Use the DLV โ€“ webVitalsMeasurement.name Variable as your Event Action.
  3. Use the Page Path Variable as your Event Label.
  4. Use the DLV โ€“ webVitalsMeasurement.valueRounded Variable as your Event Value.
  5. (a) Enable overriding settings in this tag.
    (b) Under Fields to Set, type in Field Name โ€œtransportโ€ and Value โ€œbeacon.โ€

""

After this is configured, weโ€™ll look at how to unpack this event data in Google Analytics itself.

Analyzing Core Web Vitals Data in Google Analytics

When youโ€™ve published the tag in Google Tag Manager, you can go and watch the data stream into the Realtime > Events report in Google Analytics, shown below.

""

This shows you that Core Web Vitals information is being collected for each of the three main metrics (Cumulative Layout Shift, First Input Delay, and Largest Contentful Paint) and which pages those are being collected on. But it still doesnโ€™t show you the values of those metrics.

For that information, youโ€™ll need to go to the Behavior > Events > Top Events report. Here, you can see the same event information available, but with the Total Value and Avg. Value of the events.

""

Remember the scale of the Core Web Vitals values to understand how your siteโ€™s (and individual page) performance stacks up.

""
Source: https://web.dev/cls/
""
Source: https://web.dev/fid/
""
Source: https://web.dev/lcp/

Lastly, you can build segments from the Core Web Vitals data to apply that context to other reports in GA: campaign, content, and source reports.

Here, weโ€™ve built a segment looking for sessions that contain LCP values per hit at or over 2500 milliseconds (>=2.5 seconds) to which pages we need to improve.

""

Benefits of Each Data Source

Using these solutions, you have access to Core Web Vitals in your reporting in an automated and refreshable format.

The benefit of the Chrome UX report is being able to see trends in Web Vitals and change over time. PageSpeed Insights provides you with real-time measurement of your website and tangible action items to improve your Web Vitals scores. And looking at Core Web Vitals within the context of Google Analytics adds a new level of insight that you can take action on in your marketing.

Ultimately, using all of these sources in tandem and building a Core Web Vitals dashboard will help you get a better baseline understanding of which metrics you may need to improve, thus positioning your website for a smooth transition when Core Web Vitals become a ranking factor in the Google SERPs.

The post Field Guide to Reporting on Core Web Vitals: Part 2 appeared first on Portent.