The invention provides a method, device and system for calculating session length. By acquiring the target session, the behavior object of the last web page access behavior in the target session is determined, and the time of the target session is determined according to the last behavior object. It can be seen that this scheme takes into account the effect of the object of the last web page visit behavior on the length of the target session. If the object of the last web page visit behavior is the object of the behavior that generates the page view data, then the page view time of the last web page visit behavior is determined, and the page view time is calculated into the session time; when the object of the last web page visit behavior is not generated. The behavior object of page view data determines that the length of the target session is the start time of the last page visit behavior the start time of the initial page visit behavior. It does not need to obtain the page view time of the last page visit behavior. It solves the problem of inaccurate calculation of the session length caused by the single session length calculation method in the existing technology.
【技术实现步骤摘要】
会话时长计算方法、装置及系统
本专利技术涉及数据处理
,尤其涉及一种会话时长计算方法、装置及系统。
技术介绍
随着科技的不断发展,用户能够通过访问网页来获取更多的信息,如浏览新闻、观看视频、在线游戏等等。网页后台服务器会根据用户访问网页的情况,实现对网页的设计调整,以便提高用户对该网页的访问频率。目前,会话是网页分析的基础单位,其记录了用户访问网页的一组访问行为。当用户进行网页访问时,后台服务器会建立一个会话,并为该会话内包含的所有访问行为创建不同类型的行为对象,如PageViewObject(网页浏览)、MouseScrollObject(鼠标滚动)、MouseClickObject(鼠标点击)、电子订单(EcomObject)以及SiteSearchObject(站内搜索)等。而,会话时长是指用户访问网页所持续的时间,是网页分析的重要指标。专利技术人发现,目前会话时长的计算是采用末次网页开启的时间减去初始网页开启的时间,假如,用户在10:00分第一次打开网页,在10:10分点击第二个网页,在10:30分点击了第三个网页,用户在浏览后,关闭网页,则此时,后台服务器记录的会话时长为30分钟(10:00-10:30)。然而,专利技术人发现,该方法计算得到的会话时长并不是实际的网页访问时间,如,并未包括最后一个网页的浏览时间。进而基于该方法获取的会话时间,会导致网页分析不准确,因此,如何提供一种会话时长计算方法、装置及系统,以提高网页分析的准确性,成为本领域技术人员亟待解决的一大技术问题。
技术实现思路
鉴于上述问题,提出了本专利技术以便提供一种克服上述问题 ...
【技术保护点】
1.一种会话时长计算方法,其特征在于,包括:获取目标会话,所述目标会话包括至少一个网页访问行为,且,所述网页访问行为按照时间顺序进行排序;确定所述末次网页访问行为的行为对象,所述末次网页访问行为是所述目标会话中时间排序最后的所述网页访问行为;根据所述末次网页访问行为的行为对象,确定所述目标会话的时长。
【技术特征摘要】
1.一种会话时长计算方法,其特征在于,包括:获取目标会话,所述目标会话包括至少一个网页访问行为,且,所述网页访问行为按照时间顺序进行排序;确定所述末次网页访问行为的行为对象,所述末次网页访问行为是所述目标会话中时间排序最后的所述网页访问行为;根据所述末次网页访问行为的行为对象,确定所述目标会话的时长。2.根据权利要求1所述的会话时长计算方法,其特征在于,所述获取目标会话,包括:获取预设时间内的用户访问数据;按照预设会话切分规则,将所述用户访问数据切分成多个会话;依次确定所述多个会话为所述目标会话。3.根据权利要求1或2所述的方法,其特征在于,所述根据所述末次网页访问行为的行为对象,确定所述目标会话的时长包括:若所述末次网页访问行为的行为对象为产生页面浏览量数据的行为对象,则获取所述末次网页访问行为的页面浏览时间;根据所述末次网页访问行为的页面浏览时间、所述目标会话中所述末次网页访问行为的开始时间以及所述目标会话中初始网页访问行为的开始时间确定所述目标会话的时长。4.根据权利要求3所述的方法,其特征在于,所述获取所述末次网页访问行为的页面浏览时间包括:判断所述末次网页访问行为是否包括页面心跳包数据;若包括,确定所述页面心跳包数据记录的时间与所述末次网页访问行为的开始时间的差值;若所述差值为正,将所述差值作为所述末次网页访问行为的页面浏览时间。5.根据权利要求4所述的方法,其特征在于,所述获取所述末次网页访问行为的页面浏览时间还包括:若所述差值为负,根据所述目标会话中所述末次网页访问行为的开始时间、所述目标会话中初始网页访问行为的开始时间以及所述目标会话中网页访问行为的数量,确定所述末次网页访问行为的页面浏览时间。6.根据权利要求4所述的方法,其特征在于,所述获取所述末次网页访问行为的页面浏览时间还包括:若所述末次网页访问行为不包括所述页面心跳包数据时,进一步判断所述目标会话是否包括下一会话;若包括,获取所述目标...
【专利技术属性】
技术研发人员:陈熹荣,
申请(专利权)人:北京国双科技有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。