woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts/product-tracking
Nathan Silveira 121bfe3a29
Add tracks event for "View product" and dismiss action after update (#35582)
* Record an event 'product_view_product_click' when the 'View Product' link is clicked after creating or updating a product

* Add product_view_product_dismiss tracks events (WIP, not currently working)

* Add changelog

* Fix whitespace in addEventListener and remove console.logs

* Change link tag id to be more specific and comply with CSS guidelines
Move HTML code out of translation function

* Run phpcs in class-wc-admin-post-types

* Add tinyMCE types to add global tinymce variable in typescript code

* Add additional data in getProductData

TODO: I'm not sure if it's possible, or if it makes sense, to include stock_quantity_update in the object

* Add code review suggestions, including:

* Create isElementVisible function to backfill jQuery implementation
* Fix wrong value for is_downloadable, is_virtual, manage_stock
* Fix wrong radix
* Update menu_order implementation
* Add missing ? to weight

* Add stock_quantity_update implementation which is not working as intended

Since the page reloads after product update, the initialStockValue is updated as well

* Remove stock_quantity_update property and adjust is_downloadable, is_virtual, and manage_stock for consistency
2022-11-28 22:01:10 -03:00
..
global.d.ts Add tracks event for "View product" and dismiss action after update (#35582) 2022-11-28 22:01:10 -03:00
index.ts Add tracks to new product and edit product screens (#33120) 2022-05-26 16:56:22 -04:00
product-edit.ts Add/32676 category and tag tracks within products screen (#33121) 2022-05-30 10:06:34 -03:00
product-new.ts Add/32676 category and tag tracks within products screen (#33121) 2022-05-30 10:06:34 -03:00
products-list.ts Fix JS lint errors (#33484) 2022-06-21 16:37:34 +08:00
shared.ts Add tracks event for "View product" and dismiss action after update (#35582) 2022-11-28 22:01:10 -03:00
utils.ts Fix JS lint errors (#33484) 2022-06-21 16:37:34 +08:00