import { Injectable } from '@angular/core' ; declare var ga ; @ Injectable ( { providedIn : 'root' } ) export class AnalyticsService { constructor ( ) { } send ( category , action ) { ga ( 'send' , 'event' , category , action ) ; } }