diff --git a/app/assets/javascripts/settings_panels.js b/app/assets/javascripts/settings_panels.js index 1eee7a932a46cbe9417bbfdba842a77db7f02c42..0bb28ba4ebdc4c76d931cb36d7e6bc93ea663fbd 100644 --- a/app/assets/javascripts/settings_panels.js +++ b/app/assets/javascripts/settings_panels.js @@ -25,6 +25,10 @@ export function expandSection(sectionArg) { .addClass('animating') .one('animationend.animateSection', () => $section.removeClass('animating')); } + + InternalEvents.trackEvent('click_expand_panel_on_settings', undefined, { + label: $section.find('.settings-title').text(), + }); } export function closeSection(sectionArg) { diff --git a/config/events/click_expand_panel_on_settings.yml b/config/events/click_expand_panel_on_settings.yml new file mode 100644 index 0000000000000000000000000000000000000000..b1af49d8d7c197514404a15573ec5bb58083e997 --- /dev/null +++ b/config/events/click_expand_panel_on_settings.yml @@ -0,0 +1,20 @@ +--- +description: User expands a panel on a settings page +internal_events: true +action: click_expand_panel_on_settings +identifiers: +- project +- namespace +- user +product_section: core_platform +product_stage: manage +product_group: foundations +milestone: '16.11' +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/issues/451458 +distributions: +- ce +- ee +tiers: +- free +- premium +- ultimate diff --git a/config/metrics/counts_28d/count_distinct_user_id_from_click_expand_panel_on_settings_monthly.yml b/config/metrics/counts_28d/count_distinct_user_id_from_click_expand_panel_on_settings_monthly.yml new file mode 100644 index 0000000000000000000000000000000000000000..35debf625d2ff2751047b3074e596c9eb67244c0 --- /dev/null +++ b/config/metrics/counts_28d/count_distinct_user_id_from_click_expand_panel_on_settings_monthly.yml @@ -0,0 +1,24 @@ +--- +key_path: redis_hll_counters.count_distinct_user_id_from_click_expand_panel_on_settings_monthly +description: Monthly count of unique users who expanded a settings panel +product_section: core_platform +product_stage: manage +product_group: foundations +performance_indicator_type: [] +value_type: number +status: active +milestone: '16.11' +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/issues/451458 +time_frame: 28d +data_source: internal_events +data_category: optional +distribution: +- ce +- ee +tier: +- free +- premium +- ultimate +events: +- name: click_expand_panel_on_settings + unique: user.id diff --git a/config/metrics/counts_7d/count_distinct_user_id_from_click_expand_panel_on_settings_weekly.yml b/config/metrics/counts_7d/count_distinct_user_id_from_click_expand_panel_on_settings_weekly.yml new file mode 100644 index 0000000000000000000000000000000000000000..a46f90f01ce36ae1eff8d0bd011e48b28e34918f --- /dev/null +++ b/config/metrics/counts_7d/count_distinct_user_id_from_click_expand_panel_on_settings_weekly.yml @@ -0,0 +1,24 @@ +--- +key_path: redis_hll_counters.count_distinct_user_id_from_click_expand_panel_on_settings_weekly +description: Weekly count of unique users who expanded a settings panel +product_section: core_platform +product_stage: manage +product_group: foundations +performance_indicator_type: [] +value_type: number +status: active +milestone: '16.11' +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/issues/451458 +time_frame: 7d +data_source: internal_events +data_category: optional +distribution: +- ce +- ee +tier: +- free +- premium +- ultimate +events: +- name: click_expand_panel_on_settings + unique: user.id