Skip to content

Commit 4c18bbd

Browse files
committed
removing ga tracking
1 parent ae12be9 commit 4c18bbd

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/app/app.component.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,15 @@
11
import {Component} from '@angular/core';
2-
import {environment} from '../environments/environment';
3-
4-
declare let ga: Function;
52

63
@Component({
74
selector: 'app-root',
85
templateUrl: './app.component.html',
96
styleUrls: ['./app.component.css']
107
})
118
export class AppComponent {
12-
ga = null;
13-
gaTrackId = '';
149
mobileNavSection = 'home';
1510
parentSections = [];
1611

1712
constructor() {
18-
19-
// Avoid google analytics for dev and testing unless explicitly indicated
20-
if (environment.production && window.location.host === 'hpo.jax.org') {
21-
this.gaTrackId = environment.HPO_GOOGLE_ANALYTICS_TRACKING_ID;
22-
23-
} else if (!environment.production && environment.HPO_ENABLE_GA_TEST) {
24-
this.gaTrackId = environment.HPO_GOOGLE_ANALYTICS_TEST_TRACKING_ID;
25-
}
26-
27-
if (this.gaTrackId.length > 0) {
28-
ga('create', this.gaTrackId, 'auto');
29-
30-
// Only require the plugins you've imported above.
31-
ga('require', 'eventTracker');
32-
ga('require', 'outboundLinkTracker');
33-
ga('require', 'urlChangeTracker');
34-
ga('require', 'cleanUrlTracker');
35-
36-
ga('send', 'pageview');
37-
}
3813
}
3914

4015
backNavigate() {

0 commit comments

Comments
 (0)