Magento Google Analytics 代码未显示
我是 magento 的新手,我已将我的帐号放入我的系统中 >配置>销售额>谷歌API。我还启用了 Google Analytics。但我仍然无法在我的任何 magento 应用程序上看到 Google Analytics 代码。我仔细检查的是:
- 帐号是否正确(这些帐号与我们正在尝试的域名相同)。
- Google Analytics 已启用(是)。
I am new to magento and I have placed my account number in my system > Configuration > Sales > Google API. I have also enabled Google Analytics. But still I can't see the Google Analytics code on any of my magento application. What I have double checked are:
- Account Number are proper (These are for the same domain name for which we are trying).
- Google Analytics is Enabled (Yes).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
同样在这里。事实证明,这个问题是由我为magento 1.5开发的定制主题引起的,现在应用于1.7。
在 app/design/frontend/mytheme/layout/googleanalytics.xml 我有:
它应该是:
Same here. It turns out that the problem was caused by my customized theme that was developed for magento 1.5 and now is applied to 1.7.
In app/design/frontend/mytheme/layout/googleanalytics.xml i had:
And it should be:
刚刚检查过,谷歌分析代码通常放置在
after_body_start
块中。如果您的主题中未使用该块,或者您只是想遵循更好的实践,请将其更改为
before_body_end
。您可以在主题的布局目录或app/design/frontend/base/default/layout
中找到文件“googleanalytics.xml”。Have just checked and the google analytics code is normally placed in the
after_body_start
block.If that block isn't used in your theme or if you just want to follow better practices change that to
before_body_end
. You can find the file "googleanalytics.xml" in your theme's layout directory or inapp/design/frontend/base/default/layout
.