I am trying to use manual session management using the Google Analytisics Dimension API, and I cannot get it to work. After confusion as the main test, I created a simple analytic site in analytics and manually made the following queries for it:
?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
Then, looking at the analytics and waiting, the sessions in question are still just a timeout after the usual 30 minutes, rather than ending with a sc = end request. For example, on the "real-time β events" page, about 5 minutes after completing the requests, I still have both "users" on the "Active Users" tab, and the page still claims to have "Right Now: 2 Active Users on the Site" .
source
share