Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
1715d860
Commit
1715d860
authored
Jul 09, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
c14fc7b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
94 deletions
+94
-94
meigou_detail_page_dispense_uv.sql
...gou_detail_page/report/meigou_detail_page_dispense_uv.sql
+14
-14
meigou_detail_page_source_uv.sql
...eigou_detail_page/report/meigou_detail_page_source_uv.sql
+80
-80
No files found.
pm/meigou_detail_page/report/meigou_detail_page_dispense_uv.sql
View file @
1715d860
...
...
@@ -40,20 +40,20 @@ FROM
,
t1
.
device_type
as
`设备类型`
,
t1
.
active_type
as
`活跃类型`
,
t2
.
channel
as
`渠道`
,
count
(
case
when
type
=
'美购详情页'
then
cl_id
end
)
as
`美购详情页浏览uv`
,
count
(
case
when
type
=
'加购物车'
then
cl_id
end
)
as
`加购物车点击uv`
,
count
(
case
when
type
=
'评价列表页'
then
cl_id
end
)
as
`评价列表页点击uv`
,
count
(
case
when
type
=
'立即支付'
then
cl_id
end
)
as
`立即支付点击uv`
,
count
(
case
when
type
=
'私信及电话咨询'
then
cl_id
end
)
as
`私信及电话咨询uv`
,
count
(
case
when
type
=
'选择美购项目'
then
cl_id
end
)
as
`选择美购项目点击uv`
,
count
(
case
when
type
=
'机构主页'
then
cl_id
end
)
as
`机构主页点击uv`
,
count
(
case
when
type
=
'机构的其他美购'
then
cl_id
end
)
as
`机构的其他美购点击uv`
,
count
(
case
when
type
=
'推荐美购'
then
cl_id
end
)
as
`推荐美购点击uv`
,
count
(
case
when
type
=
'收藏'
then
cl_id
end
)
as
`收藏点击uv`
,
count
(
case
when
type
=
'右上角购物车'
then
cl_id
end
)
as
`右上角购物车点击uv`
,
count
(
case
when
type
=
'医生主页'
then
cl_id
end
)
as
`医生主页点击uv`
,
count
(
case
when
type
=
'分享'
then
cl_id
end
)
as
`分享点击uv`
,
count
(
case
when
type
=
'机构导航'
then
cl_id
end
)
as
`机构导航点击uv`
,
count
(
distinct
case
when
type
=
'美购详情页'
then
cl_id
end
)
as
`美购详情页浏览uv`
,
count
(
distinct
case
when
type
=
'加购物车'
then
cl_id
end
)
as
`加购物车点击uv`
,
count
(
distinct
case
when
type
=
'评价列表页'
then
cl_id
end
)
as
`评价列表页点击uv`
,
count
(
distinct
case
when
type
=
'立即支付'
then
cl_id
end
)
as
`立即支付点击uv`
,
count
(
distinct
case
when
type
=
'私信及电话咨询'
then
cl_id
end
)
as
`私信及电话咨询uv`
,
count
(
distinct
case
when
type
=
'选择美购项目'
then
cl_id
end
)
as
`选择美购项目点击uv`
,
count
(
distinct
case
when
type
=
'机构主页'
then
cl_id
end
)
as
`机构主页点击uv`
,
count
(
distinct
case
when
type
=
'机构的其他美购'
then
cl_id
end
)
as
`机构的其他美购点击uv`
,
count
(
distinct
case
when
type
=
'推荐美购'
then
cl_id
end
)
as
`推荐美购点击uv`
,
count
(
distinct
case
when
type
=
'收藏'
then
cl_id
end
)
as
`收藏点击uv`
,
count
(
distinct
case
when
type
=
'右上角购物车'
then
cl_id
end
)
as
`右上角购物车点击uv`
,
count
(
distinct
case
when
type
=
'医生主页'
then
cl_id
end
)
as
`医生主页点击uv`
,
count
(
distinct
case
when
type
=
'分享'
then
cl_id
end
)
as
`分享点击uv`
,
count
(
distinct
case
when
type
=
'机构导航'
then
cl_id
end
)
as
`机构导航点击uv`
FROM
(
...
...
pm/meigou_detail_page/report/meigou_detail_page_source_uv.sql
View file @
1715d860
...
...
@@ -172,22 +172,22 @@ FROM
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
,
count
(
case
when
page_name
=
'welfare_detail'
then
t1
.
cl_id
end
)
as
wel_uv
,
count
(
case
when
page_name
=
'search_result_more'
then
t1
.
cl_id
end
)
as
search_result_more_uv
,
count
(
case
when
page_name
=
'search_result_welfare'
then
t1
.
cl_id
end
)
as
search_result_welfare_uv
,
count
(
case
when
page_name
=
'organization_detail'
then
t1
.
cl_id
end
)
as
organization_detail_uv
,
count
(
case
when
page_name
=
'expert_detail'
then
t1
.
cl_id
end
)
as
expert_detail_uv
,
count
(
case
when
page_name
=
'category'
then
t1
.
cl_id
end
)
as
category_uv
,
count
(
case
when
page_name
=
'welfare_list'
then
t1
.
cl_id
end
)
as
welfare_list_uv
,
count
(
case
when
page_name
=
'welfare_home'
then
t1
.
cl_id
end
)
as
welfare_home_uv
,
count
(
case
when
page_name
=
'conversation_detail'
then
t1
.
cl_id
end
)
as
conversation_detail_uv
,
count
(
case
when
page_name
=
'my_cart'
then
t1
.
cl_id
end
)
as
my_cart_uv
,
count
(
case
when
page_name
=
'diary_detail'
then
t1
.
cl_id
end
)
as
diary_detail_uv
,
count
(
case
when
page_name
=
'order_detail'
then
t1
.
cl_id
end
)
as
order_detail_uv
,
count
(
case
when
page_name
=
'new_sign'
then
t1
.
cl_id
end
)
as
sign_uv
,
count
(
case
when
page_name
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
then
t1
.
cl_id
end
)
as
special_uv
--专题和大促
,
count
(
case
when
page_name
=
'zone_v3'
then
t1
.
cl_id
end
)
as
zone_uv
,
count
(
case
when
page_name
in
(
'report_result'
,
'face_detect_result'
)
then
t1
.
cl_id
end
)
as
ai_report_uv
--待之后增加模拟整形页面
,
count
(
distinct
case
when
page_name
=
'welfare_detail'
then
t1
.
cl_id
end
)
as
wel_uv
,
count
(
distinct
case
when
page_name
=
'search_result_more'
then
t1
.
cl_id
end
)
as
search_result_more_uv
,
count
(
distinct
case
when
page_name
=
'search_result_welfare'
then
t1
.
cl_id
end
)
as
search_result_welfare_uv
,
count
(
distinct
case
when
page_name
=
'organization_detail'
then
t1
.
cl_id
end
)
as
organization_detail_uv
,
count
(
distinct
case
when
page_name
=
'expert_detail'
then
t1
.
cl_id
end
)
as
expert_detail_uv
,
count
(
distinct
case
when
page_name
=
'category'
then
t1
.
cl_id
end
)
as
category_uv
,
count
(
distinct
case
when
page_name
=
'welfare_list'
then
t1
.
cl_id
end
)
as
welfare_list_uv
,
count
(
distinct
case
when
page_name
=
'welfare_home'
then
t1
.
cl_id
end
)
as
welfare_home_uv
,
count
(
distinct
case
when
page_name
=
'conversation_detail'
then
t1
.
cl_id
end
)
as
conversation_detail_uv
,
count
(
distinct
case
when
page_name
=
'my_cart'
then
t1
.
cl_id
end
)
as
my_cart_uv
,
count
(
distinct
case
when
page_name
=
'diary_detail'
then
t1
.
cl_id
end
)
as
diary_detail_uv
,
count
(
distinct
case
when
page_name
=
'order_detail'
then
t1
.
cl_id
end
)
as
order_detail_uv
,
count
(
distinct
case
when
page_name
=
'new_sign'
then
t1
.
cl_id
end
)
as
sign_uv
,
count
(
distinct
case
when
page_name
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
then
t1
.
cl_id
end
)
as
special_uv
--专题和大促
,
count
(
distinct
case
when
page_name
=
'zone_v3'
then
t1
.
cl_id
end
)
as
zone_uv
,
count
(
distinct
case
when
page_name
in
(
'report_result'
,
'face_detect_result'
)
then
t1
.
cl_id
end
)
as
ai_report_uv
--待之后增加模拟整形页面
FROM
(
SELECT
t1
.
partition_date
,
t1
.
page_name
,
t1
.
cl_id
,
mas
.
device_type
,
mas
.
active_type
,
mas
.
channel
...
...
@@ -256,22 +256,22 @@ LEFT JOIN
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
,
count
(
case
when
referrer
=
'welfare_detail'
then
t1
.
cl_id
end
)
as
wel_uv
,
count
(
case
when
referrer
=
'search_result_more'
then
t1
.
cl_id
end
)
as
search_result_more_uv
,
count
(
case
when
referrer
=
'search_result_welfare'
then
t1
.
cl_id
end
)
as
search_result_welfare_uv
,
count
(
case
when
referrer
=
'organization_detail'
then
t1
.
cl_id
end
)
as
organization_detail_uv
,
count
(
case
when
referrer
=
'expert_detail'
then
t1
.
cl_id
end
)
as
expert_detail_uv
,
count
(
case
when
referrer
=
'category'
then
t1
.
cl_id
end
)
as
category_uv
,
count
(
case
when
referrer
=
'welfare_list'
then
t1
.
cl_id
end
)
as
welfare_list_uv
,
count
(
case
when
referrer
=
'welfare_home'
then
t1
.
cl_id
end
)
as
welfare_home_uv
,
count
(
case
when
referrer
=
'conversation_detail'
then
t1
.
cl_id
end
)
as
conversation_detail_uv
,
count
(
case
when
referrer
=
'my_cart'
then
t1
.
cl_id
end
)
as
my_cart_uv
,
count
(
case
when
referrer
=
'diary_detail'
then
t1
.
cl_id
end
)
as
diary_detail_uv
,
count
(
case
when
referrer
=
'order_detail'
then
t1
.
cl_id
end
)
as
order_detail_uv
,
count
(
case
when
referrer
=
'new_sign'
then
t1
.
cl_id
end
)
as
sign_uv
,
count
(
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
then
t1
.
cl_id
end
)
as
special_uv
--专题和大促
,
count
(
case
when
referrer
=
'zone_v3'
then
t1
.
cl_id
end
)
as
zone_uv
,
count
(
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
then
t1
.
cl_id
end
)
as
ai_report_uv
--待之后增加模拟整形页面
,
count
(
distinct
case
when
referrer
=
'welfare_detail'
then
t1
.
cl_id
end
)
as
wel_uv
,
count
(
distinct
case
when
referrer
=
'search_result_more'
then
t1
.
cl_id
end
)
as
search_result_more_uv
,
count
(
distinct
case
when
referrer
=
'search_result_welfare'
then
t1
.
cl_id
end
)
as
search_result_welfare_uv
,
count
(
distinct
case
when
referrer
=
'organization_detail'
then
t1
.
cl_id
end
)
as
organization_detail_uv
,
count
(
distinct
case
when
referrer
=
'expert_detail'
then
t1
.
cl_id
end
)
as
expert_detail_uv
,
count
(
distinct
case
when
referrer
=
'category'
then
t1
.
cl_id
end
)
as
category_uv
,
count
(
distinct
case
when
referrer
=
'welfare_list'
then
t1
.
cl_id
end
)
as
welfare_list_uv
,
count
(
distinct
case
when
referrer
=
'welfare_home'
then
t1
.
cl_id
end
)
as
welfare_home_uv
,
count
(
distinct
case
when
referrer
=
'conversation_detail'
then
t1
.
cl_id
end
)
as
conversation_detail_uv
,
count
(
distinct
case
when
referrer
=
'my_cart'
then
t1
.
cl_id
end
)
as
my_cart_uv
,
count
(
distinct
case
when
referrer
=
'diary_detail'
then
t1
.
cl_id
end
)
as
diary_detail_uv
,
count
(
distinct
case
when
referrer
=
'order_detail'
then
t1
.
cl_id
end
)
as
order_detail_uv
,
count
(
distinct
case
when
referrer
=
'new_sign'
then
t1
.
cl_id
end
)
as
sign_uv
,
count
(
distinct
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
then
t1
.
cl_id
end
)
as
special_uv
--专题和大促
,
count
(
distinct
case
when
referrer
=
'zone_v3'
then
t1
.
cl_id
end
)
as
zone_uv
,
count
(
distinct
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
then
t1
.
cl_id
end
)
as
ai_report_uv
--待之后增加模拟整形页面
FROM
(
SELECT
t1
.
partition_date
,
t1
.
referrer
,
t1
.
cl_id
,
mas
.
device_type
,
mas
.
active_type
,
mas
.
channel
...
...
@@ -344,54 +344,54 @@ LEFT JOIN
,
t1
.
device_type
,
t1
.
active_type
,
t2
.
channel
,
count
(
case
when
referrer
=
'welfare_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
wel_add_uv
,
count
(
case
when
referrer
=
'welfare_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
wel_buy_uv
,
count
(
case
when
referrer
=
'welfare_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
wel_msg_uv
,
count
(
case
when
referrer
=
'search_result_more'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
result_more_add_uv
,
count
(
case
when
referrer
=
'search_result_more'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
result_more_buy_uv
,
count
(
case
when
referrer
=
'search_result_more'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
result_more_msg_uv
,
count
(
case
when
referrer
=
'search_result_welfare'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
result_wel_add_uv
,
count
(
case
when
referrer
=
'search_result_welfare'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
result_wel_buy_uv
,
count
(
case
when
referrer
=
'search_result_welfare'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
result_wel_msg_uv
,
count
(
case
when
referrer
=
'organization_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
org_add_uv
,
count
(
case
when
referrer
=
'organization_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
org_buy_uv
,
count
(
case
when
referrer
=
'organization_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
org_msg_uv
,
count
(
case
when
referrer
=
'expert_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
exp_add_uv
,
count
(
case
when
referrer
=
'expert_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
exp_buy_uv
,
count
(
case
when
referrer
=
'expert_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
exp_msg_uv
,
count
(
case
when
referrer
=
'category'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
category_add_uv
,
count
(
case
when
referrer
=
'category'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
category_buy_uv
,
count
(
case
when
referrer
=
'category'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
category_msg_uv
,
count
(
case
when
referrer
=
'welfare_list'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
wel_list_add_uv
,
count
(
case
when
referrer
=
'welfare_list'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
wel_list_buy_uv
,
count
(
case
when
referrer
=
'welfare_list'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
wel_list_msg_uv
,
count
(
case
when
referrer
=
'welfare_home'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
wel_home_add_uv
,
count
(
case
when
referrer
=
'welfare_home'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
wel_home_buy_uv
,
count
(
case
when
referrer
=
'welfare_home'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
wel_home_msg_uv
,
count
(
case
when
referrer
=
'conversation_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
conv_add_uv
,
count
(
case
when
referrer
=
'conversation_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
conv_buy_uv
,
count
(
case
when
referrer
=
'conversation_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
conv_msg_uv
,
count
(
case
when
referrer
=
'my_cart'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
cart_add_uv
,
count
(
case
when
referrer
=
'my_cart'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
cart_buy_uv
,
count
(
case
when
referrer
=
'my_cart'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
cart_msg_uv
,
count
(
case
when
referrer
=
'diary_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
diary_add_uv
,
count
(
case
when
referrer
=
'diary_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
diary_buy_uv
,
count
(
case
when
referrer
=
'diary_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
diary_msg_uv
,
count
(
case
when
referrer
=
'order_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
order_add_uv
,
count
(
case
when
referrer
=
'order_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
order_buy_uv
,
count
(
case
when
referrer
=
'order_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
order_msg_uv
,
count
(
case
when
referrer
=
'new_sign'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
sign_add_uv
,
count
(
case
when
referrer
=
'new_sign'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
sign_buy_uv
,
count
(
case
when
referrer
=
'new_sign'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
sign_msg_uv
,
count
(
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
special_add_uv
,
count
(
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
special_buy_uv
,
count
(
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
special_msg_uv
,
count
(
case
when
referrer
=
'zone_v3'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
zone_add_uv
,
count
(
case
when
referrer
=
'zone_v3'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
zone_buy_uv
,
count
(
case
when
referrer
=
'zone_v3'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
zone_msg_uv
,
count
(
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
ai_add_uv
,
count
(
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
ai_buy_uv
,
count
(
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
ai_msg_uv
,
count
(
distinct
case
when
referrer
=
'welfare_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
wel_add_uv
,
count
(
distinct
case
when
referrer
=
'welfare_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
wel_buy_uv
,
count
(
distinct
case
when
referrer
=
'welfare_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
wel_msg_uv
,
count
(
distinct
case
when
referrer
=
'search_result_more'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
result_more_add_uv
,
count
(
distinct
case
when
referrer
=
'search_result_more'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
result_more_buy_uv
,
count
(
distinct
case
when
referrer
=
'search_result_more'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
result_more_msg_uv
,
count
(
distinct
case
when
referrer
=
'search_result_welfare'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
result_wel_add_uv
,
count
(
distinct
case
when
referrer
=
'search_result_welfare'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
result_wel_buy_uv
,
count
(
distinct
case
when
referrer
=
'search_result_welfare'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
result_wel_msg_uv
,
count
(
distinct
case
when
referrer
=
'organization_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
org_add_uv
,
count
(
distinct
case
when
referrer
=
'organization_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
org_buy_uv
,
count
(
distinct
case
when
referrer
=
'organization_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
org_msg_uv
,
count
(
distinct
case
when
referrer
=
'expert_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
exp_add_uv
,
count
(
distinct
case
when
referrer
=
'expert_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
exp_buy_uv
,
count
(
distinct
case
when
referrer
=
'expert_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
exp_msg_uv
,
count
(
distinct
case
when
referrer
=
'category'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
category_add_uv
,
count
(
distinct
case
when
referrer
=
'category'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
category_buy_uv
,
count
(
distinct
case
when
referrer
=
'category'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
category_msg_uv
,
count
(
distinct
case
when
referrer
=
'welfare_list'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
wel_list_add_uv
,
count
(
distinct
case
when
referrer
=
'welfare_list'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
wel_list_buy_uv
,
count
(
distinct
case
when
referrer
=
'welfare_list'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
wel_list_msg_uv
,
count
(
distinct
case
when
referrer
=
'welfare_home'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
wel_home_add_uv
,
count
(
distinct
case
when
referrer
=
'welfare_home'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
wel_home_buy_uv
,
count
(
distinct
case
when
referrer
=
'welfare_home'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
wel_home_msg_uv
,
count
(
distinct
case
when
referrer
=
'conversation_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
conv_add_uv
,
count
(
distinct
case
when
referrer
=
'conversation_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
conv_buy_uv
,
count
(
distinct
case
when
referrer
=
'conversation_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
conv_msg_uv
,
count
(
distinct
case
when
referrer
=
'my_cart'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
cart_add_uv
,
count
(
distinct
case
when
referrer
=
'my_cart'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
cart_buy_uv
,
count
(
distinct
case
when
referrer
=
'my_cart'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
cart_msg_uv
,
count
(
distinct
case
when
referrer
=
'diary_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
diary_add_uv
,
count
(
distinct
case
when
referrer
=
'diary_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
diary_buy_uv
,
count
(
distinct
case
when
referrer
=
'diary_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
diary_msg_uv
,
count
(
distinct
case
when
referrer
=
'order_detail'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
order_add_uv
,
count
(
distinct
case
when
referrer
=
'order_detail'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
order_buy_uv
,
count
(
distinct
case
when
referrer
=
'order_detail'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
order_msg_uv
,
count
(
distinct
case
when
referrer
=
'new_sign'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
sign_add_uv
,
count
(
distinct
case
when
referrer
=
'new_sign'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
sign_buy_uv
,
count
(
distinct
case
when
referrer
=
'new_sign'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
sign_msg_uv
,
count
(
distinct
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
special_add_uv
,
count
(
distinct
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
special_buy_uv
,
count
(
distinct
case
when
referrer
in
(
'special_polymer'
,
'newt_welfare_special'
,
'welfare_special'
,
'activity_promotion_seckill'
,
'activity_promotion'
,
'custom_special'
)
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
special_msg_uv
,
count
(
distinct
case
when
referrer
=
'zone_v3'
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
zone_add_uv
,
count
(
distinct
case
when
referrer
=
'zone_v3'
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
zone_buy_uv
,
count
(
distinct
case
when
referrer
=
'zone_v3'
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
zone_msg_uv
,
count
(
distinct
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
and
action
=
'welfare_multiattribute_click_add'
then
t1
.
cl_id
end
)
as
ai_add_uv
,
count
(
distinct
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
and
action
=
'welfare_multiattribute_click_buy'
then
t1
.
cl_id
end
)
as
ai_buy_uv
,
count
(
distinct
case
when
referrer
in
(
'report_result'
,
'face_detect_result'
)
and
action
in
(
'welfare_detail_click_message'
,
'on_click_button'
)
then
t1
.
cl_id
end
)
as
ai_msg_uv
FROM
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment