Unverified Commit 7c8500f1 authored by Mike K's avatar Mike K Committed by GitHub

Updated wrong link to example of gtag init in measuring-performance.md (#32974)

Updated wrong link to example of gtag init



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ x ] Make sure the linting passes by running `yarn lint`
parent 69a56759
...@@ -164,7 +164,7 @@ export function reportWebVitals(metric) { ...@@ -164,7 +164,7 @@ export function reportWebVitals(metric) {
> ```js > ```js
> export function reportWebVitals({ id, name, label, value }) { > export function reportWebVitals({ id, name, label, value }) {
> // Use `window.gtag` if you initialized Google Analytics as this example: > // 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, { > window.gtag('event', name, {
> event_category: > event_category:
> label === 'web-vital' ? 'Web Vitals' : 'Next.js custom metric', > label === 'web-vital' ? 'Web Vitals' : 'Next.js custom metric',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment