From 67cf1e109b5720f4b080a493a6906d96b2c8d82e Mon Sep 17 00:00:00 2001 From: RJChow Date: Tue, 10 May 2022 11:07:18 +0800 Subject: [PATCH] added task_view tracks prop for experimental_products --- .../changelog/add-32933_task_view_prop_experimental_products | 4 ++++ .../src/components/WooOnboardingTask/WooOnboardingTask.js | 2 ++ .../changelog/add-32933_task_view_prop_experimental_products | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 packages/js/onboarding/changelog/add-32933_task_view_prop_experimental_products create mode 100644 plugins/woocommerce/changelog/add-32933_task_view_prop_experimental_products diff --git a/packages/js/onboarding/changelog/add-32933_task_view_prop_experimental_products b/packages/js/onboarding/changelog/add-32933_task_view_prop_experimental_products new file mode 100644 index 00000000000..7549c2f41e3 --- /dev/null +++ b/packages/js/onboarding/changelog/add-32933_task_view_prop_experimental_products @@ -0,0 +1,4 @@ +Significance: patch +Type: Add + +Add task_view tracks prop for experimental products #32933 diff --git a/packages/js/onboarding/src/components/WooOnboardingTask/WooOnboardingTask.js b/packages/js/onboarding/src/components/WooOnboardingTask/WooOnboardingTask.js index b2e05c6226d..dfe6851caa5 100644 --- a/packages/js/onboarding/src/components/WooOnboardingTask/WooOnboardingTask.js +++ b/packages/js/onboarding/src/components/WooOnboardingTask/WooOnboardingTask.js @@ -20,6 +20,8 @@ export const trackView = ( taskId ) => { recordEvent( 'task_view', { task_name: taskId, + experimental_products: + window.wcAdminFeatures[ 'experimental-products-task' ], wcs_installed: installedPlugins.includes( 'woocommerce-services' ), wcs_active: activePlugins.includes( 'woocommerce-services' ), jetpack_installed: installedPlugins.includes( 'jetpack' ), diff --git a/plugins/woocommerce/changelog/add-32933_task_view_prop_experimental_products b/plugins/woocommerce/changelog/add-32933_task_view_prop_experimental_products new file mode 100644 index 00000000000..7549c2f41e3 --- /dev/null +++ b/plugins/woocommerce/changelog/add-32933_task_view_prop_experimental_products @@ -0,0 +1,4 @@ +Significance: patch +Type: Add + +Add task_view tracks prop for experimental products #32933