Update Analytics to use Angularitics
This also supports the new Matomo setup.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user