mirror of
https://github.com/voltbonn/profile-picture-generator.git
synced 2024-12-22 07:45:04 +00:00
added hashtag and frame logging
This commit is contained in:
parent
673b50e345
commit
3eb4429fe9
1 changed files with 9 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue