welcome dialog; order UI facelift
This commit is contained in:
12
src/track.js
Normal file
12
src/track.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export let tracking_enabled = true
|
||||
|
||||
export function track(event, info) {
|
||||
if (tracking_enabled) {
|
||||
if (window.gtag !== undefined)
|
||||
window.gtag('event', event, info)
|
||||
else {
|
||||
console.log('gtag not available')
|
||||
tracking_enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user