-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: more fixes for Mailchimp RAS data sync #2780
Conversation
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'm not sure this is producing the desired data.
The referer
is stored as the URL of the page I'm at when registering, I expected it to be the page before.
The current_page_url
is stored with the full URL as a path, which is what home_url( $path )
does:
https://example.com/https://example.com/path
The usage of add_query_arg()
is also not clear to me. If no value is being added in the first argument, what's the purpose of this function?
I was mainly copying what the Register block is doing, but let me revisit in case the functions here are producing different results. |
Strange... In the context of the registration block the |
The same code works well for the registration block 🤔
|
The difference between the Register block and the auth form is that the latter submits registration request via REST API, where as the Register block more simply POSTs the form data. So 6431780 accounts for this by passing the referrer to the auth form as a hidden form field, and assuming that the result of |
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.
🎉
The normalize_contact_data()
method is working as intended and the sync is going through without issues through the Mailchimp::put()
method.
The NP_Registration Page
and NP_Referrer Path
fields are also being populated with the expected values.
Thanks for the review! Holding for deployment until Monday. |
## [2.11.5](v2.11.4...v2.11.5) (2023-12-04) ### Bug Fixes * more fixes for Mailchimp RAS data sync ([#2780](#2780)) ([ef4bfe7](ef4bfe7))
🎉 This PR is included in version 2.11.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [2.12.0-alpha.3](v2.12.0-alpha.2...v2.12.0-alpha.3) (2023-12-04) ### Bug Fixes * more fixes for Mailchimp RAS data sync ([#2780](#2780)) ([ef4bfe7](ef4bfe7))
🎉 This PR is included in version 2.12.0-alpha.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Adds
Registration Method
andRegistration Page
metadata toreader_registered
data events fired by the auth form. Currently new registrations via this method aren't capturing this info.How to test the changes in this Pull Request:
master
, visit any page in a new session and click the "Sign In" button in the header, then "I don't have an account". Register a new account via this form.NP_Registration Page
orNP_Registration Method
values.NP_Registration Page
with the URL of the page you were viewing when you clicked "Sign In", and aNP_Registration Method
ofauth-form
.This PR now also contains an alternative solution for the issue described in Automattic/newspack-newsletters#1365. Please follow testing instructions there to test this solution.
Other information: