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
922e77e3
Commit
922e77e3
authored
Jul 10, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
7df42ff4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
52 deletions
+60
-52
en-cn.properties
pm/daily_push/en-cn.properties
+4
-2
daily_push.zip
pm/daily_push/job/daily_push.zip
+0
-0
daily_push.sql
pm/daily_push/report/daily_push.sql
+0
-25
daily_push_click.sql
pm/daily_push/report/daily_push_click.sql
+30
-0
personal_push_click_rate.sql
pm/daily_push/report/personal_push_click_rate.sql
+0
-25
personal_push_received.sql
pm/daily_push/report/personal_push_received.sql
+26
-0
No files found.
pm/daily_push/en-cn.properties
View file @
922e77e3
daily_recommend_strategy
=
首页推荐策略日报
\ No newline at end of file
daily_push
=
push日报-策略方向
daily_push_click
=
push拉起设备数据
personal_push_received
=
push接收设备数据
\ No newline at end of file
pm/daily_push/job/daily_push.zip
View file @
922e77e3
No preview for this file type
pm/daily_push/report/daily_push.sql
deleted
100644 → 0
View file @
7df42ff4
SELECT
day_id
as
`日期`
,
device_os_type
as
`设备类型`
,
active_type
as
`活跃类型`
,
card_content_type
as
`卡片类型`
,
recommend_type
as
`推荐类型`
,
NVL
(
CONCAT
(
ROUND
((
navbar_search
+
highlight_word
+
self_welfare_card
+
recommend_welfare_card
+
recommend_content_card
/
2
)
/
card_exposure
*
100
,
2
),
'%'
),
0
)
as
`来自首页推荐内容卡片的的有效二跳pv/首页卡片精准曝光PV`
,
NVL
(
CONCAT
(
ROUND
(
card_click
/
card_exposure
*
100
,
2
),
'%'
),
0
)
as
`首页卡片点击PV/首页卡片精准曝光PV`
,
NVL
(
CONCAT
(
ROUND
((
navbar_search
+
highlight_word
+
self_welfare_card
+
recommend_welfare_card
+
recommend_content_card
/
2
)
/
card_click
*
100
,
2
),
'%'
),
0
)
as
`来自首页推荐内容卡片的的有效二跳pv/首页卡片点击PV`
,
card_click
as
`首页卡片点击PV`
,
card_exposure
as
`首页卡片精准曝光PV`
,
(
navbar_search
+
highlight_word
+
self_welfare_card
+
recommend_welfare_card
+
recommend_content_card
/
2
)
as
`有效二跳pv`
,
avg_page_stay
as
`来自I的单PV平均浏览时长`
,
navbar_search
as
`来自I的搜索框+搜索按钮点击PV`
,
highlight_word
as
`来自I的文内搜索点击PV`
,
self_welfare_card
as
`来自I的商品卡片点击PV`
,
recommend_welfare_card
as
`来自I的推荐商品+查看全部商品点击pv`
,
recommend_content_card
as
`来自I的推荐内容点击pv`
,
'未配置'
as
`来自I的推荐专题点击pv`
,
'未上线'
as
`来自I的转诊点击pv`
,
'未上线'
as
`来自I的视频面诊点击pv`
FROM
pm
.
tl_pm_recommend_strategy_d
WHERE
partition_day
>=
'20200627'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`日期`
desc
,
`设备类型`
,
`活跃类型`
,
`卡片类型`
,
`推荐类型`
;
\ No newline at end of file
pm/daily_push/report/daily_push_click.sql
0 → 100644
View file @
922e77e3
select
day_id
as
`日期`
,
device_os_type
as
`设备类型`
,
active_type
as
`活跃类型`
,
NVL
(
CONCAT
(
ROUND
(
is_open_uv
/
dau
*
100
,
2
),
'%'
),
0
)
as
`push开启设备数/DAU`
,
NVL
(
CONCAT
(
ROUND
(
op_push_open_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`运营push拉起设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
op_push_open_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`运营push拉起人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
op_push_open_2_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`运营push拉起有2跳设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
op_push_open_2_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`运营push拉起有2跳人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
op_push_open_2_pv
/
op_push_open_pv
*
100
,
2
),
'%'
),
0
)
as
`运营push二跳率=2跳人次/拉起人次`
,
NVL
(
CONCAT
(
ROUND
(
auto_push_open_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`自动化push拉起设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
auto_push_open_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`自动化push拉起人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
auto_push_open_2_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`自动化push拉起有2跳设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
auto_push_open_2_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`自动化push拉起有2跳人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
auto_push_open_2_pv
/
auto_push_open_pv
*
100
,
2
),
'%'
),
0
)
as
`自动化push二跳率=2跳人次/拉起人次`
,
NVL
(
CONCAT
(
ROUND
(
ctr_push_open_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`ctr push拉起设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
ctr_push_open_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`ctr push拉起人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
ctr_push_open_2_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`ctr push拉起有2跳设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
ctr_push_open_2_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`ctr push拉起有2跳人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
ctr_push_open_2_pv
/
ctr_push_open_pv
*
100
,
2
),
'%'
),
0
)
as
`ctr push二跳率=2跳人次/拉起人次`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`non_ctr push拉起设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`non_ctr push拉起人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_2_uv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`non_ctr push拉起有2跳设备/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_2_pv
/
is_open_uv
*
100
,
2
),
'%'
),
0
)
as
`non_ctr push拉起有2跳人次/push开启设备数`
,
NVL
(
CONCAT
(
ROUND
(
non_ctr_push_open_2_pv
/
non_ctr_push_open_pv
*
100
,
2
),
'%'
),
0
)
as
`non_ctr push二跳率=2跳人次/拉起人次`
from
pm
.
tl_pm_push_click_d
where
partition_day
>=
'20200708'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`日期`
,
`设备类型`
,
`活跃类型`
pm/daily_push/report/personal_push_click_rate.sql
deleted
100644 → 0
View file @
7df42ff4
SELECT
day_id
as
`日期`
,
device_os_type
as
`设备类型`
,
active_type
as
`活跃类型`
,
card_content_type
as
`卡片类型`
,
recommend_type
as
`推荐类型`
,
NVL
(
CONCAT
(
ROUND
((
navbar_search
+
highlight_word
+
self_welfare_card
+
recommend_welfare_card
+
recommend_content_card
/
2
)
/
card_exposure
*
100
,
2
),
'%'
),
0
)
as
`来自首页推荐内容卡片的的有效二跳pv/首页卡片精准曝光PV`
,
NVL
(
CONCAT
(
ROUND
(
card_click
/
card_exposure
*
100
,
2
),
'%'
),
0
)
as
`首页卡片点击PV/首页卡片精准曝光PV`
,
NVL
(
CONCAT
(
ROUND
((
navbar_search
+
highlight_word
+
self_welfare_card
+
recommend_welfare_card
+
recommend_content_card
/
2
)
/
card_click
*
100
,
2
),
'%'
),
0
)
as
`来自首页推荐内容卡片的的有效二跳pv/首页卡片点击PV`
,
card_click
as
`首页卡片点击PV`
,
card_exposure
as
`首页卡片精准曝光PV`
,
(
navbar_search
+
highlight_word
+
self_welfare_card
+
recommend_welfare_card
+
recommend_content_card
/
2
)
as
`有效二跳pv`
,
avg_page_stay
as
`来自I的单PV平均浏览时长`
,
navbar_search
as
`来自I的搜索框+搜索按钮点击PV`
,
highlight_word
as
`来自I的文内搜索点击PV`
,
self_welfare_card
as
`来自I的商品卡片点击PV`
,
recommend_welfare_card
as
`来自I的推荐商品+查看全部商品点击pv`
,
recommend_content_card
as
`来自I的推荐内容点击pv`
,
'未配置'
as
`来自I的推荐专题点击pv`
,
'未上线'
as
`来自I的转诊点击pv`
,
'未上线'
as
`来自I的视频面诊点击pv`
FROM
pm
.
tl_pm_recommend_strategy_d
WHERE
partition_day
>=
'20200627'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`日期`
desc
,
`设备类型`
,
`活跃类型`
,
`卡片类型`
,
`推荐类型`
;
\ No newline at end of file
pm/daily_push/report/personal_push_received.sql
0 → 100644
View file @
922e77e3
select
day_id
as
`日期`
,
device_os_type
as
`设备类型`
,
active_type
as
`活跃类型`
,
NVL
(
CONCAT
(
ROUND
(
sum
(
case
when
push_type
=
'101'
then
click_dev_num
end
)
/
sum
(
case
when
push_type
=
'101'
then
received_dev_num
end
)
*
100
,
2
),
'%'
),
0
)
as
`ctr帖子点击率`
,
NVL
(
CONCAT
(
ROUND
(
sum
(
case
when
push_type
=
'102'
then
click_dev_num
end
)
/
sum
(
case
when
push_type
=
'102'
then
received_dev_num
end
)
*
100
,
2
),
'%'
),
0
)
as
`ctr日记点击率`
,
NVL
(
CONCAT
(
ROUND
(
sum
(
case
when
push_type
=
'103'
then
click_dev_num
end
)
/
sum
(
case
when
push_type
=
'103'
then
received_dev_num
end
)
*
100
,
2
),
'%'
),
0
)
as
`ctr回答点击率`
,
NVL
(
CONCAT
(
ROUND
(
sum
(
case
when
push_type
=
'111'
then
click_dev_num
end
)
/
sum
(
case
when
push_type
=
'111'
then
received_dev_num
end
)
*
100
,
2
),
'%'
),
0
)
as
`非ctr帖子点击率`
,
NVL
(
CONCAT
(
ROUND
(
sum
(
case
when
push_type
=
'112'
then
click_dev_num
end
)
/
sum
(
case
when
push_type
=
'112'
then
received_dev_num
end
)
*
100
,
2
),
'%'
),
0
)
as
`非ctr日记点击率`
,
NVL
(
CONCAT
(
ROUND
(
sum
(
case
when
push_type
=
'113'
then
click_dev_num
end
)
/
sum
(
case
when
push_type
=
'113'
then
received_dev_num
end
)
*
100
,
2
),
'%'
),
0
)
as
`非ctr回答点击率`
,
NVL
(
ROUND
(
sum
(
case
when
push_type
=
'101'
then
received_dev_num
end
)
/
sum
(
case
when
push_type
=
'111'
then
received_dev_num
end
),
2
),
0
)
as
`ctr帖子接收设备数/非ctr帖子接收设备数`
,
NVL
(
ROUND
(
sum
(
case
when
push_type
=
'102'
then
received_dev_num
end
)
/
sum
(
case
when
push_type
=
'112'
then
received_dev_num
end
),
2
),
0
)
as
`ctr日记接收设备数/非ctr日记接收设备数`
,
NVL
(
ROUND
(
sum
(
case
when
push_type
=
'103'
then
received_dev_num
end
)
/
sum
(
case
when
push_type
=
'113'
then
received_dev_num
end
),
2
),
0
)
as
`ctr回答接收设备数/非ctr回答接收设备数`
,
NVL
(
sum
(
case
when
push_type
=
'101'
then
received_dev_num
end
),
0
)
as
`ctr帖子接收设备数`
,
NVL
(
sum
(
case
when
push_type
=
'102'
then
received_dev_num
end
),
0
)
as
`ctr日记接收设备数`
,
NVL
(
sum
(
case
when
push_type
=
'103'
then
received_dev_num
end
),
0
)
as
`ctr回答接收设备数`
,
NVL
(
sum
(
case
when
push_type
=
'111'
then
received_dev_num
end
),
0
)
as
`非ctr帖子接收设备数`
,
NVL
(
sum
(
case
when
push_type
=
'112'
then
received_dev_num
end
),
0
)
as
`非ctr日记接收设备数`
,
NVL
(
sum
(
case
when
push_type
=
'113'
then
received_dev_num
end
),
0
)
as
`非ctr回答接收设备数`
from
pm
.
tl_pm_push_receive_d
where
partition_day
>=
'20200708'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
and
day_id
>=
'20200626'
group
by
day_id
,
device_os_type
,
active_type
order
by
`日期`
,
`设备类型`
,
`活跃类型`
\ No newline at end of file
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