简体   繁体   English

Google Analytics(分析)如何通过iOS浏览器切换应用程序来跟踪页面时间?

[英]How does Google Analytics track page time with an iOS Browser switching Apps?

This is a conundrum. 这是一个难题。

I know that Google Analytics determines page time by the following: 我知道Google Analytics(分析)通过以下方式确定页面时间:

User Visits Page 1

User Visits Page 2: 12 Seconds later 

So the user spent 12 seconds on page 1. 因此,用户在第1页上花费了12秒。

But consider the following: 但是请考虑以下几点:

User is on ipad

User visits Page 1

User switches to another App (Angry Birds)

User plays angry birds for 20 minutes

User switches back to Browser

User Visits Page 2: 21 Minutes later

Would Google Analytics state that user was on page 1 for 21 minutes? Google Analytics(分析)是否会指出该用户在第1页上停留了21分钟? Or is there something in GA or iOS that prevents that? 还是在GA或iOS中有什么可以阻止这种情况?

The maximum time is 30 minutes. 最长时间为30分钟。 After that time, the GA cookie expires. 在那之后,GA cookie过期。
So in your case, after 21 minutes you would still be in the same session. 因此,根据您的情况,在21分钟之后,您仍将处于同一会话中。

See: http://code.google.com/intl/de-DE/apis/analytics/docs/concepts/gaConceptsCookies.html 请参阅: http : //code.google.com/intl/de-DE/apis/analytics/docs/concepts/gaConceptsCookies.html

[EDIT - after comment] [编辑-评论后]

Safari will not reload the current page, as long as the Safari App is still open. 只要Safari应用仍处于打开状态,Safari就不会重新加载当前页面。 So in this case, the session will simply continue as if you never left Safari. 因此,在这种情况下,会话将继续进行,就像您从未离开过Safari一样。

If for memory reasons, iOS shuts down the Safari app, it will reload the last page upon start which will create a new page view on the page in GA and the page time count will start again. 如果出于内存原因,iOS关闭了Safari应用程序,它将在启动时重新加载最后一个页面,这将在GA中的页面上创建一个新的页面视图,并且页面时间计数将再次开始。

So, in essence, you can't really say... 因此,从本质上讲,您不能说...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM