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