Google Analytics GIF request not sent

Are you testing your site on localhost or an intranet? If so, you may need to add

_gaq.push(['_setDomainName', 'none']);

before _trackPageview

See Google Analytics on Intranets and Development Servers for more info…

If you’re using Google Analytics on a site with a URL like
http://intranet/ or something like http://mydevserver:12345 it won’t
work.

Specifically, the Google Analytics JS code will not send the tracking
hit (__utm.gif) to the GA servers.

I don’t really know the specifics, but I’m guessing that the domain
hashing code looks for at least one period in the hostname and won’t
work if it doesn’t find one.

Leave a Comment