views:

38

answers:

1

I'm a bit of a nut about clean HTML, is there a tidier way to implement Google analytics? I feel like if I move it to a .js file it won't work.

+4  A: 

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/

greg