performancegoogle-analyticsnavigation-timing-api

How do the metrics of Google Analytics Site Speed map to the W3C Navigation Timing API?


The explanations of the site speed metrics provided on Dimensions & Metrics Reference are unclear (at least to me). They represent events in the Navigation Timing API but I cannot figure out which events are the start and end points of each metric.


Solution

  • GA metric names (left) to Navigation Timing labels (right):

            pageLoadTime = loadEventStart - navigationStart
        domainLookupTime = domainLookupEnd - domainLookupStart
    serverConnectionTime = connectEnd - connectStart
      serverResponseTime = responseStart - requestStart
        pageDownloadTime = responseEnd - responseStart
         redirectionTime = fetchStart - navigationStart
      domInteractiveTime = domInteractive - navigationStart
    domContentLoadedTime = domContentLoadedEventStart - navigationStart