analytics - Kontagent API - per session statistics -
we tasked integrate our project kontagent. our requirements include tracking length of user's sessions. user activity, kontagent support specific request type - page request (a.k.a. pgr, per documentation). type of request needed identifying user visits , accumulate them appropriate user id, can used obtaining geolocation info ip address. however, there no analogous method tracking sessions session id.
so, need know how kontagent calculate session length? automatically done depending on user activity frequency, or should send request identify session? can think of 2 options, dislike both of them:
use additional
page request
session id. along standard request acknowledges user activity, might send additional one, time passing session id. if kontagent using algorithms calculate session length based on user activity frequency (which knownpage request
s user id sending), unnecessary, , meaningless in terms of statistics, question answered.use data parameter in default
page request
. kontagent supportdata
parameter of requests. base64 encoded json map object should contain key-value pairs, , can put session id there. problem is, information indata
parameter not participate/influence statistics calculated kontagent - in terms of grouping session id instance , extacting per-session aggregations.
i'd gladly appreciate clues on matter.
the answer question depends little on how granularity want around session length information. such, highly recommend email support@kontagent.com more clarification around particular use case.
with caveat listed, kontagent calculates average session lengths customers don't need pass in or calculate "session" information on side. average session length calculated examining stream of messages given user of application , looking gap in messages greater threshold (for social apps, threshold 30 minutes; mobile apps, threshold 2 minutes) indicate termination of 1 session and, potentially, start of next session.
if need more granular examining average session length (for example, if wanted @ session lengths particular user) query can run in our datamine product, allows query raw message data pass kontagent.
hope helps.
Comments
Post a Comment