summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDonald Cook <dcook@gitlab.com>2019-08-21 19:12:11 +0000
committerClement Ho <408677-ClemMakesApps@users.noreply.gitlab.com>2019-08-21 19:12:11 +0000
commit293ef17e7352fa33ce70cae8233b5a415f326596 (patch)
treed2e480830dca412fd91812aecf4e0a1072a01107 /app/helpers
parentb0af3979a4656adb4a2a422969f3197b3c85eafa (diff)
downloadgitlab-ce-293ef17e7352fa33ce70cae8233b5a415f326596.tar.gz
Backport: Issue sidebar tracking
Added snowplow event tracking to Edit buttons
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issuables_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index e2e007eee50..b88b25eb845 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -405,7 +405,11 @@ module IssuablesHelper
placement: is_collapsed ? 'left' : nil,
container: is_collapsed ? 'body' : nil,
boundary: 'viewport',
- is_collapsed: is_collapsed
+ is_collapsed: is_collapsed,
+ track_label: "right_sidebar",
+ track_property: "update_todo",
+ track_event: "click_button",
+ track_value: ""
}
end