data-vitals to the script tag, and each page load reports Largest Contentful Paint, Interaction to Next Paint, Cumulative Layout Shift, First Contentful Paint and Time to First Byte. The Performance screen turns those samples into a score, percentiles and a list of your slowest pages.
Turn on web vitals
Add thedata-vitals attribute to your existing script tag:
data-vitals="". In Settings, Tracking code, the Web vitals switch adds it to the snippet for your platform.
Deploy the change, open a page on your live site, then switch to another tab or close the page. Vitals are sent when the page is hidden, so the first numbers appear on Performance under Health in the site’s sidebar after real visitors have loaded and left a few pages.
Until any sample arrives, the screen shows No web vitals yet. with a Copy snippet button that copies your script tag with data-vitals already added.
How each metric is measured
The script follows the web-vitals definitions without loading the web-vitals package. It sends one event of typevitals per page load, the first time the page is hidden, and attributes it to the URL the page loaded with.
A few rules apply to every sample:
- Times are in milliseconds, measured from activation, so a prerendered page is not charged for the time before it was shown.
- CLS is a unitless score. The script sends it multiplied by 1000, and the dashboard shows it as the score again (for example
0.05). - FCP and LCP are left out for a page that loaded in a background tab, because nothing meaningful was painted.
- Only the metrics the browser supports are sent. A browser without layout-shift support sends no CLS, for example.
- A page excluded with
data-excludesends nothing.
Thresholds
CrispStats rates every value with the Core Web Vitals thresholds. A value up to the first bound is Good, a value above the second bound is Poor, and anything in between Needs improvement.
LCP, INP and CLS are the three Core Web Vitals. FCP and TTFB help you explain them: a slow TTFB delays everything after it.
Read the Performance screen
The date range and filters at the top of the dashboard apply to the whole screen. See filters and comparison.Core Web Vitals score
The score ring shows a number from 0 to 100: the share of measured page loads where LCP, INP and CLS were all good at once. Each page load sends one sample, and it passes when every core vital it reported is within the good bound, so a page load that reported only LCP is judged on LCP alone. The ring is rated:- Good at 75 or more, because Google grades a page at the 75th percentile.
- Needs improvement from 50 to 74.
- Poor below 50.
One card per metric
Each metric has a card with:- The 75th percentile (p75) for the range, with the number of samples.
- The change from the previous period, when you compare periods. A drop is shown as an improvement.
- A sparkline of the p75 over the range.
- A bar that splits the samples into good, needs improvement and poor.
Percentiles over time
The detail section charts the selected metric’s p75 for each minute, hour, day, week or month of the range (the bucket size follows the range), with lines at the good and poor bounds. While every point is good, the poor line is hidden; select it in the legend to show it. Switch between p50, p75 and p90 to read the typical visit, what Google grades, or the slow tail. The chart line is always the p75 of each bucket; p50 and p90 are measured over the whole range and drawn as a flat reference line.By page, device and country
- By page lists the 20 pages with the most samples, with the p75 of LCP, INP, CLS and TTFB and an overall rating. The rating is the worst of the page’s LCP, INP and CLS ratings. Sort by any column to find the slowest pages.
- By device shows the same p75 values for each device type (desktop, mobile, tablet).
- By country shows LCP and TTFB for the 20 countries with the most samples. Distance from your servers usually shows up in TTFB first.
Get alerted when the site gets slower
A Web vitals regression alert watches the p75 of LCP, INP, FCP or TTFB over a window you choose and notifies you once when it crosses your limit. See alert rule types.Next steps
Track JavaScript errors
Collect uncaught errors and rejected promises from the same script.
Alert rule types
Set a limit on LCP, INP, FCP or TTFB and get told when it is crossed.
Script attributes
Every optional module and option the script reads.