Skip to content
Snippets Groups Projects
Commit 7ea95eac authored by ncastejon's avatar ncastejon
Browse files

Init the Matomo tracking with the angulartics2 plugin

parent ba3d1e22
No related branches found
No related tags found
1 merge request!49Version 2.3.1
Pipeline #1782 passed
......@@ -4,6 +4,7 @@ import { filter, map } from 'rxjs/operators';
import { AppRoutes } from './routes';
import { NavigationHistoryService } from './core/services';
import { Title } from '@angular/platform-browser';
import { Angulartics2Piwik } from 'angulartics2/piwik';
@Component({
selector: 'app-root',
......@@ -16,7 +17,10 @@ export class AppComponent implements OnInit {
private _navigationHistoryService: NavigationHistoryService,
private _activatedRoute: ActivatedRoute,
private _titleService: Title,
) { }
private _angulartics2Piwik: Angulartics2Piwik,
) {
this._angulartics2Piwik.startTracking();
}
ngOnInit() {
this._router.events.pipe(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment