-
Notifications
You must be signed in to change notification settings - Fork 219
Add local pickup tracking #10841
Add local pickup tracking #10841
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
assets/js/base/context/hooks/cart/test/use-store-cart.js
assets/js/base/context/hooks/collections/test/use-collection.js assets/js/base/context/hooks/test/use-query-state.js assets/js/base/hocs/test/with-reviews.js assets/js/base/hooks/test/use-previous.js assets/js/base/hooks/test/use-shallow-equal.js assets/js/blocks/classic-template/index.tsx assets/js/blocks/price-filter/test/use-price-constraints.js assets/js/data/checkout/thunks.ts assets/js/data/payment/thunks.ts assets/js/editor-components/template-notice/index.tsx assets/js/extensions/jetpack/woocommerce-analytics/index.ts assets/js/hocs/test/with-categories.js assets/js/hocs/test/with-category.js assets/js/hocs/test/with-product-variations.js assets/js/hocs/test/with-product.js assets/js/hocs/test/with-searched-products.js assets/js/templates/revert-button/index.tsx node_modules/@wordpress/core-data/src/entities.ts |
Size Change: +957 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Size Change: 0 B Total Size: 1.44 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to move
$this->container->get( JetpackWooCommerceAnalytics::class )->init();
from this line in Bootstrap.php outside of the if ( ! $is_rest )
condition, because currently pressing save does not trigger the event.
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
@opr We can gate loading the assets file behind a |
Sounds like a good idea, let me know when you need a new review! |
e11b507
to
3c26b8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working well for me, just a suggestion about the event name.
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
This adds PHP side tracking to Local Pickup save action, it will push the whole object everytime being saved.
What
Closes woocommerce/woocommerce#37699
Closes #9731
Testing