Site Speed User Timing Demo

This page demonstrates 2 ways to use the Google Analytics _trackTiming feature to track the time it takes to load resources asynchronously:

Checkout the JavaScript source code to understand how each demo is implemented.
Use your browser's developer tools to see the JavaScript send __utm.gif requests to Google Analytics.
For more details on tracking time in Google Analytics, read the Site Speed User Timing developer guide.


Demo 1 - Dom Script Element

Click the button to asynchronously load the jQuery library from both Google and Microsoft content delivery networks.


Demo 2 - Ajax Request via XMLHttpRequest

Click the button to load a .txt file with Chuck Norris quotes.