mirror of https://github.com/jpanther/congo.git
add plausible analytics
parent
84f0861e8f
commit
d4d6698168
|
@ -70,6 +70,12 @@ fingerprintAlgorithm = "sha256"
|
||||||
# site = "ABC12345"
|
# site = "ABC12345"
|
||||||
# domain = "llama.yoursite.com"
|
# domain = "llama.yoursite.com"
|
||||||
|
|
||||||
|
[plausible]
|
||||||
|
enable = false
|
||||||
|
domain = "llama.yoursite.com"
|
||||||
|
event = ""
|
||||||
|
script = ""
|
||||||
|
|
||||||
[verification]
|
[verification]
|
||||||
# google = ""
|
# google = ""
|
||||||
# bing = ""
|
# bing = ""
|
||||||
|
|
|
@ -6,5 +6,14 @@
|
||||||
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if site.Params.plausible.enable }}
|
||||||
|
{{ with site.Params.plausible.domain }}
|
||||||
|
<script
|
||||||
|
defer
|
||||||
|
data-domain="{{ . }}"
|
||||||
|
data-api="{{ default "https://plausible.io/api/event" site.Params.plausible.event }}"
|
||||||
|
src="{{ default "https://plausible.io/js/script.js" site.Params.plausible.script }}"></script>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue