File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
layouts/_partials/components/analytics Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 33https://developer.matomo.org/guides/tracking-javascript-guide
44*/ -}}
55
6+ {{- with .Site.Params.analytics.matomo -}}
7+
8+ {{- if not .serverURL }}
9+ {{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}}
10+ {{- end -}}
11+
12+ {{- if not .websiteID }}
13+ {{- errorf "Missing Matomo 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}}
14+ {{- end -}}
15+
616<!-- Matomo -->
717< script type ="text/javascript ">
818 var _paq = window . _paq = window . _paq || [ ] ;
1727 } ) ( ) ;
1828</ script >
1929<!-- End Matomo Code -->
30+
31+ {{- end -}}
Original file line number Diff line number Diff line change 66{{- with .Site.Params.analytics.umami -}}
77
88{{- if not .serverURL }}
9- {{- errorf "Missing Umami 'serverURL' configuration. See TODO " -}}
9+ {{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics " -}}
1010{{- end -}}
1111
1212{{- if not .websiteID }}
13- {{- errorf "Missing Umami 'websiteID' configuration. See TODO " -}}
13+ {{- errorf "Missing Umami 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics " -}}
1414{{- end -}}
1515
1616{{- $attributes := newScratch -}}
You can’t perform that action at this time.
0 commit comments