Commit c7aeba6f authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '8774-track-export-issues-csv-usage-on-gitlab-com-with-snowplow' into 'master'

Resolve "Track export issues CSV usage on GitLab.com with Snowplow"

Closes #8774

See merge request gitlab-org/gitlab-ee!9045
parents df3d022f 09ee3af3
import $ from 'jquery'; import $ from 'jquery';
import Stats from 'ee/stats';
export default function initExportCSVModal() { export default function initExportCSVModal() {
const $modal = $('.issues-export-modal'); const $modal = $('.issues-export-modal');
const $downloadBtn = $('.csv_download_link'); const $downloadBtn = $('.csv_download_link');
const $closeBtn = $('.modal-header .close'); const $closeBtn = $('.modal-header .close');
Stats.bindTrackableContainer('.issues-export-modal');
$modal.modal({ show: false }); $modal.modal({ show: false });
$downloadBtn.on('click', () => $modal.modal('show')); $downloadBtn.on('click', () => $modal.modal('show'));
$closeBtn.on('click', () => $modal.modal('hide')); $closeBtn.on('click', () => $modal.modal('hide'));
......
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
%strong= @current_user.notification_email %strong= @current_user.notification_email
in an attachment. in an attachment.
.modal-footer .modal-footer
= link_to 'Export issues', export_csv_project_issues_path(@project, request.query_parameters), method: :post, class: 'btn btn-success float-left', title: 'Export issues' = link_to 'Export issues', export_csv_project_issues_path(@project, request.query_parameters), method: :post, class: 'btn btn-success float-left', title: 'Export issues', data: { track_label: "export_issues_csv", track_event: "click_button"}
- elsif show_promotions? - elsif show_promotions?
= render 'shared/promotions/promote_csv_export' = render 'shared/promotions/promote_csv_export'
---
title: Added Snowplow tracking to issues export
merge_request: 9045
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