Skip to content

Instantly share code, notes, and snippets.

@bradvogel
Created May 4, 2015 03:34
Show Gist options
  • Save bradvogel/53136d598f7cc31c0ca9 to your computer and use it in GitHub Desktop.
Save bradvogel/53136d598f7cc31c0ca9 to your computer and use it in GitHub Desktop.
var timing = window.performance.timing;
keen.addEvent('page load time to first byte', {
ttfb: timing.responseStart - timing.connectEnd
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment