diff --git a/packages/builder/src/analytics/constants.js b/packages/builder/src/analytics/constants.js index 1bb8517a2b..5264e16abc 100644 --- a/packages/builder/src/analytics/constants.js +++ b/packages/builder/src/analytics/constants.js @@ -2,6 +2,7 @@ export const Events = { COMPONENT_CREATED: "component:created", COMPONENT_UPDATED: "component:updated", APP_VIEW_PUBLISHED: "app:view_published", + BLOCK_EJECTED: "block:ejected", } export const EventSource = { diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index 13b28a3572..6c029ddff3 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -1287,6 +1287,11 @@ export const getFrontendStore = () => { return false } + // Log event + analytics.captureEvent(Events.BLOCK_EJECTED, { + block: block._component, + }) + // Attach block children back into ejected definition, using the // _containsSlot flag to know where to insert them const slotContainer = findAllMatchingComponents(