mailchimp tags not working and now won’t subscribe users
-
I have just created “contact form 7” forms on my website using gravity forms.
I have downloaded the Mailchimp for WordPress plugin and have been using the Mailchimp checkbox on all forms with the checkbox already ticked.I added the below code to my functions.php folder as I had read to do that in another thread:
add_filter( 'mc4wp_integration_contact-form-7_subscriber_data', function(MC4WP_MailChimp_Subscriber $subscriber, $cf7_form_id) { if ($cf7_form_id == 64472) { $subscriber->tags[] = 'General'; } else if ($cf7_form_id == 64487) { $subscriber->tags[] = 'Newsletter'; } else if ($cf7_form_id == 64494) { $subscriber->tags[] = 'SEO AUDIT'; } else if ($cf7_form_id == 64496) { $subscriber->tags[] = 'content calender'; } else if ($cf7_form_id == 64497) { $subscriber->tags[] = 'Future of digital marketing - Whitepaper'; } else if ($cf7_form_id == 64498) { $subscriber->tags[] = 'Marketplaces - whitepaper'; } else if ($cf7_form_id == 64499) { $subscriber->tags[] = 'Website Redesign - Whitepaper'; } else if ($cf7_form_id == 64500) { $subscriber->tags[] = 'CEO Social Media - whitepaper'; } return $subscriber; }, 10, 2);
After adding the code, I tested one of the contact forms (id 64472) and then checked Mailchimp – the subscribed email was there with the correct tag (general) – great!
However, when I tested another form (id 64487) using a DIFFERENT email address, and then checked Mailchimp, the contact was nowhere to be found. As well as the previous contact tagged ‘general’ had also disappeared.
I’ve checked in archived and unsubscribed and can’t find the first tester anywhere. Now, none of the forms are sending contacts to Mailchimp.
The forms are working, I know this as I have the “Contact Form Entries” plugin downloaded too.
I do not understand why these are now not linking to Mailchimp at all, I’ve tried multiple email addresses on different forms and none of the contacts are being added to Mailchimp anymore.
ps: I have tried to talk to Mailchimp but their support is terrible unless you’re on a paid plan.
- The topic ‘mailchimp tags not working and now won’t subscribe users’ is closed to new replies.