How to stop a session in Google mobile analytics v2 for android without EasyTracker

后端 未结 3 1671
刺人心
刺人心 2021-02-14 01:52

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 f

3条回答
  •  面向向阳花
    2021-02-14 02:38

    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"];
    

    This information is available from the link: https://developers.google.com/analytics/devguides/collection/ios/v3/sessions

提交回复
热议问题