# 如何在社区的header中添加分析脚本？

**URL:** <https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393>\
**Category:** Data & reporting\
**Tags:** analytics\
**Created:** [2021 年5 月 14 日 09:22 UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393 "2021-05-14T09:22:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![andrew](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew/32/227623_2.png) [@andrew](https://meta.discourse.org/u/andrew)\
发布日期： [2021 年5 月 14 日 09:22 UTC](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393/1 "2021-05-14T09:22:17Z")

</div>

你好，

我尝试在头部添加分析脚本。

论坛安装时未使用任何额外主题。在“主题”选项卡中显示“无项目”，在“组件”选项卡中显示“默认”。

我尝试在“默认”组件中编辑“CSS/HTML”，并将脚本添加到“head”部分，但该代码并未反映在论坛上……

有什么建议吗？

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-add-a-analytics-script-into-the-header-of-my-community/190393)._
