-
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
Record a tracks event when a merchant is redirected to a Stripe Capital loan offer #9652
Record a tracks event when a merchant is redirected to a Stripe Capital loan offer #9652
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.
Code change looks simple but I'm curious how the track event will be fired if right after it's recorded locally in memory, we are doing a redirect.
After some searches (and while waiting for my event to show up on Tracks MC page), I found this comment.
Anyway, since I can see the event from my blog after opening /wp-admin/admin.php?wcpay-loan-offer
on the Tracks MC page. I guess it works. I don't need to know the details on how =)
changelog/fix-9651-record-tracks-event-capital-view-offer-redirect
Outdated
Show resolved
Hide resolved
Co-authored-by: Shendy <[email protected]>
Fixes #9651
Changes proposed in this Pull Request
This PR adds a new tracks event
wcadmin_wcpay_capital_view_offer_redirect
when a merchant is redirected to the Stripe Capital offer page, after clicking the View Offer/Details link in the offer email.Adding this event helps us to track how well Stripe Capital flows work (converts to loans) and if merchants are dropping off anywhere in the flow.
Testing instructions
/wp-admin/admin.php?wcpay-loan-offer
wcadmin_wcpay_capital_view_offer_redirect
and wait ~10mins – ensure your account shows up in this listnpm 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
Important
Don't forget post-merge tasks!
wcadmin_wcpay_capital_view_offer_redirect
tracks event