matomo tx events

This commit is contained in:
Mononaut
2024-02-14 21:47:42 +00:00
parent 035068a72e
commit c684834c42
2 changed files with 12 additions and 1 deletions

View File

@@ -139,6 +139,12 @@ export class EnterpriseService {
this.getMatomo()?.trackGoal(id);
}
page() {
const matomo = this.getMatomo();
matomo.setCustomUrl(this.getCustomUrl());
matomo.trackPageView();
}
private getCustomUrl(): string {
let url = window.location.origin + '/';
let route = this.activatedRoute;