Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit f1669c0

Browse files
committed
Enable ip anonymization for legacy universal analytics instance
1 parent 7c9d54b commit f1669c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/shared/analytics/analytics.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class AnalyticsService {
3434
// TODO: Remove this when we fully switch to Google Analytics 4+.
3535
this._legacyGa('create', environment.legacyUniversalAnalyticsMaterialId, 'auto', 'mat');
3636
this._legacyGa('create', environment.legacyUniversalAnalyticsMainId, 'auto', 'ng');
37+
this._legacyGa('set', 'anonymizeIp', true);
3738
}
3839

3940
reportError(description: string, fatal = true) {

0 commit comments

Comments
 (0)