开发者

tidy google analytics

I'm a bit of a nut about clean HTML, is there a tidier way to implement Google analytics? I feel like i开发者_如何学Gof I move it to a .js file it won't work.


You can move it to an external js file and it will work just fine. In fact, maybe you want it to load after your dom completes loading. It's up to you. If you want to make sure, install wireshark and watch the connection get made to analytics.google.com .

wireshark: http://www.wireshark.org/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜