1
0

50479: Added google analytics support

This commit is contained in:
Kristof De Langhe
2018-03-20 15:29:05 +01:00
parent 62ff2d3454
commit 35cbedf6fe
10 changed files with 40 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ import { MetadataService } from './core/metadata/metadata.service';
import { HostWindowResizeAction } from './shared/host-window.actions';
import { HostWindowState } from './shared/host-window.reducer';
import { NativeWindowRef, NativeWindowService } from './shared/window.service';
import { Angulartics2GoogleAnalytics } from 'angulartics2/ga';
@Component({
selector: 'ds-app',
@@ -32,7 +33,8 @@ export class AppComponent implements OnInit {
@Inject(NativeWindowService) private _window: NativeWindowRef,
private translate: TranslateService,
private store: Store<HostWindowState>,
private metadata: MetadataService
private metadata: MetadataService,
private angulartics2GoogleAnalytics: Angulartics2GoogleAnalytics
) {
// this language will be used as a fallback when a translation isn't found in the current language
translate.setDefaultLang('en');