Merge pull request #32933 from woocommerce/add/task-view-tracks-experimental-products

Add task_view tracks prop for experimental products
This commit is contained in:
RJ 2022-05-10 13:52:30 +08:00 committed by GitHub
commit 7e722e0698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: Add
Add task_view tracks prop for experimental products #32933

View File

@ -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' ),

View File

@ -0,0 +1,4 @@
Significance: patch
Type: Add
Add task_view tracks prop for experimental products #32933