活动报告
您可以使用活动报告来深入了解用户在使用您的网站和应用程序时执行的活动。 此报告通过用户触发的事件来衡量用户活动,并让您查看事件的详细属性。
注意:本文介绍默认报告。 您可以通过应用筛选器或比较或更改 QuickSight 中的维度、指标或图表来自定义报告。 了解更多
查看报告
- 访问您的应用程序的仪表板。 参考【访问仪表板】(index.md)
- 在仪表板中,单击名称为
Activity
的工作表。
数据从哪里来
活动报告是基于以下 QuickSight 数据集创建的:
Events_View-<app id>-<project id>
连接到分析引擎(即 Redshift)中的clickstream_event_view
视图Events_Parameter_View-<app id>-<project id>
连接到分析引擎中的clickstream_events_parameter_view
视图
下面是生成相关视图的 SQL 命令。
SQL 命令
clickstream_event_view.sql
select
event_date
, event_name
, event_id
, event_bundle_sequence_id
, event_previous_timestamp
, event.event_timestamp
, event_value_in_usd
, app_info_app_id
, app_info_package_id
, app_info_install_source
, app_info_version
, app_info_sdk_name
, app_info_sdk_version
, device_id
, device_mobile_brand_name
, device_mobile_model_name
, device_manufacturer
, device_screen_width
, device_screen_height
, device_carrier
, device_network_type
, device_operating_system
, device_operating_system_version
, host_name
, ua_browser
, ua_browser_version
, ua_os
, ua_os_version
, ua_device
, ua_device_category
, device_system_language
, device_time_zone_offset_seconds
, geo_continent
, geo_country
, geo_city
, geo_metro
, geo_region
, geo_sub_continent
, geo_locale
, platform
, project_id
, traffic_source_name
, traffic_source_medium
, traffic_source_source
, event.user_id
, event.user_pseudo_id
, u.user_first_touch_timestamp
from {{schema}}.clickstream_event_attr_view_v1 as event
left join {{schema}}.user_m_view as u on event.user_pseudo_id = u.user_pseudo_id
clickstream-ods-events-query.sql
-- run following command to load latest partition
-- msck repair table {{database}}.{{eventTable}};
-- msck repair table {{database}}.{{userTable}};
select
event_date
,event_name
,event_id
,event_bundle_sequence_id as event_bundle_sequence_id
,event_previous_timestamp as event_previous_timestamp
,event_timestamp
,event_value_in_usd
,app_info.app_id as app_info_app_id
,app_info.id as app_info_package_id
,app_info.install_source as app_info_install_source
,app_info.version as app_info_version
,device.vendor_id as device_id
,device.mobile_brand_name as device_mobile_brand_name
,device.mobile_model_name as device_mobile_model_name
,device.manufacturer as device_manufacturer
,device.screen_width as device_screen_width
,device.screen_height as device_screen_height
,device.carrier as device_carrier
,device.network_type as device_network_type
,device.operating_system as device_operating_system
,device.operating_system_version as device_operating_system_version
,device.ua_browser
,device.ua_browser_version
,device.ua_os
,device.ua_os_version
,device.ua_device
,device.ua_device_category
,device.system_language as device_system_language
,device.time_zone_offset_seconds as device_time_zone_offset_seconds
,geo.continent as geo_continent
,geo.country as geo_country
,geo.city as geo_city
,geo.metro as geo_metro
,geo.region as geo_region
,geo.sub_continent as geo_sub_continent
,geo.locale as geo_locale
,platform
,project_id
,traffic_source.name as traffic_source_name
,traffic_source.medium as traffic_source_medium
,traffic_source.source as traffic_source_source
,event.user_id
,event.user_pseudo_id
,u.user_first_touch_timestamp
from {{database}}.{{eventTable}} as event
left join (
select
*
from (
select
user_pseudo_id,
user_first_touch_timestamp
,ROW_NUMBER() over (partition by user_pseudo_id ORDER BY event_timestamp desc) AS et_rank
from {{database}}.{{userTable}}
)
where et_rank = 1
) as u on event.user_pseudo_id = u.user_pseudo_id
where event.partition_app = ?
and event.partition_year >= ?
and event.partition_month >= ?
and event.partition_day >= ?
维度和指标
该报告包括以下维度和指标。 您可以通过在 QuickSight 数据集中创建“计算字段”来添加更多维度或指标。 了解更多。
字段 | 类型 | 这是什么 | 如何填充 |
---|---|---|---|
event_id |
维度 | SDK 为用户在使用您的网站和应用程序时触发的事件生成唯一 ID | 来自分析引擎的查询 |
事件名称 |
维度 | 事件名称 | 来自分析引擎的查询 |
平台 |
维度 | 会话期间用户使用的平台 | 来自分析引擎的查询 |
事件用户类型 |
维度 | 执行事件的用户类型,即新用户或现有用户 | QuickSight 中的计算字段 |
事件日期 |
指标 | 记录事件的日期(UTC 格式的 YYYYMMDD)。 | 来自分析引擎的查询 |
事件时间戳 |
维度 | 客户端记录事件的时间(以微秒为单位,UTC)。 | 来自分析引擎的查询 |
app_info_version |
维度 | 记录事件时应用程序或网站的版本 | 来自分析引擎的查询 |
event_parameter_key |
维度 | 事件参数key | 来自分析引擎的查询 |
event_parameter_key |
维度 | 事件参数的值 | 来自分析引擎的查询 |
最近7天的用户活跃数 |
指标 | 过去 7 天记录的事件数 | QuickSight 中的计算字段 |
最近30天内的用户活动数 |
指标 | 过去 30 天记录的事件数 | QuickSight 中的计算字段 |
视图 |
指标 | _screen_view 或 _page_view 事件的数量 |
QuickSight 中的计算字段 |
屏幕时间 |
指标 | 屏幕或网页上的参与时间(以分钟为单位) | QuickSight 中的计算字段 |
示例仪表板
下图是一个示例仪表板供您参考。