diff --git a/.changeset/popular-shirts-doubt.md b/.changeset/popular-shirts-doubt.md new file mode 100644 index 0000000000000..0e4d89bd107bc --- /dev/null +++ b/.changeset/popular-shirts-doubt.md @@ -0,0 +1,5 @@ +--- +"create-medusa-app": patch +--- + +feat(create-medusa-app): add tracking for selected options diff --git a/packages/create-medusa-app/src/commands/create.ts b/packages/create-medusa-app/src/commands/create.ts index 7a4376c5e8c36..f642e32afc546 100644 --- a/packages/create-medusa-app/src/commands/create.ts +++ b/packages/create-medusa-app/src/commands/create.ts @@ -55,13 +55,7 @@ export default async ({ directoryPath, withNextjsStarter = false, }: CreateOptions) => { - track("CREATE_CLI") - if (repoUrl) { - track("STARTER_SELECTED", { starter: repoUrl }) - } - if (seed) { - track("SEED_SELECTED", { seed }) - } + track("CREATE_CLI_CMA") const spinner: Ora = ora() const processManager = new ProcessManager() @@ -111,6 +105,16 @@ export default async ({ : { client: null, dbConnectionString: "" } isDbInitialized = true + track("CMA_OPTIONS", { + repoUrl, + seed, + boilerplate, + skipDb, + browser, + migrations, + installNextjs, + }) + logMessage({ message: `${emojify( ":rocket:"