summaryrefslogtreecommitdiff
path: root/app/helpers/packages_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/packages_helper.rb')
-rw-r--r--app/helpers/packages_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/packages_helper.rb b/app/helpers/packages_helper.rb
index 8f365fd0786..04465f7798c 100644
--- a/app/helpers/packages_helper.rb
+++ b/app/helpers/packages_helper.rb
@@ -50,6 +50,7 @@ module PackagesHelper
def track_package_event(event_name, scope, **args)
::Packages::CreateEventService.new(nil, current_user, event_name: event_name, scope: scope).execute
- track_event(event_name, **args)
+ category = args.delete(:category) || self.class.name
+ ::Gitlab::Tracking.event(category, event_name.to_s, **args)
end
end