简体   繁体   English

Google Analytics for Wordpress无法正常工作

[英]Google Analytics for Wordpress not working

I have the Google Analytics for wordpress plugin produce by http://yoast.com 我有http://yoast.com制作的用于wordpress插件的Google Analytics(分析)

I have it installed on two blogs. 我已经在两个博客上安装了它。 On one it works perfectly... the other it does not work. 一方面,它可以完美工作;另一方面,它却无法工作。

Both designs are custom designed. 两种设计都是定制设计。 As such the only thing i can think is that the designs are coded in different ways such that the plugin inst inserting the code into one of my sites. 因此,我唯一能想到的是,设计是以不同的方式编码的,以便插件将代码插入到我的一个站点中。

Does anyone have any ideas of how to fix this? 有人对如何解决这个问题有任何想法吗?

Thanks 谢谢

Look in the page source of each site to see if GA is loading. 查看每个站点的页面源,以查看是否正在加载GA。 Use Firebug as well, to see what's loading in terms of the javascripts involved with GA. 也可以使用Firebug ,以了解GA所涉及的javascript加载了什么。

Is <?php wp_head(); ?> <?php wp_head(); ?> <?php wp_head(); ?> in header.php of your theme? <?php wp_head(); ?>在您主题的header.php中? That's required for plugins to load. 这是插件加载所必需的。 See Function Reference/wp head « WordPress Codex 参见功能参考/ WP Head«WordPress Codex

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM