Google analytics does not work in IE
I found there was no IE visitor in google analytics report of my site.
I wrote a simple test page and confirmed that IE did not send '__utm.gif' request to google server. But it worked fine in other browsers, for example FF and Chrome. The test page is: http://k.ai/haiseepage.html
I doubt if it is because the domain name 'k.ai'. I test almost the same page in other .com site. The .com site is ok.
Anyone can explain it?
MSIE doesn't set cookies on very short domain names (2 or less chars) http://support.microsoft.com/kb/310676 .
This is why Google Analytics doesn't work on your domain
You should try using this instead
_gaq.push(['_setDomainName', 'www.k.ai']);
But beware that doing so will reset the cookies of all your previous visitors on other browsers (they all will be new visitors and lose their previous source of visit).
No DOCTYPE is probably tripping up IE. Instead of <html>
put:
<!DOCTYPE html>
You may also want to add to the <head>
:
<meta charset="utf-8">
链接地址: http://www.djcxy.com/p/31180.html
上一篇: 如何从Google Analytics中删除媒体资源
下一篇: Google分析在IE中不起作用