我读过的GoogleAnalytics V2网站的文档(我基本上是读https://developers.google.com/analytics/devguides/)但无法找到一个足够精确回答我的问题,这是丢失或混合与第1版文档。
I've read the documentation on the GoogleAnalytics v2 website (I've basically read all the pages from https://developers.google.com/analytics/devguides/) but was not able to find an accurate enough to answer my question. It is either missing or mixed with the version 1 documentation.
我知道,随着EasyTracker,你可以设置一个timeout_session参数。但我不想使用EasyTracker,我想在我的code某一点明确停止会话。 (未设置超时)
I know that with EasyTracker, you can set a timeout_session parameter. But I dont want to use EasyTracker and I want to explicitly stop a session at some point in my code. (not setting a timeout)
我开始当我打开我的应用程序会话:
I start a session when I open my application with :
mTracker.setStartSession(true);
和在想,如果调用
mTracker.setStartSession(false);
明确地停止。
explicitely stops it.
任何帮助或指向一个更好的教程/文件将大大AP preciated。
Any help or point to a better tutorial/documentation would be greatly appreciated.
在GA V3,手动启动或结束会话,使用跟踪器的会话控制参数如下:
In the GA v3, to manually start or end a session, use the tracker's session control parameter as follows:
开始一个新的会话。从这个跟踪器的下一个打击将是第一个在一个新的会话。
Start a new session. The next hit from this tracker will be the first in a new session.
[tracker set:kGAISessionControl value:@"start"];
结束会话。从这个跟踪器的下一个打击将是最后在当前会话中。
End a session. The next hit from this tracker will be the last in the current session.
[tracker set:kGAISessionControl value:@"end"];
此信息可从链接: https://developers.google.com/analytics/devguides/collection/ios / V3 /会话