1

I'm currently working on a website which is structured as a single page app (loads everything in once). The site relies on the pushState api in order to function and of course for analytics purposes we correctly track the user on these events so our views are accurate.

What I am wondering though, as it's currently my main focus, is whether google analytics is measuring page load when these page tracking events occur? And if so how exactly does it calculate the load time in this circumstance. (I know on initial page load it will use the navigation API)

Thanks in advance!

4

1 回答 1

0

来自:https ://support.google.com/analytics/answer/1205784?hl=en

站点速度跟踪仅适用于来自支持 HTML5Navigation Timing界面或安装了 Google 工具栏的浏览器的访问。通常包括:Chrome、Firefox 7 及更高版本、Internet Explorer 9 及更高版本、Android 4.0 浏览器及更高版本,以及安装了 Google 工具栏的早期版本的 Internet Explorer。

因此,无论您如何加载标签,它都会准确测量时间,因为它使用浏览器 API window.performance.timing

有关Navigation TimingAPI 的更多信息:

于 2013-11-08T12:17:46.343 回答