✨ feat(analytics): make Umami DNT behavior configurable
This commit is contained in:
@@ -265,6 +265,9 @@ service = "goatcounter"
|
|||||||
id = "zloy"
|
id = "zloy"
|
||||||
#self_hosted_url = "https://zloy.goatcounter.com"
|
#self_hosted_url = "https://zloy.goatcounter.com"
|
||||||
|
|
||||||
|
# Optional: For Umami, enable this option to respect users' Do Not Track (DNT) settings. The default is true.
|
||||||
|
do_not_track = true
|
||||||
|
|
||||||
[extra.isso]
|
[extra.isso]
|
||||||
enabled_for_all_posts = true # Enables Isso on all posts. It can be enabled on individual posts by setting `isso = true` in the [extra] section of a post's front matter.
|
enabled_for_all_posts = true # Enables Isso on all posts. It can be enabled on individual posts by setting `isso = true` in the [extra] section of a post's front matter.
|
||||||
automatic_loading = true # If set to false, a "Load comments" button will be shown.
|
automatic_loading = true # If set to false, a "Load comments" button will be shown.
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
data-website-id="{{ analytics_id }}"
|
data-website-id="{{ analytics_id }}"
|
||||||
src="https://cloud.umami.is/script.js"
|
src="https://cloud.umami.is/script.js"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
data-do-not-track="true">
|
{% if config.extra.analytics.do_not_track %}data-do-not-track="true"{% endif %}>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% elif analytics_service == "plausible" %}
|
{% elif analytics_service == "plausible" %}
|
||||||
|
|||||||
@@ -320,6 +320,9 @@ custom_subset = true
|
|||||||
# Leave this field empty if you're using the service's default hosting.
|
# Leave this field empty if you're using the service's default hosting.
|
||||||
# self_hosted_url = ""
|
# self_hosted_url = ""
|
||||||
|
|
||||||
|
# Optional: For Umami, enable this option to respect users' Do Not Track (DNT) settings. The default is true.
|
||||||
|
do_not_track = true
|
||||||
|
|
||||||
# giscus support for comments. https://giscus.app
|
# giscus support for comments. https://giscus.app
|
||||||
# Setup instructions: https://welpo.github.io/tabi/blog/comments/#setup
|
# Setup instructions: https://welpo.github.io/tabi/blog/comments/#setup
|
||||||
[extra.giscus]
|
[extra.giscus]
|
||||||
|
|||||||
Reference in New Issue
Block a user