# 是否可以在网站的页脚嵌入计数器？

**URL:** <https://meta.discourse.org/t/is-it-possible-to-embed-counters-in-the-footer-of-the-site/372049>\
**Category:** Development\
**Created:** [2025年六月27日 19:34 UTC](https://meta.discourse.org/t/is-it-possible-to-embed-counters-in-the-footer-of-the-site/372049 "2025-06-27T19:34:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DigneZzZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dignezzz/32/506171_2.png) [@DigneZzZ](https://meta.discourse.org/u/DigneZzZ)\
**Post date:** [2025年七月4日 16:50 UTC](https://meta.discourse.org/t/is-it-possible-to-embed-counters-in-the-footer-of-the-site/372049/6 "2025-07-04T16:50:41Z")

</div>

好的。  
我将自己回复。  
我设法创建了一个计数器；它出奇地简单。  
要完成此操作，必须：

1. 开发一个新组件。
2. 将所需的代码插入正文中。  
 ![图片显示了带有语法高亮的代码编辑器界面，打开了一个 HTML 文件，其中添加了 Yandex.Metrica 的代码。 (AI 图像说明)](https://global.discourse-cdn.com/meta/original/4X/d/4/2/d427fbae4beba4094deb4e14b5cb4f1abce90722.png)
3. 将该组件应用于所有主题。

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-embed-counters-in-the-footer-of-the-site/372049)._
