Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/cohorts_controller.rb')
-rw-r--r--app/controllers/admin/cohorts_controller.rb17
1 files changed, 13 insertions, 4 deletions
diff --git a/app/controllers/admin/cohorts_controller.rb b/app/controllers/admin/cohorts_controller.rb
index 468a1077694..ce3d769f35e 100644
--- a/app/controllers/admin/cohorts_controller.rb
+++ b/app/controllers/admin/cohorts_controller.rb
@@ -1,15 +1,20 @@
# frozen_string_literal: true
class Admin::CohortsController < Admin::ApplicationController
- include RedisTracking
+ include ProductAnalyticsTracking
feature_category :devops_reports
urgency :low
+ track_custom_event :index,
+ name: 'i_analytics_cohorts',
+ action: 'perform_analytics_usage_action',
+ label: 'redis_hll_counters.analytics.analytics_total_unique_counts_monthly',
+ destinations: %i[redis_hll snowplow]
+
def index
@cohorts = load_cohorts
- track_cohorts_visit
end
private
@@ -22,7 +27,11 @@ class Admin::CohortsController < Admin::ApplicationController
CohortsSerializer.new.represent(cohorts_results)
end
- def track_cohorts_visit
- track_unique_redis_hll_event('i_analytics_cohorts') if trackable_html_request?
+ def tracking_namespace_source
+ nil
+ end
+
+ def tracking_project_source
+ nil
end
end