fdff
import { Injectable, OnInit } from '@angular/core';
import {Gtag, GtagPageview, GtagEvent} from 'angular-gtag';
@Injectable ()
export class GoogleAnalyticsService implements OnInit {
constructor (private gtag: Gtag) {};
public ngOnInit(): void {}
public sendEvent(eventCategory: string, eventAction: string, eventLabel: string) {
this.gtag.event(eventCategory, {
event_action: eventAction,
event_category: eventCategory,
event_label: eventLabel
});
}
}