mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-03-30 10:59:15 +02:00
Merge pull request #464 from ngutman/feature/plausible-analytics
Add support for Plausible Analytics
This commit is contained in:
commit
e207daa7eb
9 changed files with 21 additions and 0 deletions
|
@ -65,6 +65,7 @@ I hope you will LoveIt ❤️!
|
|||
* Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
||||
* **[Google Analytics](https://analytics.google.com/analytics)** supported
|
||||
* **[Fathom Analytics](https://usefathom.com/)** supported
|
||||
* **[Plausible Analytics](https://plausible.io/)** supported
|
||||
* Search engine **verification** supported (Google, Bind, Yandex and Baidu)
|
||||
* **CDN** for third-party libraries supported
|
||||
* Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
* 使用基于 JSON-LD 格式 的 **SEO SCHEMA** 文件进行 SEO 优化
|
||||
* 支持 **[Google Analytics](https://analytics.google.com/analytics)**
|
||||
* 支持 **[Fathom Analytics](https://usefathom.com/)**
|
||||
* 支持 **[Plausible Analytics](https://plausible.io/)**
|
||||
* 支持搜索引擎的**网站验证** (Google, Bind, Yandex and Baidu)
|
||||
* 支持所有第三方库的 **CDN**
|
||||
* 基于 [lazysizes](https://github.com/aFarkas/lazysizes) 自动转换图片为**懒加载**
|
||||
|
|
|
@ -541,6 +541,9 @@
|
|||
# server url for your tracker if you're self hosting
|
||||
# 自行托管追踪器时的主机路径
|
||||
server = ""
|
||||
# Plausible Analytics
|
||||
[params.analytics.plausible]
|
||||
dataDomain = ""
|
||||
|
||||
# Cookie consent config
|
||||
# Cookie 许可配置
|
||||
|
|
|
@ -623,6 +623,9 @@ enableEmoji = true
|
|||
# server url for your tracker if you're self hosting
|
||||
# 自行托管追踪器时的主机路径
|
||||
server = ""
|
||||
# Plausible Analytics
|
||||
[params.analytics.plausible]
|
||||
dataDomain = ""
|
||||
|
||||
# Cookie consent config
|
||||
# Cookie 许可配置
|
||||
|
|
|
@ -33,6 +33,7 @@ math:
|
|||
* :(fab fa-searchengin fa-fw): Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
||||
* :(fab fa-google fa-fw): **[Google Analytics](https://analytics.google.com/analytics)** supported
|
||||
* :(far fa-chart-bar fa-fw): **[Fathom Analytics](https://usefathom.com/)** supported
|
||||
* :(far fa-chart-column fa-fw): **[Plausible Analytics](https://plausible.io/)** supported
|
||||
* :(fas fa-sitemap fa-fw): Search engine **verification** supported (Google, Bind, Yandex and Baidu)
|
||||
* :(fas fa-tachometer-alt fa-fw): **CDN** for third-party libraries supported
|
||||
* :(fas fa-cloud-download-alt fa-fw): Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||
|
|
|
@ -33,6 +33,7 @@ math:
|
|||
* :(fab fa-searchengin fa-fw): 使用基于 JSON-LD 格式 的 **SEO SCHEMA** 文件进行 SEO 优化
|
||||
* :(fab fa-google fa-fw): 支持 **[Google Analytics](https://analytics.google.com/analytics)**
|
||||
* :(far fa-chart-bar fa-fw): 支持 **[Fathom Analytics](https://usefathom.com/)**
|
||||
* :(far fa-chart-column fa-fw): 支持 **[Plausible Analytics](https://plausible.io/)**
|
||||
* :(fas fa-sitemap fa-fw): 支持搜索引擎的**网站验证** (Google, Bind, Yandex and Baidu)
|
||||
* :(fas fa-tachometer-alt fa-fw): 支持所有第三方库的 **CDN**
|
||||
* :(fas fa-cloud-download-alt fa-fw): 基于 [lazysizes](https://github.com/aFarkas/lazysizes) 自动转换图片为**懒加载**
|
||||
|
|
|
@ -622,6 +622,9 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
id = ""
|
||||
# server url for your tracker if you're self hosting
|
||||
server = ""
|
||||
# Plausible Analytics
|
||||
[params.analytics.plausible]
|
||||
dataDomain = ""
|
||||
|
||||
# {{< version 0.2.7 >}} Cookie consent config
|
||||
[params.cookieconsent]
|
||||
|
|
|
@ -624,6 +624,9 @@ hugo
|
|||
id = ""
|
||||
# 自行托管追踪器时的主机路径
|
||||
server = ""
|
||||
# Plausible Analytics
|
||||
[params.analytics.plausible]
|
||||
dataDomain = ""
|
||||
|
||||
# {{< version 0.2.7 >}} Cookie 许可配置
|
||||
[params.cookieconsent]
|
||||
|
|
|
@ -19,4 +19,9 @@
|
|||
</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" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Plausible Analytics */ -}}
|
||||
{{- with $analytics.plausible.dataDomain -}}
|
||||
<script async defer data-domain="{{ . }}" src="https://plausible.io/js/plausible.js"></script>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Reference in a new issue