db804f4193
* add tracks event in the wc settings connect notice * add clicked and dismissed tracks event in the marketplace connect notice * add shown tracks event in the marketplace connect notice * add changelog * fix linter error * Add Tracks event when connect-notice in plugin is shown and clicked * Add docblock for maybe_enqueue_scripts_for_connect_notice_in_plugins --------- Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com> |
||
---|---|---|
.. | ||
add-term-tracking | ||
attributes-tracking | ||
beta-features-tracking-modal | ||
category-tracking | ||
command-palette | ||
command-palette-analytics | ||
marketing-coupons | ||
navigation-opt-out | ||
onboarding-homepage-notice | ||
onboarding-load-sample-products-notice | ||
onboarding-product-import-notice | ||
onboarding-product-notice | ||
onboarding-tax-notice | ||
order-tracking | ||
payment-method-promotions | ||
print-shipping-label-banner | ||
product-category-metabox | ||
product-import-tracking | ||
product-tour | ||
product-tracking | ||
settings-tracking | ||
shipping-settings-region-picker | ||
tags-tracking | ||
variable-product-tour | ||
wc-addons-tour | ||
woo-connect-notice | ||
woo-plugin-update-connect-notice | ||
README.md |
README.md
Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts
in the Webpack config will automatically build these scripts.
Scripts must be manually enqueued with any necessary dependencies. For example, onboarding-homepage-notice
uses the WooCommerce navigation package:
wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );