Commit 09ee3af3 authored by Constance Okoghenun's avatar Constance Okoghenun Committed by Kushal Pandya

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

parent df3d022f
import $ from 'jquery';
import Stats from 'ee/stats';
export default function initExportCSVModal() {
const $modal = $('.issues-export-modal');
const $downloadBtn = $('.csv_download_link');
const $closeBtn = $('.modal-header .close');
Stats.bindTrackableContainer('.issues-export-modal');
$modal.modal({ show: false });
$downloadBtn.on('click', () => $modal.modal('show'));
$closeBtn.on('click', () => $modal.modal('hide'));
......
......@@ -18,6 +18,6 @@
%strong= @current_user.notification_email
in an attachment.
.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?
= 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