How the asynchronous api Google Analytics is able to track click links

If I have html, like on my own site, then how can it track the event? Is it possible for the browser to start downloading http://google.com in the same window before the tracking request is executed as asynchronous?

<a href="http://google.com" onclick="_gaq.push(['_trackEvent', 'category', 'event']);">click</a>

In the case of using the synchronous API, the browser explicitly waits until the script in onclick is run, but I can not wrap it around this.

+5
source share
1 answer

google-analytics.com/ga.js - script _gaq . push, .

, alert(_gaq.push) ga.js.

, , , ga.js script .

+1

All Articles