diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2018-10-03 18:00:22 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-10-03 18:00:22 +0000 |
commit | 02bf354e9377f0c536bc28c65043a5609bef91c1 (patch) | |
tree | c5e56af859df66c955cb1eb8c2826825334ce38a /app/views/projects/project_templates | |
parent | dda43a03745411a19213fbb691f9a9ff82e024f4 (diff) | |
download | gitlab-ce-02bf354e9377f0c536bc28c65043a5609bef91c1.tar.gz |
CE port Resolve "Create a generic event listener for tracking clicks on GitLab.com"
Diffstat (limited to 'app/views/projects/project_templates')
-rw-r--r-- | app/views/projects/project_templates/_built_in_templates.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/project_templates/_built_in_templates.html.haml b/app/views/projects/project_templates/_built_in_templates.html.haml index e7636099be6..233c3adba0e 100644 --- a/app/views/projects/project_templates/_built_in_templates.html.haml +++ b/app/views/projects/project_templates/_built_in_templates.html.haml @@ -10,8 +10,8 @@ = template.description .controls.d-flex.align-items-center %label.btn.btn-success.template-button.choose-template.append-right-10.append-bottom-0{ for: template.name } - %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name } + %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name, data: { track_label: "create_from_template", track_property: "template_use", track_event: "click_button" } } %span = _("Use template") - %a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank' } + %a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank', data: { track_label: "create_from_template", track_property: "template_preview", track_event: "click_button", track_value: template.name } } = _("Preview") |