Skip to content

Commit

Permalink
remove unused tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwind committed Dec 5, 2024
1 parent 57f5ef6 commit c2cf724
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
5 changes: 0 additions & 5 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { PlatformService } from 'src/app/site-common/platform.service';
import { environment } from '../environments/environment';
import { LayoutComponent } from './layout/layout.component';
import { SiteMetaService } from './site-common/site-meta.service';
import { TrackService } from './site-common/track.service';
import { filter, pairwise, startWith } from 'rxjs';

declare const gtag: (
Expand All @@ -28,7 +27,6 @@ export class AppComponent implements OnInit {
private router = inject(Router);
private platformService = inject(PlatformService);
private siteMetaService = inject(SiteMetaService);
private trackService = inject(TrackService);

ngOnInit() {
this.router.events
Expand All @@ -50,9 +48,6 @@ export class AppComponent implements OnInit {
)
.subscribe((events) => {
if (!this.platformService.isServer && environment.production) {
this.trackService.sendTrack(
(events[0] as NavigationEnd | null)?.url || '',
);
gtag('event', 'page_view', {
page_path: (events[1] as NavigationEnd | null)?.url || '',
});
Expand Down
24 changes: 0 additions & 24 deletions src/app/site-common/track.service.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const environment = {
production: true,
url: '',
trackUrl: 'https://mike-dashboard.azurewebsites.net/api/wt?code=AsqZnNWtZj90MnA1eufWnBNSFshKcyG_YNPKTHMaIkQkAzFuwRDbRg=='
};
1 change: 0 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
export const environment = {
production: false,
url: '',
trackUrl: ''
};

/*
Expand Down

0 comments on commit c2cf724

Please sign in to comment.