import { Component } from '@angular/core' ; import { TranslateService } from '@ngx-translate/core' ; import { Angulartics2GoogleAnalytics } from 'angulartics2/ga' ; @ Component ( { selector : 'app-root' , templateUrl : './app.component.html' , styleUrls : [ './app.component.scss' ] } ) export class AppComponent { constructor ( translate , ga ) { ga . startTracking ( ) ; } }