Forum

Thread tagged as: Problem, Addons, MailChimp

Mailchimp App Groups

https://kb.mailchimp.com/lists/groups-and-segments/add-groups-to-a-list

I am attempting to get mailchimp addon to add users to different group and have been unsuccessful. Is this possible? Can you give direction?

Thanks!

Jason Brooks

Jason Brooks 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I don't understand the question, what have you tried?

Mailchimp has an option for "groups" the mailchimp form code (from mailchimp) looks like this:

<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
    #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
    /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
       We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="//intelivate.us10.list-manage.com/subscribe/post?u=f9dc199dbb52151ab77301a3c&amp;id=d60158bd3d" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div id="mc_embed_signup_scroll">
    <h2>Subscribe to our mailing list</h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
    <label for="mce-NAME">Name </label>
    <input type="text" value="" name="NAME" class="" id="mce-NAME">
</div>
<div class="mc-field-group">
    <label for="mce-EMAIL">Email Address  <span class="asterisk">*</span>
</label>
    <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
    <label for="mce-MMERGE1">Image URL </label>
    <input type="url" value="" name="MMERGE1" class=" url" id="mce-MMERGE1">
</div>
<div class="mc-field-group input-group">
    <strong>Identifier </strong>
    <ul><li><input type="checkbox" value="1" name="group[5365][1]" id="mce-group[5365]-5365-0"><label for="mce-group[5365]-5365-0">Contact</label></li>
<li><input type="checkbox" value="2" name="group[5365][2]" id="mce-group[5365]-5365-1"><label for="mce-group[5365]-5365-1">Talent</label></li>
<li><input type="checkbox" value="4" name="group[5365][4]" id="mce-group[5365]-5365-2"><label for="mce-group[5365]-5365-2">WoS</label></li>
</ul>
</div>
    <div id="mce-responses" class="clear">
        <div class="response" id="mce-error-response" style="display:none"></div>
        <div class="response" id="mce-success-response" style="display:none"></div>
    </div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;"><input type="text" name="b_f9dc199dbb52151ab77301a3c_d60158bd3d" tabindex="-1" value=""></div>
    <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
    </div>
</form>
</div>
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[2]='NAME';ftypes[2]='text';fnames[0]='EMAIL';ftypes[0]='email';fnames[3]='JOBTITLE';ftypes[3]='text';fnames[1]='MMERGE1';ftypes[1]='imageurl';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
<!--End mc_embed_signup-->

The main thing to look at is:

<div class="mc-field-group input-group">
    <strong>Identifier </strong>
    <ul><li><input type="checkbox" value="1" name="group[5365][1]" id="mce-group[5365]-5365-0"><label for="mce-group[5365]-5365-0">Contact</label></li>
<li><input type="checkbox" value="2" name="group[5365][2]" id="mce-group[5365]-5365-1"><label for="mce-group[5365]-5365-1">Talent</label></li>
<li><input type="checkbox" value="4" name="group[5365][4]" id="mce-group[5365]-5365-2"><label for="mce-group[5365]-5365-2">WoS</label></li>
</ul>
</div>

I have attempted setting the "mailer" input property for perch forms to use the mailchimps input attribute "name" and the used the value of mailchimps input as the value for perch's input property. This did not work. It appears that it uses different api calls to define groups with mailchimp...is this not possible with perch?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't think that's going to be possible in the current version. You can pass in mergevars by setting the mailer attribute, but groupings then require the data to be in a very set format, which differs from what you'd get from an HTML form by default.

Thanks, I think we are going to use a 3rd party app like wufoo to accomplish everything we need.