Android电子商务应用的跳出率

时间:2017-09-26 13:56:18

标签: android google-analytics google-bigquery

我正在尝试计算特定屏幕(主屏幕)的跳出率和退出率,但是在Android的情况下它正在跟踪启动画面。我想删除Splash Screen生成的会话。实际上,这是我用于计算跳出率的逻辑,因为我在拍摄时采用totals.screenviews = 1。但是,如果我们包含启动,这个逻辑就会变得过时。我用于计算跳出率的查询是

SELECT
  *
FROM (
  SELECT
    SUM(screenviews) Totals,
    date date,
    Platform,
  FROM (
    SELECT
      COUNT(hits.type) AS screenviews,
      DATE(date) AS date,
      device.operatingSystem Platform,
    FROM
      TABLE_DATE_RANGE([118356700.ga_sessions_],TIMESTAMP('2017-01-01'), TIMESTAMP (CURRENT_DATE()))
    WHERE
      hits.type IN ("APPVIEW")
      AND hits.appInfo.ScreenName IN ( "Home Storefront Screen")
      AND device.operatingSystem <> "BlackBerry"
    GROUP BY
      2,
      3 )
  GROUP BY
    2,
    3 ),
  (
  SELECT
    SUM(screenviews) Bounced,
    date1 date,
    Platform,
  FROM (
    SELECT
      COUNT(hits.type) AS screenviews,
      DATE(date) AS date1,
      device.operatingSystem Platform,
    FROM
      TABLE_DATE_RANGE([118356700.ga_sessions_],TIMESTAMP('2017-01-01'), TIMESTAMP (CURRENT_DATE()))
    WHERE
      hits.type IN ("APPVIEW")
      AND hits.appInfo.LAndingScreenName = "Home Storefront Screen"
      AND hits.appInfo.LAndingScreenName = hits.appInfo.ExitScreenName
      AND totals.screenviews = 1
      AND device.operatingSystem <> "BlackBerry"
      AND hits.isEntrance = TRUE
    GROUP BY
      2,
      3 )
  GROUP BY
    2,
    3)

1 个答案:

答案 0 :(得分:0)

不确定,我说得对,但如果我根据您的定义正确理解,您的退回会话每次会话APPVIEWS中包含hits.type次? 您可以在OMIT RECORD IF NOT SUM(hits.type='APPVIEW')<=2语句

之后尝试WHERE之类的内容

在会话中总和为真(1)/假(0),如果与您的反弹定义不匹配,则省略整个记录/会话。

请参阅https://cloud.google.com/bigquery/docs/reference/legacy-sql#omit