Re:Reddit reveals their traffic numbers, compares to Alexa/C...
by axod on Friday July 16, 2010 @08:41AM
(#1520927)
async tracking helps if the size of the download is large. In that case, a small stub of js is loaded, execution continues, and the large payload is downloaded async.
But the tracking code is small. It's not going to make much difference at all IMHO (And anecdotally in my experience).
Async vs sync, you're still going to have a DNS lookup, and an initial GET unless it's cached. Both can block your site from loading...
Re:Reddit reveals their traffic numbers, compares to Alexa/C...
by mrkurt on Friday July 16, 2010 @06:08PM
(#1522770)
Google Analytics doesn't load any stubs for async tracking, it inlines an array of "events to send" and then loads the entire GA script asynchronously. Once it's done, it runs through the list of things to track.
I know this because it happened to us. We contacted them about it but they have no solution,they don't seem to think it's a problem since "most of the time" their servers are up and quite fast. Marketing requires the tracking, so our solution is to host their javascript on our server and run a cron nightly to redownload the code from their servers in the hopes that we'll never get so far behind that the tracking stops working. So far, so good.
Google, on the other hand, offers an asyncronous, non-blocking solution. Much better.