mirror of
https://github.com/jwetzell/itsfiveoclockwhere.git
synced 2026-08-21 06:49:01 +00:00
remove google analytics stuff
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { interval, startWith } from 'rxjs';
|
import { interval, startWith } from 'rxjs';
|
||||||
import { GoogleAnalyticsService } from './services/google-analytics.service';
|
|
||||||
import { GetClosestTimezoneFrom, Timezone } from './timezone/models/timezone.model';
|
import { GetClosestTimezoneFrom, Timezone } from './timezone/models/timezone.model';
|
||||||
import { TimezoneService } from './timezone/services/timezone.service';
|
import { TimezoneService } from './timezone/services/timezone.service';
|
||||||
|
|
||||||
@@ -21,7 +20,6 @@ export class AppComponent {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private timezoneService: TimezoneService,
|
private timezoneService: TimezoneService,
|
||||||
private googleAnalyticsService: GoogleAnalyticsService
|
|
||||||
) {
|
) {
|
||||||
const currentTimezone = this.timezoneService.getCurrentTimezone();
|
const currentTimezone = this.timezoneService.getCurrentTimezone();
|
||||||
if (currentTimezone) {
|
if (currentTimezone) {
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user