add support for Plausible Analytics
This commit is contained in:
@@ -64,6 +64,7 @@ I hope you will LoveIt ❤️!
|
|||||||
* Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
* Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
||||||
* **[Google Analytics](https://analytics.google.com/analytics)** supported
|
* **[Google Analytics](https://analytics.google.com/analytics)** supported
|
||||||
* **[Fathom Analytics](https://usefathom.com/)** supported
|
* **[Fathom Analytics](https://usefathom.com/)** supported
|
||||||
|
* **[Plausible Analytics](https://plausible.io/)** supported
|
||||||
* Search engine **verification** supported (Google, Bind, Yandex and Baidu)
|
* Search engine **verification** supported (Google, Bind, Yandex and Baidu)
|
||||||
* **CDN** for third-party libraries supported
|
* **CDN** for third-party libraries supported
|
||||||
* Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
* Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||||
|
|||||||
@@ -999,6 +999,9 @@ enableEmoji = true
|
|||||||
# server url for your tracker if you're self hosting
|
# server url for your tracker if you're self hosting
|
||||||
# 自行托管追踪器时的主机路径
|
# 自行托管追踪器时的主机路径
|
||||||
server = ""
|
server = ""
|
||||||
|
# Plausible Analytics
|
||||||
|
[params.analytics.plausible]
|
||||||
|
dataDomain = ""
|
||||||
|
|
||||||
# Cookie consent config
|
# Cookie consent config
|
||||||
# Cookie 许可配置
|
# Cookie 许可配置
|
||||||
|
|||||||
@@ -19,4 +19,9 @@
|
|||||||
</script>
|
</script>
|
||||||
{{- dict "Source" ($analytics.fathom.server | default "cdn.usefathom.com" | printf "https://%v/tracker.js") "Async" true "Attr" "id=fathom-script" | partial "plugin/script.html" -}}
|
{{- dict "Source" ($analytics.fathom.server | default "cdn.usefathom.com" | printf "https://%v/tracker.js") "Async" true "Attr" "id=fathom-script" | partial "plugin/script.html" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- /* Plausible Analytics */ -}}
|
||||||
|
{{- with $analytics.plausible.dataDomain -}}
|
||||||
|
<script async defer data-domain="{{ . }}" src="https://plausible.io/js/plausible.js"></script>
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user