Skip to content

Commit

Permalink
Merge pull request #568 from NASA-IMPACT/fix/ga-download-events
Browse files Browse the repository at this point in the history
Move the template format to the event name (Google Analytics)
  • Loading branch information
wrynearson authored Dec 20, 2023
2 parents e92bac4 + a4a0edf commit 8f568c8
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 8f568c8

Please sign in to comment.