if matomo is undefined, don't try to use it
This commit is contained in:
@@ -141,8 +141,10 @@ export class EnterpriseService {
|
|||||||
|
|
||||||
page() {
|
page() {
|
||||||
const matomo = this.getMatomo();
|
const matomo = this.getMatomo();
|
||||||
matomo.setCustomUrl(this.getCustomUrl());
|
if (matomo) {
|
||||||
matomo.trackPageView();
|
matomo.setCustomUrl(this.getCustomUrl());
|
||||||
|
matomo.trackPageView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getCustomUrl(): string {
|
private getCustomUrl(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user