diff --git a/docs/advanced-features/measuring-performance.md b/docs/advanced-features/measuring-performance.md index 789d94bb8759c..0a861b416473d 100644 --- a/docs/advanced-features/measuring-performance.md +++ b/docs/advanced-features/measuring-performance.md @@ -164,7 +164,7 @@ export function reportWebVitals(metric) { > ```js > export function reportWebVitals({ id, name, label, value }) { > // Use `window.gtag` if you initialized Google Analytics as this example: -> // https://github.com/vercel/next.js/blob/canary/examples/with-google-analytics/pages/_document.js +> // https://github.com/vercel/next.js/blob/canary/examples/with-google-analytics/pages/_app.js > window.gtag('event', name, { > event_category: > label === 'web-vital' ? 'Web Vitals' : 'Next.js custom metric',