From a40a87cb816be61f336b21e60260ec06c1f6f352 Mon Sep 17 00:00:00 2001 From: stdavis Date: Mon, 20 Mar 2023 14:48:08 -0600 Subject: [PATCH] fix: upgrade to GA4 analytics and add download event Closes #491 --- _src/app/download/Download.js | 5 +++++ _src/index.html | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/_src/app/download/Download.js b/_src/app/download/Download.js index d02cdcd2..891ee043 100644 --- a/_src/app/download/Download.js +++ b/_src/app/download/Download.js @@ -187,6 +187,11 @@ define([ this.gp.submitJob(params); + window.gtag('event', 'download', { + format: this.fileTypes.value, + layers: Object.keys(this.downloadFeatures).join(', ') + }); + return params; }, showLoader: function () { diff --git a/_src/index.html b/_src/index.html index e03bbbb3..7f0bda13 100644 --- a/_src/index.html +++ b/_src/index.html @@ -41,14 +41,13 @@ /build --> +