Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 支持关闭 Google Analytics https://github.com/siyuan-note/siyuan/issues/6403

Liang Dinga198e5059497
diff --git a/kernel/api/system.go b/kernel/api/system.go
index b0fff8ef18..1c9c59ce93 100644
--- a/kernel/api/system.go
+++ b/kernel/api/system.go
@@ -312,7 +312,7 @@ func setGoogleAnalytics(c *gin.Context) {
}
googleAnalytics := arg["googleAnalytics"].(bool)
- model.Conf.System.DisableGoogleAnalytics = googleAnalytics
+ model.Conf.System.DisableGoogleAnalytics = !googleAnalytics
model.Conf.Save()
}