Home  >  Article  >  Backend Development  >  用Typecho搭建的博客添加google analytics的统计代码位置是?

用Typecho搭建的博客添加google analytics的统计代码位置是?

WBOY
WBOYOriginal
2016-06-06 20:23:071866browse

我在header.php中加上google analytics的统计代码之后,GA一直通知统计代码丢失,虽然说丢失,但还看到有一点统计数据,不过统计数据的量不对,请问大家都将统计代码加在哪个页面中?

回复内容:

我在header.php中加上google analytics的统计代码之后,GA一直通知统计代码丢失,虽然说丢失,但还看到有一点统计数据,不过统计数据的量不对,请问大家都将统计代码加在哪个页面中?

footer.php,body标签前面,google analytics有说明啊,代码丢失可能是墙的原因吧,我的也是

直接打开页面的HTML源代码查看器,就可以知道现在GA的位置是否依照GA的官方位置来放置。放什么模板是其于你对Typecho的了解,这个系统我还没有用过。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn