re-add analytics

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

View File

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