From 91d24e626e78422e516a45f72f191e0379826871 Mon Sep 17 00:00:00 2001
From: Weaxs <459312872@qq.com>
Date: Fri, 26 Jul 2024 10:33:50 +0800
Subject: [PATCH] seline && umami enableTrackEvent
---
config/_default/params.toml | 5 +++--
exampleSite/config/_default/params.toml | 5 +++--
layouts/partials/analytics/seline.html | 2 +-
layouts/partials/analytics/umami.html | 4 +++-
4 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/config/_default/params.toml b/config/_default/params.toml
index 9646ecef..25ba3941 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -135,10 +135,11 @@ disableTextInHeader = false
# websiteid = "ABC12345"
# domain = "llama.yoursite.com"
# dataDomains = "yoursite.com,yoursite2.com"
+ # enableTrackEvent = false
[selineAnalytics]
-# token = "XXXXXX"
-# enableTrace = false
+ # token = "XXXXXX"
+ # enableTrackEvent = false
[buymeacoffee]
# identifier = ""
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index f7111019..6912695a 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -134,10 +134,11 @@ smartTOCHideUnfocusedChildren = false
# websiteid = "ABC12345"
# domain = "llama.yoursite.com"
# dataDomains = "yoursite.com,yoursite2.com"
+ # enableTrackEvent = false
[selineAnalytics]
-# token = "XXXXXX"
-# enableTrace = false
+ # token = "XXXXXX"
+ # enableTrackEvent = false
[buymeacoffee]
identifier = "nunocoracao"
diff --git a/layouts/partials/analytics/seline.html b/layouts/partials/analytics/seline.html
index 51aeb1bd..adb2f64d 100644
--- a/layouts/partials/analytics/seline.html
+++ b/layouts/partials/analytics/seline.html
@@ -1,6 +1,6 @@
-{{ if .Site.Params.selineAnalytics.enableTrace | default false }}
+{{ if .Site.Params.selineAnalytics.enableTrackEvent | default false }}
{{ end }}
+{{ if .Site.Params.umamiAnalytics.enableTrackEvent | default false }}
\ No newline at end of file
+
+{{ end }}
\ No newline at end of file