1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-21 23:35:05 +00:00

added hashtag and frame logging

This commit is contained in:
thomasrosen 2021-04-21 00:57:24 +02:00
parent 673b50e345
commit 3eb4429fe9

View file

@ -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({