mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 10:15:22 +00:00
feat: support privacy analytics (fathom, plausible, pirsch)
This commit is contained in:
1 parent
97d99341d5
commit
804c70f7ef
5 files changed
+41
-13
No files matched your search
@@ -0,0 +1,5 @@
|
||||
{{ $fathom := site.Params.marketing.analytics.fathom | default "" }}
|
||||
|
||||
{{ if hugo.IsProduction | and $fathom }}
|
||||
<script src="https://cdn.usefathom.com/script.js" data-site="{{$fathom}}" defer></script>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,25 @@
|
||||
{{/* HUGO BLOX: MARKETING MODULE */}}
|
||||
|
||||
{{/* VERIFICATIONS */}}
|
||||
|
||||
{{ with site.Params.marketing.verification.google }}
|
||||
<meta name="google-site-verification" content="{{ . }}" />
|
||||
{{- end -}}
|
||||
|
||||
{{ with site.Params.marketing.verification.baidu }}
|
||||
<meta name="baidu-site-verification" content="{{ . }}" />
|
||||
{{- end -}}
|
||||
|
||||
{{ with site.Params.marketing.verification.bing }}
|
||||
<meta name="msvalidate.01" content="{{ . }}" />
|
||||
{{- end -}}
|
||||
|
||||
{{/* ANALYTICS */}}
|
||||
|
||||
{{ partial "marketing/google_analytics" . }}
|
||||
{{ partial "marketing/google_tag_manager" . }}
|
||||
{{ partial "marketing/microsoft_clarity" . }}
|
||||
{{ partial "marketing/baidu_tongji" . }}
|
||||
{{ partial "marketing/plausible" . }}
|
||||
{{ partial "marketing/fathom" . }}
|
||||
{{ partial "marketing/pirsch" . }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $pirsch := site.Params.marketing.analytics.pirsch | default "" }}
|
||||
|
||||
{{ if hugo.IsProduction | and $pirsch }}
|
||||
<script defer src="https://api.pirsch.io/pirsch.js" id="pirschjs" data-code="{{$pirsch}}"></script>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ $plausible := site.Params.marketing.analytics.plausible | default "" }}
|
||||
|
||||
{{ if hugo.IsProduction | and $plausible }}
|
||||
<script defer data-domain="{{$plausible}}" src="https://plausible.io/js/script.js"></script>
|
||||
{{ end }}
|
||||
@@ -134,19 +134,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{/* Marketing */}}
|
||||
{{ with site.Params.marketing.verification.google }}
|
||||
<meta name="google-site-verification" content="{{ . }}" />
|
||||
{{- end -}}
|
||||
{{ with site.Params.marketing.verification.baidu }}
|
||||
<meta name="baidu-site-verification" content="{{ . }}" />
|
||||
{{- end -}}
|
||||
{{ with site.Params.marketing.verification.bing }}
|
||||
<meta name="msvalidate.01" content="{{ . }}" />
|
||||
{{- end -}}
|
||||
{{ partial "marketing/google_analytics" . }}
|
||||
{{ partial "marketing/google_tag_manager" . }}
|
||||
{{ partial "marketing/microsoft_clarity" . }}
|
||||
{{ partial "marketing/baidu_tongji" . }}
|
||||
{{ partial "marketing/index" . }}
|
||||
|
||||
{{/* RSS Feed */}}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
|
||||
Reference in new issue
Block a user