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

Method _sendPage

docs/src/app/shared/analytics/analytics.ts:58–68  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

56 }
57
58 private _sendPage(url: string) {
59 // Won't re-send if the url hasn't changed.
60 if (url === this._previousUrl) {
61 return;
62 }
63 this._previousUrl = url;
64 this._legacyGa('mat.set', 'page', url);
65 this._legacyGa('ng.set', 'page', url);
66 this._legacyGa('mat.send', 'pageview');
67 this._legacyGa('ng.send', 'pageview');
68 }
69
70 private _legacyGa(...args: any[]) {
71 this._gaWindow.ga?.(...args);

Callers 1

locationChangedMethod · 0.95

Calls 1

_legacyGaMethod · 0.95

Tested by

no test coverage detected