diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a9e529f..0249dd7 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,6 +1,5 @@ import { Component } from '@angular/core'; import { interval, startWith } from 'rxjs'; -import { GoogleAnalyticsService } from './services/google-analytics.service'; import { GetClosestTimezoneFrom, Timezone } from './timezone/models/timezone.model'; import { TimezoneService } from './timezone/services/timezone.service'; @@ -21,7 +20,6 @@ export class AppComponent { constructor( private timezoneService: TimezoneService, - private googleAnalyticsService: GoogleAnalyticsService ) { const currentTimezone = this.timezoneService.getCurrentTimezone(); if (currentTimezone) { diff --git a/src/app/services/google-analytics.service.ts b/src/app/services/google-analytics.service.ts deleted file mode 100644 index c1e7dc8..0000000 --- a/src/app/services/google-analytics.service.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Injectable } from '@angular/core'; - -declare let gtag: Function; - -@Injectable({ - providedIn: 'root', -}) -export class GoogleAnalyticsService { - constructor() {} - - public emitEvent(name: string, event: any) { - gtag('event', name, event); - } -}