Measuring user timings provides a native way to measure a period of time in Google Analytics. This can be useful to measure resource load times, for example.

A timing in Google Analytics consists of the following fields:
  • String Category - the category of the timed event
  • Long Interval - the timing measurement in milliseconds
  • String Name (optional) - the name of the timed event
  • String Label (optional) - the label of the timed event

User timing data can be found primarily in the User Timings report.


To send a user timing to Google Analytics, call SendTiming() and provide the timing interval as well as a category. In the following example, we assume that onLoad() is called after some resource finishes loading, in this case a list of high scores for a game:
public void onLoad(TimeSpan loadTime) {
  // Where myTracker is an instance of Tracker.
  myTracker.SendTiming(loadTime, "resources", "high_scores", null);
  ... // The rest of your onLoad code.

Last edited Apr 13, 2013 at 10:22 PM by timgreenfield, version 1