-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable ECE Tracks Events when WooPay is disabled #9793
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.33 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.
Tests well and looks good!
Unrelated to this PR and the issue it's solving: I did run into an issue where Apple Pay button load events aren't being triggered because of how triggering the tracks event is debounced.
The onReadyHandler
is triggered separately for the APay and GPay buttons so trackExpressCheckoutButtonLoad
is called twice with different arguments each time. This means the second call is debounced and not sent.
Thank you, @reykjalin! I’ll start working on the debounce issue next. |
* develop: Wait for Stripe js to load before using it (#9770) Remove redundant stripe payment elements mount for pay for order (#9813) Enforce proper return types for methods get_order_from_event_body (#9761) Update phpcompatibility to develop version to get sniffs for PHP 8 (#9697) Enable ECE Tracks Events when WooPay is disabled (#9793) chore: rename PRB constants to ECE (#9768) Amend changelog entries for release 8.5.1 fix: remove 'test mode' badge from shortcode checkout (#9800) Update version and add changelog entries for release 8.5.1
Fixes #9784
Changes proposed in this Pull Request
This PR addresses the issue where ECE Tracks Events are not being enabled when WooPay is disabled. By implementing this change, event tracking remains functional irrespective of the WooPay payment gateway’s status, ensuring consistent data collection and analytics.
Testing instructions
Prepare Environment:
Disable WooPay:
Set Breakpoint:
class-woopay-tracker.php
and add a debugger breakpoint at line 327.Trigger Events and Verify Event Recording:
wcpay_applepay_button_load
andwcpay_gpay_button_load
are being recorded as expected.Verify that the issue existed:
develop
branch to the same environment.develop
and fixed in this branch.npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge