From fe9573d764e6325dc62b050be903722dae6c5e76 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Thu, 26 Sep 2024 12:29:21 -0600 Subject: [PATCH] MWPW-158122 --- acrobat/blocks/verb-widget/verb-widget.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/acrobat/blocks/verb-widget/verb-widget.js b/acrobat/blocks/verb-widget/verb-widget.js index fb18dc5d..d2f6a102 100644 --- a/acrobat/blocks/verb-widget/verb-widget.js +++ b/acrobat/blocks/verb-widget/verb-widget.js @@ -162,6 +162,7 @@ export default async function init(element) { button.addEventListener('click', () => { verbAnalytics('filepicker:shown', VERB); + verbAnalytics('dropzone:choose-file-clicked', VERB); initiatePrefetch(VERB); }); @@ -191,7 +192,7 @@ export default async function init(element) { window.addEventListener('unity:track-analytics', (e) => { if (e.detail?.event === 'change') { - verbAnalytics('choose-file:open', VERB); + verbAnalytics('choose-file:open', VERB, e.detail?.data); setUser(); } // maybe new event name files-dropped? @@ -200,10 +201,6 @@ export default async function init(element) { setDraggingClass(widget, false); setUser(); } - if (e.detail?.event === 'choose-file-clicked') { - verbAnalytics('dropzone:choose-file-clicked', VERB, e.detail?.data); - setUser(); - } if (e.detail?.event === 'uploading') { verbAnalytics('job:uploading', VERB, e.detail?.data);