Support

Home Forums Event Espresso Premium Tagging MailChimp Subscribers

Tagging MailChimp Subscribers

Posted: April 19, 2021 at 10:22 am


bberdahl

April 19, 2021 at 10:22 am

I have seen several customers ask for the ability to add tags to MailChimp when users signup through the EE ticket form. Tony was the support agent that answered the ones I read, and offered a hook to add the tags, but I never saw the actual hook to use for this purpose. Can you provide the hook to use for adding tags to the MailChimp subscriber using your plugin?


Tony

  • Support Staff

April 20, 2021 at 6:21 am

Hi there,

You can use a filter we have on the subscribe args for this:

FHEE__EE_MCI_Controller__mci_submit_to_mailchimp__subscribe_args

So something like:

https://gist.github.com/Pebblo/66f1bcd1963c4a473a156c2fb058eac6

Would 'Test 1', 'Test 2', 'Test 3' tags to your list and any new subscribers would have those tags set on them. Rather than hardcoding the tags, it would likely be better to use a custom field on the event and then pull those values into the above.

What the above hook can not be used for, is updating tags on a current subscriber, it will only work for new subscriptions.

Is that what you are looking for?

The support post ‘Tagging MailChimp Subscribers’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Do NOT follow this link or you will be banned from the site!