Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/pkgsite: track JS errors and latency metrics via Google Tag Manager #40958
https://philipwalton.com/articles/the-google-analytics-setup-i-use-on-every-site-i-build/ has some good info for tracking JS errors and latency metrics via Google Analytics. Since we use GTM we have to pipe the info through there.
As a note, we should not implement all recommendations in the doc above like recording client and window IDs.
Also worth looking into https://web.dev/vitals/ to see if those are more appropriate to record as well.
The implementation details can be outlined in this issue or a public doc (plus the CL will be public).
…king Adds the web vitals script built from source to track web vitals metrics with Google Tag Manager. This will give us more insight into how pkgsite is performing in the wild and allow us to track changes in performance before and after the redesign. Updates golang/go#40958 Change-Id: Ieba237150b6a7056b5dee57911432678bb914b19 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/251537 Reviewed-by: Andrew Bonventre <firstname.lastname@example.org>
Adds a handler to catch unhandled exceptions and report them to Google Analytics. Updates golang/go#40958 Change-Id: I9d9a501da4fea2e95a36809535b234a7d2537f02 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/251918 Reviewed-by: Andrew Bonventre <email@example.com>
Adds a handler to capture rejected promises and report them to Google Analytics. For golang/go#40958 Change-Id: Ic0a48d03acbe238bedb2b4eeac7dfb31a8e26d25 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/253597 Run-TryBot: Jamal Carvalho <firstname.lastname@example.org> TryBot-Result: kokoro <email@example.com> Reviewed-by: Julie Qiu <firstname.lastname@example.org>
Adds a flag to disable CSP during local development. Useful for debugging Google Tag Manager configuration. Does not cause security risk because its only for local development and you can't use runtime flags in App Engine. For golang/go#40960 For golang/go#40958 Change-Id: I9669bd745d1bb3f78472d91142053992dde2cc6b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/252823 Reviewed-by: Jonathan Amsterdam <email@example.com> Trust: Julie Qiu <firstname.lastname@example.org>