diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-15 06:10:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-15 06:10:30 +0300 |
commit | c9bdf919932b7285ef9920bdac955459340da8fe (patch) | |
tree | c133d05b5cb003de0c6bb2234afb884f6882ccd9 /lib/gitlab/tracking.rb | |
parent | 8b75948934667904196aba319aedda25b00f06ff (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/tracking.rb')
-rw-r--r-- | lib/gitlab/tracking.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/tracking.rb b/lib/gitlab/tracking.rb index 618e359211b..ca4afb4c19c 100644 --- a/lib/gitlab/tracking.rb +++ b/lib/gitlab/tracking.rb @@ -24,7 +24,9 @@ module Gitlab Gitlab::CurrentSettings.snowplow_enabled? end - def event(category, action, label: nil, property: nil, value: nil, context: nil) + def event(category, action, label: nil, property: nil, value: nil, context: [], standard_context: nil) + context.push(standard_context.to_context) if standard_context + snowplow.event(category, action, label: label, property: property, value: value, context: context) product_analytics.event(category, action, label: label, property: property, value: value, context: context) end |