Skip to content
代码片段 群组 项目
未验证 提交 ccfc4f15 编辑于 作者: Paul W's avatar Paul W 提交者: GitLab
浏览文件

Add tracking and metrics to admin groups page

上级 99f671f9
No related branches found
No related tags found
无相关合并请求
.gl-flex.gl-flex-wrap.gl-items-center.gl-justify-between.gl-gap-y-2.gl-gap-x-5.gl-my-5 .gl-flex.gl-flex-wrap.gl-items-center.gl-justify-between.gl-gap-y-2.gl-gap-x-5.gl-my-5{ @options }
%h1.gl-heading-1{ class: '!gl-m-0', data: { testid: 'page-heading' } } %h1.gl-heading-1{ class: '!gl-m-0', data: { testid: 'page-heading' } }
= heading || @heading = heading || @heading
......
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
module Layouts module Layouts
class PageHeadingComponent < ViewComponent::Base class PageHeadingComponent < ViewComponent::Base
# @param [String] heading # @param [String] heading
def initialize(heading) # @param [Hash] options
def initialize(heading, options: {})
@heading = heading @heading = heading
@options = options
end end
renders_one :heading renders_one :heading
......
- page_title _("Groups") - page_title _("Groups")
- add_page_specific_style 'page_bundles/search' - add_page_specific_style 'page_bundles/search'
= render ::Layouts::PageHeadingComponent.new(_('Groups')) do |c| = render ::Layouts::PageHeadingComponent.new(_('Groups'), options: { data: { event_tracking_load: 'true', event_tracking: 'view_admin_groups_pageload' } }) do |c|
- c.with_actions do - c.with_actions do
= link_button_to new_admin_group_path, variant: :confirm do = link_button_to new_admin_group_path, variant: :confirm do
= _('New group') = _('New group')
......
---
description: Tracks pageviews for the admin groups page
internal_events: true
action: view_admin_groups_pageload
identifiers:
- user
product_group: personal_productivity
milestone: '17.2'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156807
distributions:
- ce
- ee
tiers:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.count_distinct_user_id_from_view_admin_groups_pageload_monthly
description: Monthly count of unique users to the admin groups page
product_group: personal_productivity
performance_indicator_type: []
value_type: number
status: active
milestone: '17.2'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156807
time_frame: 28d
data_source: internal_events
data_category: optional
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
events:
- name: view_admin_groups_pageload
unique: user.id
---
key_path: counts.count_total_view_admin_groups_pageload_monthly
description: Monthly count of users to the admin groups page
product_group: personal_productivity
performance_indicator_type: []
value_type: number
status: active
milestone: '17.2'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156807
time_frame: 28d
data_source: internal_events
data_category: optional
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
events:
- name: view_admin_groups_pageload
---
key_path: redis_hll_counters.count_distinct_user_id_from_view_admin_groups_pageload_weekly
description: Weekly count of unique users to the admin groups page
product_group: personal_productivity
performance_indicator_type: []
value_type: number
status: active
milestone: '17.2'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156807
time_frame: 7d
data_source: internal_events
data_category: optional
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
events:
- name: view_admin_groups_pageload
unique: user.id
---
key_path: counts.count_total_view_admin_groups_pageload_weekly
description: Weekly count of users to the admin groups page
product_group: personal_productivity
performance_indicator_type: []
value_type: number
status: active
milestone: '17.2'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156807
time_frame: 7d
data_source: internal_events
data_category: optional
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
events:
- name: view_admin_groups_pageload
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册