DataLife
Forum Replies Created
-
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to MailchimpThanks, yes, I was successfully able to make a custom field that sent to Mailchimp, in that same form. I actually made sure to test that before starting this thread as I respect your time ??
The field name is “unique-link” (I changed it from mc4wp-unique-link because that wasn’t working either). You should be able to search for it in Inspect/View Source, but here is a screenshot: https://picallow.com/form-3/?usp_success=2&post_id=310156&form_id=27.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to MailchimpThanks. I see there was a duplicate field that had no value, and that’s what you saw. Try now.
The current CF7 “code”:
<label> Your Name (required) [text* your-name] </label> <label> Your Email (required) [email* your-email] </label> [mc4wp_checkbox] [submit "Subscribe"]
It’s ok if I manually generate that field instead of putting it above, right? Flamingo is still seeing it, so mc4wp should be able to as well.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to MailchimpThanks for your continued support ??
Okay so I was trying to generate the hash after submission, and I realized it’s easier to create the hash on page load, and put it in the hidden form field, so now you can see it in Inspect. However it’s still not populating that field in Mailchimp. I tried with and without the mc4wp- prefix.
- This reply was modified 7 months, 1 week ago by DataLife.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to MailchimpHi,
I debugged using
// Add unique link to Contact Form 7 form data function add_unique_link_to_cf7_data($form_data) { if (isset($form_data['your-email'])) { $email = $form_data['your-email']; $unique_link = generate_secure_link($email); $form_data['mc4wp-unique-link'] = $unique_link; // Log debug messages error_log('Generated Unique Link: ' . $unique_link); error_log('Form Data: ' . print_r($form_data, true)); } else { // Log debug message error_log('Email field not found in form data'); } return $form_data; }
And what returned all looked 100% correct. This coincides with what is being logged in Flamingo, which looks 100% correct. Mailchimp is still not seeing the custom field however.
Hmm.
Nathan
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to Mailchimp“Renew Mailchimp lists”.
This is actually what I meant by
I did “Refresh List” in mc4wp settings.
On the page “Mailchimp for WordPress: API Settings,” the text field unique-link appears, with UNIQUELINK as the merge tag.
(And it’s been that way for over a day now, and I’m not using any caching plugins at the moment, so I think it should be “propagated” by now, which I guess could be a thing according to another support post I saw.)
It’s on this page:
I’d love to know your thoughts!
- This reply was modified 7 months, 1 week ago by DataLife.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to MailchimpOr can I just skip using Dynamic Text Field and use this for CF7:
[hidden mc4wp-unique-link]
with
// Add unique link to Contact Form 7 form data function add_unique_link_to_cf7_data($form_data) { $email = $form_data['your-email']; $unique_link = generate_secure_link($email); $form_data['mc4wp-unique-link'] = $unique_link; return $form_data; } add_filter('wpcf7_posted_data', 'add_unique_link_to_cf7_data');
or should we use this
// mc4wp_form_data method function add_unique_link_to_cf7_data($form_data, $form_id) { if (isset($form_data['EMAIL'])) { $email = $form_data['EMAIL']; $unique_link = generate_secure_link($email); $form_data['UNIQUELINK'] = $unique_link; } return $form_data; } add_filter('mc4wp_form_data', 'add_unique_link_to_cf7_data', 10, 2);
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] CF7 Custom Fields not going to MailchimpThank you for your guidance on prefixing the custom field name with “mc4wp-” to send the data to Mailchimp.
However, after making the changes, the unique link is still not being sent to Mailchimp along with the form data.
I have implemented the following changes:
- Updated the PHP code to use the prefixed field name “mc4wp-unique-link”.
- Updated the Contact Form 7 form configuration to use the prefixed field name.
- Ensured that a corresponding custom field with the same prefixed name exists in my Mailchimp list.
- did “Refresh List” in mc4wp settings.
I switched the relevant CF7 form function to DYFCF7_get_custom_field So currently it looks like this:
<label> Your Name (required) [text* your-name akismet:author autocomplete:name] </label> <label> Your Email (required) [email* your-email akismet:author_email autocomplete:email] </label> [dynamichidden mc4wp-unique-link "DYFCF7_get_custom_field key='mc4wp-unique-link'"] [mc4wp_checkbox] [submit "Subscribe"] [response]
I also updated the PHP to match and it’s genering the hash just fine (it’s stored in Flamingo)
I also chatted with Mailchimp API support and they said that “it seems like the unique link field is being sent over, but it’s showing blank. Where is that field’s data coming from.”
So maybe mc4wp is sending data to Mailchimp before it’s being added to the CF7 data?
Could you please provide further assistance in troubleshooting this issue?
I appreciate your support.
Edit: also you didn’t mention that while the field name on the form should be mc4wp-unique-link, it should remain unique-link on Mailchimp aka NOT MATCHING. Took me awhile to figure it out. Can you make sure this part is right?
[dynamichidden mc4wp-unique-link "DYFCF7_get_custom_field key='mc4wp-unique-link'"]
Best regards,
Data- This reply was modified 7 months, 1 week ago by DataLife.
- This reply was modified 7 months, 1 week ago by DataLife.
- This reply was modified 7 months, 1 week ago by DataLife.
- This reply was modified 7 months, 1 week ago by DataLife.
- This reply was modified 7 months, 1 week ago by DataLife.
- This reply was modified 7 months, 1 week ago by DataLife.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Field data not passed to MailchimpI have the same exact issue, Contact Form 7 is being “Mailchimp-ized” by MC4WP. I can see the custom field data in Flamingo, but it doesn’t appear in Mailchimp — only the email and name.
I’ve refreshed the list in MC4WP and it sees it just fine (has for about 6 hours). I might start a new thread with more details.
Okay, I have GA4 setup with Site Kit…. so it’s collecting all the best data (including Enhanced eCommerce etc) but I just have to view it on the website and not in my dashboard?
- This reply was modified 1 year, 8 months ago by DataLife.
Okay so it seems that it’s setup correctly, so my other question remains… am I getting the best data possible with Site Kit? Thanks!
Also am I getting full analytics/data on my GA4 when using Site Kit, or is it restricted in any way? I’m on an eCommerce site and read some previous thread about certain features not being supported in Site Kit.
Thanks!
Or maybe it removed the Ads conversion ID because I’m using GA4? (Probably not) @adamdunnage
- This reply was modified 1 year, 8 months ago by DataLife.
I 100% did this, however I don’t see it right now, and I don’t see the option to add it based on your instructions either. The code I entered began with AW-.
Did Site Tag remove it because I connected Tag Manager?
Hi Adam,
Are you saying that I can’t use Site Kit if I want to track ad conversions?
- This reply was modified 1 year, 8 months ago by DataLife.