Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

ga.js - locally hosted vs. externally referenced?

which way is faster?



4:02 pm on Feb 28, 2011 (gmt 0)

Does anyone have experience hosting the Analytics script locally? Is it faster than calling out to Google?

For me, it seems to be slightly faster to call out externally as opposed to hosting ga.js locally.

In theory, one would think it could be faster hosting locally by reducing the external call, but perhaps my setup is incorrect. As of now, the ga.js and UA declaration are combined with the rest of my JS files and outputted just before the closing </head> tag.

Analytics is still tracking everything in my reports. I also have it setup to compare ga.js on Google's servers, if it's new, I have a script that downloads it and replaces my local copy.

Any thoughts?


4:10 pm on Feb 28, 2011 (gmt 0)

I read this, which makes me think I should simply call out to ga.js externally [google.com...]

Featured Threads

Hot Threads This Week

Hot Threads This Month