Update Analytics to use Angularitics

This also supports the new Matomo setup.
This commit is contained in:
Cameron
2019-09-21 14:40:14 +00:00
parent 6d92dc4565
commit 1aa109ae52
11 changed files with 29 additions and 94 deletions

View File

@@ -1,5 +1,4 @@
import {AfterContentInit, Component, OnInit} from '@angular/core';
import {AnalyticsService} from '../analytics.service';
@Component({
selector: 'app-contact',
@@ -8,11 +7,10 @@ import {AnalyticsService} from '../analytics.service';
})
export class ContactComponent implements AfterContentInit {
constructor(private analytics: AnalyticsService) {
constructor() {
}
ngAfterContentInit(): void {
this.analytics.trackPageHit('Contact');
}
linkedInClicked() {