Google analytics BigQuery,如何复制';转换|(增强)电子商务|结帐行为';漏斗报告

Google analytics BigQuery,如何复制';转换|(增强)电子商务|结帐行为';漏斗报告,google-analytics,google-bigquery,Google Analytics,Google Bigquery,我构建了一个查询,允许我在bigquery中复制google analytics购物行为漏斗报告: #standardSQL select case when totals.newvisits = 1 then 'New visitor' else 'Returning visitor' end as user_type, count(distinct concat(fullvisitorid, cast(visitstarttime as string))) as all_sessio

我构建了一个查询,允许我在bigquery中复制google analytics购物行为漏斗报告:

#standardSQL
select
  case when totals.newvisits = 1 then 'New visitor' else 'Returning visitor' end as user_type,
  count(distinct concat(fullvisitorid, cast(visitstarttime as string))) as all_sessions,
  count(distinct case when hits.ecommerceaction.action_type = '2' then concat(fullvisitorid, cast(visitstarttime as string)) else null end) as sessions_with_product_views,
  count(distinct case when hits.ecommerceaction.action_type = '3' then concat(fullvisitorid, cast(visitstarttime as string)) else null end) as sessions_with_add_to_card,
  count(distinct case when hits.ecommerceaction.action_type = '5' then concat(fullvisitorid, cast(visitstarttime as string)) else null end) as sessions_with_check_out,
  count(distinct case when hits.ecommerceaction.action_type = '6' then concat(fullvisitorid, cast(visitstarttime as string)) else null end) as sessions_with_transactions
from
  `dataset.ga.ga_sessions_20210410`,
  unnest(hits) as hits,
  unnest(product) as product
where
  totals.visits = 1
group by
  user_type
order by
  all_sessions desc
结果如下:

这是为会议,我有一个类似的放弃。 我找不到任何提供签出阶段的字段,因此我也可以复制签出报告漏斗。这些阶段是“当前订单”、“发货计费方法”、“订单确认”和相对下降。 提供购物阶段的字段是“点击、电子商务、动作类型”,是否有用于结账的字段