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
363c0035
Commit
363c0035
authored
Nov 10, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
299d2139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
search_content_detail.sql
pm/daily_content/report/search_content_detail.sql
+9
-9
No files found.
pm/daily_content/report/search_content_detail.sql
View file @
363c0035
select
day_id
as
`日期`
,
device_os_type
as
`平台`
,
active_type
as
`活跃
类型
`
,
channel
as
`渠道
类型
`
,
active_type
as
`活跃`
,
channel
as
`渠道`
,
dau
as
`dau`
,
search_uv
as
`搜索uv`
,
search_uv_in_dau
as
`搜索uv/dau`
...
...
@@ -20,11 +20,11 @@ select day_id as `日期`
,
qa_tab_ctr
`问答tab ctr`
,
qa_tab_pv_per_uv
`问答tab卡片点击pv/uv`
,
content_pv_in_search_uv
as
`来源于搜索日记和问答tab的内容页PV/搜索uv`
,
concat
(
round
(
count
(
distinct
case
when
total_diary_second_pv
>
0
then
t4
.
cl_id
end
)
/
count
(
distinct
case
when
t4
.
search_pv
>
0
then
t4
.
cl_id
end
)
*
100
,
2
),
'%'
)
`diary_second_pv_in_search_
uv`
,
concat
(
round
(
count
(
distinct
case
when
total_qa_second_pv
>
0
then
t4
.
cl_id
end
)
/
count
(
distinct
case
when
t4
.
search_pv
>
0
then
t4
.
cl_id
end
)
*
100
,
2
),
'%'
)
`qa_second_pv_in_search_
uv`
,
round
(
sum
(
referrer_search_pagestay
)
/
count
(
distinct
case
when
t4
.
search_pv
>
0
then
t4
.
cl_id
end
),
2
)
as
`content_pagestay_in_search_uv
`
,
round
(
sum
(
business_id_num
)
/
count
(
distinct
t2
.
cl_id
),
2
)
as
`avg_contents
`
,
concat
(
round
(
count
(
distinct
t3
.
cl_id
)
/
count
(
distinct
t2
.
cl_id
)
*
100
,
2
),
'%'
)
as
`search_retention
`
,
diary_second_pv_in_search_uv
`来源于搜索日记tab的内容二跳PV/搜索
uv`
,
qa_second_pv_in_search_uv
`来源于搜索问答tab的内容二跳PV/搜索
uv`
,
content_pagestay_in_search_uv
as
`来源于搜索日记及问答tab的内容总时长/搜索uv(s)
`
,
avg_contents
as
`完成搜索用户人均阅读内容篇数
`
,
search_retention
as
`功能次留
`
FROM
pm
.
tl_pm_search_content
where
partition_day
>=
'20201109'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`日期`
,
`系统`
,
`活跃`
,
`渠道`
\ No newline at end of file
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