Skip to content

Commit

Permalink
Move the template format to the event name
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed Dec 13, 2023
1 parent fe57369 commit a4a0edf
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions app/assets/scripts/components/new-atbd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ function NewAtbd() {
target='_blank'
rel='noopener noreferrer'
onClick={() => {
ReactGA.event('atbd_template_download', {
template_format: 'Google Docs'
});
ReactGA.event('atbd_template_download_google_docs');
}}
>
<span>
Expand All @@ -249,9 +247,7 @@ function NewAtbd() {
target='_blank'
rel='noopener noreferrer'
onClick={() => {
ReactGA.event('atbd_template_download', {
template_format: 'Microsoft Word'
});
ReactGA.event('atbd_template_download_ms_word');
}}
>
<span>
Expand All @@ -264,9 +260,7 @@ function NewAtbd() {
target='_blank'
rel='noopener noreferrer'
onClick={() => {
ReactGA.event('atbd_template_download', {
template_format: 'Latex'
});
ReactGA.event('atbd_template_download_latex');
}}
>
<span>
Expand Down

0 comments on commit a4a0edf

Please sign in to comment.