From 0a4c2f55fbdb3427be8af53fecbfbb1d85cc727e Mon Sep 17 00:00:00 2001 From: Cameron Cordes Date: Fri, 22 Feb 2019 21:16:43 -0500 Subject: [PATCH] Track resume page hit --- src/app/resume/resume.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/resume/resume.component.ts b/src/app/resume/resume.component.ts index 7736752..8375562 100644 --- a/src/app/resume/resume.component.ts +++ b/src/app/resume/resume.component.ts @@ -1,5 +1,6 @@ import {AfterContentInit, Component, OnInit} from '@angular/core'; import {AnalyticsService} from '../analytics.service'; +import {MatomoTracker} from 'ngx-matomo'; @Component({ selector: 'app-resume', @@ -9,12 +10,13 @@ import {AnalyticsService} from '../analytics.service'; export class ResumeComponent implements AfterContentInit { private analytics: AnalyticsService; - constructor(analytics: AnalyticsService) { + constructor(analytics: AnalyticsService, private matomoTracker: MatomoTracker) { this.analytics = analytics; } ngAfterContentInit(): void { this.analytics.trackPageHit('Resume'); + this.matomoTracker.trackPageView('Resume'); } }