统计指标

统计指标

1、概述

统计指标主要是统计设备数,因此所谓的用户活跃数也是指设备来讲的。

2、主要统计指标

  • 新增用户数

    首次安装打开应用的设备,卸载再安装不是新增。日新增、周新增、月新增,需要全表扫描,周和月可以通过日新增累加求得。

    • 日新增用户

      [stat_new_day.sql]

      -- 日新增用户
      select
        t2.*
      from
      (
        select
          t1.appid 		,
          t1.appversion 	,
          t1.appplatform 	,
          t1.ostype 		,
          t1.devicestyle 	,
          count(deviceid) cnt
        from
        (
          select
            appid					,
            appversion			,
            appplatform			,
            ostype				,
            devicestyle			,
            deviceid				,
            min(createdatms)	ftime
          from
            startuplogs
          group by
            appid , 
      	  appversion ,
            appplatform ,
            ostype ,
            devicestyle,
            deviceid 
            with cube
        )t1
        where
          dateformat(t1.ftime) = '2018/05/25'
          and appid is not null
          and deviceid is not null
        group by
          appid ,  appversion , appplatform , ostype , devicestyle
      )t2
      where
        t2.appid is not null
      order by
        appid ,  appversion , appplatform , ostype , devicestyle
      

    • 月新增用户

      累加每月内每天的新增用户数就是月新增用户数。

      [stat_new_month.sql]

      
      
    • 周新增用户

      昨天所在周的一周内新增用户数。累计一周内每天的新增用户即可得到周新数。

  • 活跃用户数

    启动了应用的用户,需要去重。

    select
      t1.tenantid 		,
      t1.appid 			,
      t1.appversion 	,
      t1.appplatform 	,
      t1.ostype 		,
      t1.devicestyle 	,
      dateformat(daybegin(-3),'yyyy/MM/dd') day ,
      t1.cnt
    from
    (
      select
        tenantid        ,
        appid			,
        appversion		,
        appplatform		,
        ostype		  	,
        devicestyle		,
        count(distinct deviceid) cnt
      from
      	startuplogs
      WHERE
        ym = dateformat(daybegin(-3),'yyyyMM') 
        and day = dateformat(daybegin(-3),'dd')
      group by
        tenantid 	, 
        appid 		,
        appversion 	, 
      	appplatform , 
      	ostype 		, 
      	devicestyle ,
      with cube
    )t1
    where
      t1.tenantid is not null 
      and t1.appid is not null
    order BY
      t1.tenantid	,
      t1.appid		,
      t1.appversion	,
      t1.appplatform,
      t1.ostype		,
      t1.devicestyl
    

  • 月活率

    月活跃用户数占总用户数的比例(月活数 / 总用户数)。

  • 沉默用户

    安装启动一次,以后没有再使用,有时间长度限制(一周)。

    select
      t1.tenantid ,
      t1.appid ,
      t1.appversion ,
      t1.appplatform ,
      t1.ostype ,
      t1.devicestyle ,
      dateformat(daybegin(-1),'yyyy/MM/dd') day ,
      t1.cnt
    from
    (
      select
        tenantid        ,
        appid			,
        appversion		,
        appplatform		,
        ostype			,
        devicestyle		,
        deviceid        ,
        count(createdatms) cnt ,
        min(createdatms)   atime
      from
      	startuplogs
      WHERE
      	concat(ym,day) <= dateformat(daybegin(-1) , 'yyyyMMdd')
      group by
      	tenantid	,
      	appid 		,
      	appversion 	,
      	appplatform ,
      	ostype 		,
      	devicestyle ,
      	deviceid
      with
      	cube
    )t1
    where
    	t1.tenantid is not null
      	and 
      	t1.appid is not null
      	and  
      	cnt = 1
      	and 
      	atime <= daybegin(-7)
    order BY
      t1.tenantid 	,
      t1.appid		,  
      t1.appversion , 
      t1.appplatform, 
      t1.ostype		, 
      t1.devicestyle
    
    

  • 版本分布

    统计不同的版本,在周内每天的新增、活跃和启动次数。

  • 本周回流

    针对老用户(注册的时间 > 上周),上周未启动过应用,本周启动了应用的用户。

  • 连续n周活跃

    连续n周,每周都启动了应用。

  • 忠诚用户

    连续5周以上活跃

  • 连续活跃

    连续2周以上

  • 近期流失用户

    连续n(2≤n≤4)周没有启动应用的用户,等价于用户最后的启动时间在-3 ~ -1之间。

  • 留存用户

    新增用户经过一段时间,仍然在使用app,那就是留存用户。

  • 留存率

    针对一段时间的新增用户来讲,经过一段时间后,留下来的活跃用户。

  • 新鲜度

    每天启动app的新老用户比例,日新 / (日活 - 日新)单次使用时长

  • 日使用时长

    每天使用app的累计时间总长度。

  • 启动计量

    间隔30秒内的重启,不是两次,计为一次启动

  • 升级用户

    从别的版本升级到该版本的用户。

  • 渠道

  • 发送策略

    启动、退出、间隔

原文地址:https://www.cnblogs.com/xupccc/p/9565328.html