feat(create-medusa-app): add tracking for selected options (#5404)
Adds tracking for selected options in `create-medusa-app` to better understand how users are using Medusa.
This commit is contained in:
5
.changeset/popular-shirts-doubt.md
Normal file
5
.changeset/popular-shirts-doubt.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-medusa-app": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(create-medusa-app): add tracking for selected options
|
||||||
@@ -55,13 +55,7 @@ export default async ({
|
|||||||
directoryPath,
|
directoryPath,
|
||||||
withNextjsStarter = false,
|
withNextjsStarter = false,
|
||||||
}: CreateOptions) => {
|
}: CreateOptions) => {
|
||||||
track("CREATE_CLI")
|
track("CREATE_CLI_CMA")
|
||||||
if (repoUrl) {
|
|
||||||
track("STARTER_SELECTED", { starter: repoUrl })
|
|
||||||
}
|
|
||||||
if (seed) {
|
|
||||||
track("SEED_SELECTED", { seed })
|
|
||||||
}
|
|
||||||
|
|
||||||
const spinner: Ora = ora()
|
const spinner: Ora = ora()
|
||||||
const processManager = new ProcessManager()
|
const processManager = new ProcessManager()
|
||||||
@@ -111,6 +105,16 @@ export default async ({
|
|||||||
: { client: null, dbConnectionString: "" }
|
: { client: null, dbConnectionString: "" }
|
||||||
isDbInitialized = true
|
isDbInitialized = true
|
||||||
|
|
||||||
|
track("CMA_OPTIONS", {
|
||||||
|
repoUrl,
|
||||||
|
seed,
|
||||||
|
boilerplate,
|
||||||
|
skipDb,
|
||||||
|
browser,
|
||||||
|
migrations,
|
||||||
|
installNextjs,
|
||||||
|
})
|
||||||
|
|
||||||
logMessage({
|
logMessage({
|
||||||
message: `${emojify(
|
message: `${emojify(
|
||||||
":rocket:"
|
":rocket:"
|
||||||
|
|||||||
Reference in New Issue
Block a user