This commit is contained in:
Dominik Müller 2024-11-29 00:50:46 +00:00 committed by GitHub
commit 70724535a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,12 @@ export class AnalyticsService {
private enabled: boolean;
constructor(private location: Location, private router: Router) {
this.enabled = false;
this.enabled = true;
this.handleGaAvailability();
}
private handleGaAvailability() {
this.enabled = (typeof ga === 'function');
}
trackPageViews() {