matomo tx events

This commit is contained in:
Mononaut committed 2024-02-21 23:15:31 +00:00
1 parent 035068a72e
commit c684834c42
2 files changed
+12 -1

No files matched your search

@@ -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;