feat: Clean up onboarding experiment (#6873)

* feat: Clean up onboarding experiment

* chore: clean up
This commit is contained in:
Mutasem Aldmour
2023-08-08 17:00:25 +02:00
committed by GitHub
parent 905eef8559
commit 3619345169
3 changed files with 2 additions and 28 deletions

View File

@@ -13,7 +13,6 @@ import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
const EVENTS = {
SHOW_CHECKLIST: 'Show checklist',
ADDED_MANUAL_TRIGGER: 'User added manual trigger',
ADDED_SCHEDULE_TRIGGER: 'User added schedule trigger',
ADDED_DATA_TRIGGER: 'User added data trigger',
@@ -35,15 +34,6 @@ export const useSegment = defineStore('segment', () => {
}
};
const showAppCuesChecklist = () => {
const isInIframe = window.location !== window.parent.location;
if (isInIframe) {
return;
}
track(EVENTS.SHOW_CHECKLIST);
};
const trackAddedTrigger = (nodeTypeName: string) => {
if (!nodeTypesStore.isTriggerNode(nodeTypeName)) {
return;
@@ -123,7 +113,6 @@ export const useSegment = defineStore('segment', () => {
};
return {
showAppCuesChecklist,
track,
trackAddedTrigger,
trackSuccessfulWorkflowExecution,