From 3eb4429fe97329854536aaa2dda34535a35fc998 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Wed, 21 Apr 2021 00:57:24 +0200 Subject: [PATCH] added hashtag and frame logging --- src/App.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App.js b/src/App.js index 1f8b264..0a4fea2 100644 --- a/src/App.js +++ b/src/App.js @@ -260,6 +260,13 @@ function App({ getString }) { .then(b64 => { // set_combinedImage(b64) trigger_download('volt-profile-picture.png', b64) + + const frameName = frame.name || 'No-Frame' + const hashtagName = hashtag.name || 'No-Hashtag' + + window.umami.trackEvent('F: ' + frameName) // Log Frame + window.umami.trackEvent('H: ' + hashtagName) // Log Hashtag + window.umami.trackEvent('C: ' + [frameName, hashtagName].join(' | ')) // Log Combined }) } @@ -274,6 +281,8 @@ function App({ getString }) { hashtagURL, height, width, + frame, + hashtag ]) const { isDragActive, getRootProps } = useDropzone({