web-vitals icon indicating copy to clipboard operation
web-vitals copied to clipboard

feat: Send the metrics to an api

Open ats0405 opened this issue 4 years ago • 1 comments

Problem At the moment, the metrics generated are not send to a custom API created by developers.

Solution

  • Give developers an option to send web-vitals metrics to an endpoint.
  • I have added an example in the playground. In this example, the metrics are send to a server middleware with the endpoint /analytics.

ats0405 avatar Dec 06 '21 14:12 ats0405

Hey @pi0 do you think you could take a look at this PR? Do you think it's in the right direction, I'm interested in it.

Thanks a lot 🙏🏻

woile avatar Jan 18 '22 14:01 woile

Thanks for PR @ats0405 ❤️

pi0 avatar Nov 29 '22 12:11 pi0