Skip to content

Commit

Permalink
chore: disable analytics
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Bürk <[email protected]>
  • Loading branch information
Airblader committed Nov 7, 2022
1 parent 9cfaed6 commit c5e58af
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions projects/ngqp-demo/src/app/shared/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ declare const gtag: Function;
@Injectable()
export class AnalyticsService {

private readonly enabled: boolean;

constructor() {
this.enabled = window && window.location && window.location.href.includes('ngqp.io');
}
private readonly enabled = false;

public startTracking(router: Router): void {
if (!this.enabled) {
Expand Down Expand Up @@ -44,4 +40,4 @@ export class AnalyticsService {
}
}

}
}

0 comments on commit c5e58af

Please sign in to comment.