mirror of
				https://github.com/imfing/hextra.git
				synced 2025-10-30 22:50:13 -04:00 
			
		
		
		
	fix: Matomo analytics
This commit is contained in:
		| @@ -3,6 +3,16 @@ Matomo Analytics. | ||||
| https://developer.matomo.org/guides/tracking-javascript-guide | ||||
| */ -}} | ||||
|  | ||||
| {{- with .Site.Params.analytics.matomo -}} | ||||
|  | ||||
| {{- if not .serverURL }} | ||||
|   {{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}} | ||||
| {{- end -}} | ||||
|  | ||||
| {{- if not .websiteID }} | ||||
|   {{- errorf "Missing Matomo 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}} | ||||
| {{- end -}} | ||||
|  | ||||
| <!-- Matomo --> | ||||
| <script type="text/javascript"> | ||||
|   var _paq = window._paq = window._paq || []; | ||||
| @@ -17,3 +27,5 @@ https://developer.matomo.org/guides/tracking-javascript-guide | ||||
|   })(); | ||||
| </script> | ||||
| <!-- End Matomo Code --> | ||||
|  | ||||
| {{- end -}} | ||||
|   | ||||
| @@ -6,11 +6,11 @@ https://umami.is/docs/tracker-configuration | ||||
| {{- with .Site.Params.analytics.umami -}} | ||||
|  | ||||
| {{- if not .serverURL }} | ||||
|   {{- errorf "Missing Umami 'serverURL' configuration. See TODO" -}} | ||||
|   {{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}} | ||||
| {{- end -}} | ||||
|  | ||||
| {{- if not .websiteID }} | ||||
|   {{- errorf "Missing Umami 'websiteID' configuration. See TODO" -}} | ||||
|   {{- errorf "Missing Umami 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}} | ||||
| {{- end -}} | ||||
|  | ||||
| {{- $attributes := newScratch -}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Fernandez Ludovic
					Fernandez Ludovic