Google无法在Github页面上找到Google Analytics代码段 [英] Google can't find Analytics snippet on Github Pages
问题描述
一段时间以来,我一直在让Google Analytics在我生成的Github页面上正常工作时遇到麻烦。我使用了Google提供的默认片段,但我认为正在查找片段的抓取工具在victorbjelkholm.github.com网址中显示,而不是victorbjelkholm.github.com/2012/2012-I-Bilder/。不过,我在Google Analytics个人资料中的默认网址是 http://victorbjelkholm.github.com/2012-I-Bilder/ 所以它应该没有问题。
任何人都有类似的经验,将Google Analytics添加到Github Pages上的网站吗?
任何人都可以解决这个问题,所以我可以从我的网站获得一些统计信息吗?
网址是http://victorbjelkholm.github.com/2012-I-Bilder/
我进入了活动配置文件的配置文件设置
,并更改了默认页面
到 index.html
。现在我的跟踪代码可以正确找到。
For some time now, I have had troubles getting Google Analytics to work properly on my generated Github Pages. I've used the default snippet provided by Google but I think that the crawler that is looking for the snippet looks in the url victorbjelkholm.github.com instead of victorbjelkholm.github.com/2012-I-Bilder/. However, my default url in the Google Analytics profile is http://victorbjelkholm.github.com/2012-I-Bilder/ so it should be no problem.
Do anyone had a similar experience of adding Google Analytics to sites on Github Pages?
Do anyone have a suggestion on what could solve this so I can get some stats from my site?
The url is http://victorbjelkholm.github.com/2012-I-Bilder/
I went into the Profile Settings
of the active profile and changed Default page
to index.html
. Now my tracking code can be found correctly.
这篇关于Google无法在Github页面上找到Google Analytics代码段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!