diff options
Diffstat (limited to 'app/helpers/analytics')
-rw-r--r-- | app/helpers/analytics/navbar_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/analytics/unique_visits_helper.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/analytics/navbar_helper.rb b/app/helpers/analytics/navbar_helper.rb index ddf2655c887..bc0b5e7c74f 100644 --- a/app/helpers/analytics/navbar_helper.rb +++ b/app/helpers/analytics/navbar_helper.rb @@ -28,7 +28,7 @@ module Analytics private def navbar_sub_item(args) - NavbarSubItem.new(args) + NavbarSubItem.new(**args) end def cycle_analytics_navbar_link(project, current_user) diff --git a/app/helpers/analytics/unique_visits_helper.rb b/app/helpers/analytics/unique_visits_helper.rb index ded7f54e44e..4c709b2ed23 100644 --- a/app/helpers/analytics/unique_visits_helper.rb +++ b/app/helpers/analytics/unique_visits_helper.rb @@ -14,8 +14,7 @@ module Analytics end def track_visit(target_id) - return unless Feature.enabled?(:track_unique_visits) - return unless Gitlab::CurrentSettings.usage_ping_enabled? + return unless Feature.enabled?(:track_unique_visits, default_enabled: true) return unless visitor_id Gitlab::Analytics::UniqueVisits.new.track_visit(visitor_id, target_id) |