Meta tags:
description= By default, Create React App includes a performance relayer that allows you to measure and analyze;
Headings (most frequently used words):
measuring, performance, web, vitals, sending, results, to, analytics,
Text of the page (most frequently used words):
the (15), web (8), app (8), function (7), react (6), #analytics (6), performance (6), #results (5), vitals (5), page (5), reportwebvitals (5), value (5), you (5), metrics (5), create (5), adding (5), sendtoanalytics (4), use (4), metric (4), any (4), measure (4), github (3), sending (3), this (3), more (3), copy (3), name (3), send (3), body (3), url (3), sendbeacon (3), navigator (3), and (3), your (3), measuring (3), started (2), docs (2), creating (2), production (2), build (2), making (2), progressive (2), read (2), about (2), google (2), here (2), true (2), values (2), fetch (2), back (2), example (2), const (2), can (2), endpoint (2), user (2), for (2), when (2), are (2), supported (2), support (2), that (2), log (2), console (2), using (2), variables (2), copyright, 2025, facebook, inc, social, contributor, covenant, twitter, discussions, stack, overflow, community, learn, get, next, previous, last, updated, ian, schmitz, 2020, edit, avoids, affecting, bounce, rate, noninteraction, unique, current, load, eventlabel, must, integers, 1000, cls, round, math, eventvalue, eventaction, eventcategory, event, make, easier, construct, distributions, manually, calculate, percentiles, etc, note, keepalive, post, method, else, available, falling, https, com, stringify, json, with, track, real, site, understand, object, returned, calculated, refer, section, also, explains, which, browsers, browser, documentation, set, useful, aim, capture, experience, third, party, library, used, these, fired, final, have, finished, calculating, particular, only, need, pass, into, index, default, includes, relayer, allows, analyze, application, different, advanced, usage, deployment, end, integration, testing, environment, router, relay, typescript, flow, bootstrap, global, importing, component, installing, dependency, building, styles, assets, development, getting, welcome, search, help, deprecated, skip, main, content,
Text of the page (random words):
measuring performance create react app skip to main content create react app is deprecated read more here create react app docs help github search k welcome getting started development styles and assets building your app installing a dependency importing a component using global variables adding bootstrap adding flow adding typescript adding relay adding a router environment variables making a progressive web app measuring performance creating a production build testing back end integration deployment advanced usage support on this page measuring performance by default create react app includes a performance relayer that allows you to measure and analyze the performance of your application using different metrics to measure any of the supported metrics you only need to pass a function into the reportwebvitals function in index js reportwebvitals console log copy this function is fired when the final values for any of the metrics have finished calculating on the page you can use it to log any of the results to the console or send to a particular endpoint web vitals web vitals are a set of useful metrics that aim to capture the user experience of a web page in create react app a third party library is used to measure these metrics web vitals to understand more about the object returned to the function when a metric value is calculated refer to the documentation the browser support section also explains which browsers are supported sending results to analytics with the reportwebvitals function you can send any of results to an analytics endpoint to measure and track real user performance on your site for example function sendtoanalytics metric const body json stringify metric const url https example com analytics use navigator sendbeacon if available falling back to fetch if navigator sendbeacon navigator sendbeacon url body else fetch url body method post keepalive true reportwebvitals sendtoanalytics copy note if you use google analytics use the id value to make it easier to construct metric distributions manually to calculate percentiles etc function sendtoanalytics id name value ga send event eventcategory web vitals eventaction name eventvalue math round name cls value 1000 value values must be integers eventlabel id id unique to current page load noninteraction true avoids affecting bounce rate reportwebvitals sendtoanalytics copy read more about sending results to google analytics here edit this page last updated on 6 20 2020 by ian schmitz previous making a progressive web app next creating a production build web vitals sending results to analytics docs get started learn react community stack overflow github discussions twitter contributor covenant social github copyright 2025 facebook inc
|