MCPcopy Create free account
hub / github.com/angular/components / reportError

Method reportError

docs/src/app/shared/analytics/analytics.ts:45–52  ·  view source on GitHub ↗
(description: string, fatal = true)

Source from the content-addressed store, hash-verified

43 }
44
45 reportError(description: string, fatal = true) {
46 // Limit descriptions to maximum of 150 characters.
47 // See: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#exd.
48 description = description.substring(0, 150);
49
50 this._legacyGa('send', 'exception', {exDescription: description, exFatal: fatal});
51 this._gtag('event', 'exception', {description: description, fatal});
52 }
53
54 locationChanged(url: string) {
55 this._sendPage(url);

Callers 2

handleErrorMethod · 0.80

Calls 2

_legacyGaMethod · 0.95
_gtagMethod · 0.95

Tested by

no test coverage detected