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

Method constructor

docs/src/app/shared/analytics/analytics.ts:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 };
34
35 constructor() {
36 this._installGlobalSiteTag();
37 this._installWindowErrorHandler();
38
39 // TODO: Remove this when we fully switch to Google Analytics 4+.
40 this._legacyGa('create', environment.legacyUniversalAnalyticsMaterialId, 'auto', 'mat');
41 this._legacyGa('create', environment.legacyUniversalAnalyticsMainId, 'auto', 'ng');
42 this._legacyGa('set', 'anonymizeIp', true);
43 }
44
45 reportError(description: string, fatal = true) {
46 // Limit descriptions to maximum of 150 characters.

Callers

nothing calls this directly

Calls 3

_installGlobalSiteTagMethod · 0.95
_legacyGaMethod · 0.95

Tested by

no test coverage detected