Skip to content

Commit c937b22

Browse files
committed
Track siteCreationStep event when showing 3 profiler questions in store creation.
1 parent 3e3db6d commit c937b22

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

WooCommerce/Classes/Analytics/WooAnalyticsEvent+StoreCreation.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ extension WooAnalyticsEvent.StoreCreation {
133133
/// Steps of the native store creation flow.
134134
enum Step: String {
135135
case storeName = "store_name"
136+
case profilerCategoryQuestion = "store_profiler_industries"
137+
case profilerSellingStatusQuestion = "store_profiler_commerce_journey"
138+
case profilerCountryQuestion = "store_profiler_country"
136139
case domainPicker = "domain_picker"
137140
case storeSummary = "store_summary"
138141
case planPurchase = "plan_purchase"

WooCommerce/Classes/Authentication/Store Creation/StoreCreationCoordinator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ private extension StoreCreationCoordinator {
323323
self.showSellingStatusQuestion(from: navigationController, storeName: storeName, category: nil, planToPurchase: planToPurchase)
324324
})
325325
navigationController.pushViewController(questionController, animated: true)
326-
// TODO: analytics
326+
analytics.track(event: .StoreCreation.siteCreationStep(step: .profilerCategoryQuestion))
327327
}
328328

329329
@MainActor
@@ -348,7 +348,7 @@ private extension StoreCreationCoordinator {
348348
planToPurchase: planToPurchase)
349349
}
350350
navigationController.pushViewController(questionController, animated: true)
351-
// TODO: analytics
351+
analytics.track(event: .StoreCreation.siteCreationStep(step: .profilerSellingStatusQuestion))
352352
}
353353

354354
@MainActor
@@ -370,7 +370,7 @@ private extension StoreCreationCoordinator {
370370
self?.showSupport(from: navigationController)
371371
})
372372
navigationController.pushViewController(questionController, animated: true)
373-
// TODO: analytics
373+
analytics.track(event: .StoreCreation.siteCreationStep(step: .profilerCountryQuestion))
374374
}
375375

376376
@MainActor

0 commit comments

Comments
 (0)