Google Analytics 测量协议会话控制不起作用

use*_*057 5 google-analytics measurement-protocol

我正在尝试将手动会话控制与 Google Anayitics 测量 API 结合使用,但无法使其正常工作。经过一番折腾,作为一个基本的测试用例,我在分析中建立了一个简单的测试站点,并手动向它发出以下请求:

?v=1&t=event&tid= (myid) &cid= (uid1) &ec=SessionTest&ea=TestStart&sc=start
?v=1&t=event&tid= (myid) &cid= (uid1) &ec=SessionTest&ea=TestEnd&sc=end
?v=1&t=event&tid= (myid) &cid= (uid2) &ec=SessionTest&ea=TestStart&sc=start
?v=1&t=event&tid= (myid) &cid= (uid2) &ec=SessionTest&ea=TestEnd&sc=end
Run Code Online (Sandbox Code Playgroud)

然后查看分析和等待,有问题的会话仍然在正常 30 分钟后超时,而不是以“sc=end”请求结束。例如,在“实时 -> 事件”页面下发出请求约 5 分钟后,我仍然是“活动用户”选项卡下的两个“用户”,并且该页面仍然声称有“现在:2 个活动”网站上的用户”。