re-add analytics

This commit is contained in:
Peter Clement 2021-11-25 09:41:40 +00:00
parent f271bef3cb
commit ee9b1a7c18
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@
import { Modal } from "@budibase/bbui"
import { store, selectedAccessRole, allScreens } from "builderStore"
import { onDestroy } from "svelte"
import analytics, { Events } from "analytics"
let newScreenModal
let navigationSelectionModal
@ -21,6 +22,9 @@
for (let screen of selectedScreens) {
let test = screen.create()
createdScreens.push(test)
analytics.captureEvent(Events.SCREEN.CREATED, {
template: screen.id || screen.name,
})
}
}