Commit 6a12d985 authored by Constance Okoghenun's avatar Constance Okoghenun

Added Snowplow event tracking to Issues import CSV

A "click_button" event will be triggered when the import button
of the Issues import modal is clicked.
parent 6da54c0d
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
= _('It must have a header row and at least two columns: the first column is the issue title and the second column is the issue description. The separator is automatically detected.') = _('It must have a header row and at least two columns: the first column is the issue title and the second column is the issue description. The separator is automatically detected.')
= _('The maximum file size allowed is %{size}.') % { size: number_to_human_size(Gitlab::CurrentSettings.max_attachment_size.megabytes) } = _('The maximum file size allowed is %{size}.') % { size: number_to_human_size(Gitlab::CurrentSettings.max_attachment_size.megabytes) }
.modal-footer .modal-footer
%button{ type: 'submit', class: 'btn btn-success', title: _('Import issues') } %button{ type: 'submit', class: 'btn btn-success', title: _('Import issues'), data: { track_label: "export_issues_csv", track_event: "click_button"} }
= _('Import issues') = _('Import issues')
...@@ -3,4 +3,5 @@ import Stats from 'ee/stats'; ...@@ -3,4 +3,5 @@ import Stats from 'ee/stats';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
Stats.bindTrackableContainer('.issues-export-modal'); Stats.bindTrackableContainer('.issues-export-modal');
Stats.bindTrackableContainer('.issues-import-modal');
}); });
---
title: Added Snowplow tracking to issues import
merge_request: 9067
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment