You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Core web vitals are Google’s metrics that gauge overall user experience. They give valuable insight into how users view your business, which can influence your site’s SEO rankings. By having a score that captures user experience, you can take action on specific problems rather than guessing at what your site needs.
19
+
Core Web Vitals (CWV) are Google’s metrics that gauge overall user experience. They give valuable insight into how users view your business, which can influence your site’s SEO rankings. By having a score that captures user experience, you can take action on specific problems rather than guessing at what your site needs.
20
20
21
21
## Objectives [#objectives]
22
22
23
-
This tutorial walks you through using New Relic to break down your core web vitals. By the end of the tutorial, you'll have these tasks completed:
23
+
This tutorial walks you through using New Relic to break down your CWV. By the end of the tutorial, you'll have these tasks completed:
24
24
25
-
* Find core web vitals in New Relic.
26
-
* Understand how core web vitals translate into site performance.
25
+
* Find CWV in New Relic.
26
+
* Understand how CWV translates into site performance.
27
27
* Explore your New Relic data to identify what's contributing to your score.
28
28
29
-
## Learn about core web vitals[#learn]
29
+
## Learn about CWV[#learn]
30
30
31
31
Google measures overall website performance by these three metrics:
32
32
@@ -123,7 +123,7 @@ Each web vital has the following thresholds to help you track your app's perform
123
123
<Calloutvariant="tip">
124
124
### How is the CLS score calculated?
125
125
126
-
The cumulative layout shift score is a unitless value between 0 and infinity, not a time-based measurement like the other core web vitals. It reflects the sum of the impact of unexpected layout shifts that occur during the loading process of a webpage. Here's how the CLS score is calculated:
126
+
The cumulative layout shift score is a unitless value between 0 and infinity, not a time-based measurement like the other CWVs. It reflects the sum of the impact of unexpected layout shifts that occur during the loading process of a webpage. Here's how the CLS score is calculated:
127
127
128
128
* Layout shift score: This considers two factors:
129
129
* Fraction of viewport shifted: How much of the visible area of the page (viewport) is affected by the layout shift.
@@ -133,11 +133,11 @@ Each web vital has the following thresholds to help you track your app's perform
133
133
134
134
<DNT>**Good**</DNT> web vitals can help your organization save money and increase SEO. <DNT>**Poor**</DNT> or <DNT>**Needs improvement**</DNT> can reflect negative user perceptions of your organization, which could result in dissatisfied customers or lost business opportunities.
135
135
136
-
New Relic leverages Google's [`web-vitals` API library](https://github.com/GoogleChrome/web-vitals) to gather web vitals in their raw state, without introducing additional calculations. To learn more about why core web vitals matter and how they're calculated, see the web.dev article [User-centric performance metrics](https://web.dev/articles/user-centric-performance-metrics).
136
+
New Relic leverages Google's [`web-vitals` API library](https://github.com/GoogleChrome/web-vitals) to gather web vitals in their raw state, without introducing additional calculations. To learn more about why CWVs matter and how they're calculated, see the web.dev article [User-centric performance metrics](https://web.dev/articles/user-centric-performance-metrics).
137
137
138
-
## Find core web vitals in New Relic [#view-data-in-nr]
138
+
## Find CWVs in New Relic [#view-data-in-nr]
139
139
140
-
Core web vitals are embedded into many New Relic features, but the best way to view web vitals at a high level is:
140
+
CWVs are embedded into many New Relic features, but the best way to view web vitals at a high level is:
141
141
142
142
1. Go to <DNT>**[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Browser**</DNT>.
143
143
2. Select an app.
@@ -148,26 +148,26 @@ Core web vitals are embedded into many New Relic features, but the best way to v
148
148
<img
149
149
title="Track core web vitals site-wide, favorite key webpages, and filter by time period."
If you want insight into an important page — for example, an ecommerce checkout page — find it in the <DNT>**Page URL**</DNT> table. You'll see a breakdown of what's contributing to core web vitals, which you can use to understand how your end users are experiencing those areas of your site. For example, if you notice a pattern of poor performance from Chrome browsers, you can curate any future improvements to that user base.
156
+
If you want insight into an important page — for example, an ecommerce checkout page — find it in the <DNT>**Page URL**</DNT> table. You'll see a breakdown of what's contributing to CWVs, which you can use to understand how your end users are experiencing those areas of your site. For example, if you notice a pattern of poor performance from Chrome browsers, you can curate any future improvements to that user base.
157
157
158
158
<img
159
-
title="Click on a page URL to see page-specific web vitals."
159
+
title="Click a page URL to see page-specific web vitals."
160
160
alt="Click on a page URL to see page-specific web vitals."
<DNT>**[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Browser > (select an app) > Monitor > Web vitals > (click on a page URL)**</DNT>: View a breakdown of core web vitals for the most impactful webpages.
165
+
<DNT>**[one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Browser > (select an app) > Monitor > Web vitals > (click a page URL)**</DNT>: View a breakdown of CWVs for the most impactful webpages.
166
166
</figcaption>
167
167
168
168
### Filter by key attributes [#key-attributes]
169
169
170
-
If you want to investigate something particular, like how a backend change or performance issue impacted core web vitals, you can use the <DNT>**Filter by**</DNT> tool to filter any key attribute.
170
+
If you want to investigate something particular, like how a backend change or performance issue impacted CWVs, you can use the <DNT>**Filter by**</DNT> tool to filter any key attribute.
171
171
172
172
<img
173
173
title="Use the filter tool to filter core web vitals by key attributes"
@@ -186,7 +186,7 @@ Though you can filter by nearly any key attribute, read on for some useful examp
186
186
id="device"
187
187
title="By device type"
188
188
>
189
-
Let's say you want to compare desktop vs. mobile performance and how core web vitals differ between the two platforms. To investigate this in <DNT>**Web vitals**</DNT>:
189
+
Let's say you want to compare desktop vs. mobile performance and how CWVs differ between the two platforms. To investigate this in <DNT>**Web vitals**</DNT>:
190
190
191
191
1. In the <DNT>**Filter by**</DNT> field, set <DNT>**Attribute**</DNT> to`deviceType` and <DNT>**Value**</DNT> to `desktop`.
192
192
2. In a duplicate browser, set <DNT>**Attribute**</DNT> to`deviceType` and <DNT>**Value**</DNT> to `mobile`, then compare the results.
@@ -214,10 +214,10 @@ Though you can filter by nearly any key attribute, read on for some useful examp
214
214
id="resource"
215
215
title="By resource"
216
216
>
217
-
Let's say your organization recently updated images on the site’s home page on November 10 at 8am, and you want to see if the changes impacted core web vitals. To investigate this in <DNT>**Web vitals**</DNT>:
217
+
Let's say your organization recently updated images on the site’s home page on November 10 at 8am, and you want to see if the changes impacted CWVs. To investigate this in <DNT>**Web vitals**</DNT>:
218
218
219
219
1. Set the time range to November 10 at between 7am and 9am.
220
-
2. In the <DNT>**Page URL**</DNT> table, click on the home page URL.
220
+
2. In the <DNT>**Page URL**</DNT> table, click the home page URL.
221
221
3. In the <DNT>**Filter by**</DNT> field, set <DNT>**Attribute**</DNT> to `elementTagName` and <DNT>**Value**</DNT> to `IMG`.
222
222
</Collapser>
223
223
</CollapserGroup>
@@ -232,14 +232,29 @@ New Relic captures data about a user's session on a given page. Session traces a
We recommend using session traces to find patterns across different user sessions. If one of your core web vitals scores could be improved, one option is to look at session traces to see what common attributes are shared across different user sessions. Here's an example of how session traces can help you improve your site:
235
+
We recommend using session traces to find patterns across different user sessions. If one of your CWVs scores could be improved, one option is to look at session traces to see what common attributes are shared across different user sessions. Here's an example of how session traces can help you improve your site:
236
236
237
237
1. From the <DNT>**Web vitals**</DNT> tab, click the page that's performing poorly. Using the above image as an example, you see that your site has a good overall LCP score, but you also notice some of your individual pages need improvement.
238
238
2. Looking at the <DNT>**Page URLs**</DNT> section of the <DNT>**Web vitals**</DNT> page, you see that your homepage URL has an LCP score of greater than four seconds. Is this due to an error that affects all users, or is it only affecting one kind of user? For example, if you notice that users with one version of Chrome or a certain operating system are experiencing slow page load times, you can better troubleshoot the specific cause of an issue.
239
239
3. A new window will populate when you click the URL you want to troubleshoot. You notice that your LCP score is much higher than your site's overall LCP score. Scrolling to the <DNT>**Session traces**</DNT> section at the bottom of this page, you see various samples of real user sessions. These sessions can give you more granular detail about how that user experienced AJAX requests, issues related to DOM loading, JavaScript events or other errors.
240
240
241
241
Data from randomized sessions helps you find patterns across hundreds or thousands of user interactions with a web page. If a pattern appears in this randomly selected data, you can have more confidence that your plan to resolve an issue will improve your page scores.
242
242
243
+
## Enhance your understanding with session replays [#session-replays]
244
+
245
+
If a poor LCP or a high CLS has been identified, session replays provide a visual record of what occurred, helping to quickly pinpoint the exact element or event causing the problem.
246
+
247
+
Here's an example of how session replays can help you improve your site:
248
+
249
+
1. Identify a performance issue: On the <DNT>**Web vitals**</DNT> page, click the relevant URL to open its detailed performance view. This action redirects to a detailed view of the web vitals information for that page. Examine the CWV scores and look for any with the <DNT>**Needs improvement**</DNT> or <DNT>**Poor**</DNT> labels. You can also filter the results by device type or browser, as performance issues can vary significantly across platforms. Understanding these details helps pinpoint specific areas for optimization.
250
+
2. Access relevant replays: Click the number in the <DNT>**Session replays**</DNT> column for the data point you're investigating. This action automatically filters the replays to display sessions that experienced the specific performance issue. For example, clicking on the session replay count for a page with a poor LCP will present a list of sessions where the LCP was slow.
251
+
3. Watch and diagnose: Watch the video recordings to gain a visual understanding of the problem. You might discover:
252
+
* LCP issues: A large hero image or video that loaded slowly, causing a blank screen for several seconds.
253
+
* CLS issues: An advertisement or third-party content that loaded late, causing the page content to unexpectedly shift.
254
+
* INP issues: A slow-responding button or interactive element can cause frustration.
255
+
256
+
By combining the technical data from session traces with the visual context of session replays, you can develop a comprehensive plan to resolve performance issues and significantly enhance your end-user experience.
257
+
243
258
<UserJourneyControls
244
259
nextStep={{path: "/docs/tutorial-improve-site-performance/fixing-high-latency", title: "Next step", body: "Find latency issues across your services"}}
245
260
previousStep={{path: "/docs/tutorial-improve-site-performance/improve-website-performance", title: "Previous step", body: "Instrument your site"}}
0 commit comments