Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web vitals #952

Merged
merged 10 commits into from
Jul 6, 2020
Merged
Prev Previous commit
Next Next commit
console log removed
  • Loading branch information
max-ostapenko committed Jul 4, 2020
commit ece2b1b105ca00d14890b16943a867e806fecde6
2 changes: 0 additions & 2 deletions src/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
gtag('config', 'UA-22381566-3');

function sendWebVitalsGAEvents(metric) {
console.log(metric);

gtag('event', metric.name, {
event_category: 'Web Vitals',
value: Math.round(metric.name === 'CLS' ? metric.delta * 1000 : metric.delta),
Expand Down