Add Subscribed Contacts to Groups
Groups let you ask subscribed contacts to categorize themselves based on common interests or preferences. You can use group data to help you send targeted campaigns.
Get the job done with a pro
From training to full-service marketing, our community of partners can help you make things happen.
Instead of manually adding your new subscribers to groups, you can save time by editing your signup form to automatically assign them to a preselected group. Preselected groups are available only for the embedded signup form and advanced mode, because the process requires you to edit HTML and create several different versions of the same form.
For example, if you have different sites for your German-, French-, and English-speaking customers, add a language group category to your audience, with German, French, and English group names. You’ll modify your form code so new subscribers from each site will be automatically added to the right language group when they sign up. Later, you can target each group with content that’s most relevant to them.
In this article, you'll learn how to modify your form’s HTML code to automatically add subscribers to a group in your audience when they sign up.
To get started, you’ll need to create a group in your Mailchimp audience with checkboxes.
Now, you’ll modify your embedded signup form code to make sure new subscribers are automatically added to the right group.
This process differs depending on whether you want to make your group visible, or keep it hidden from subscribers.
After you've created your checkbox group, follow these steps to modify your form code.
<ul><li><input type="checkbox" value="8" name="group[01245][8]" id="mce-group[01234]-01234-0" checked><label for="mce-group[16521]-01234-0">English site</label></li>
Repeat these steps for each page where your embedded signup form appears, and modify group code as needed.
To get started, create a visible checkbox group in your audience, or unhide an existing checkbox group. Later, when you’re done modifying your form code, you can hide the group.
Follow these steps to modify your form code to automatically submit your group choices.
To hide groups on your embedded form, find the \div> container with the group code, and add the following code inside the opening \div> tag.
style="display:none"
Locate the <input> tag for the group you want subscribers to be added to. Add the word checked just before the closing bracket to force the form to check the box for your hidden group. Your code should look something like this.
<ul><li><input type="checkbox" value="8" name="group[01245][8]" id="mce-group[01234]-01234-0" checked><label for="mce-group[16521]-01234-0">English site</label></li>
Repeat these steps for each webpage where your embedded signup form appears, and modify the code as needed. Then, be sure to hide the group in the Form Builder as well so it doesn’t appear on any new forms you create.
Technical Support
Have a question?
Paid users can log in to access email and chat support.
Groups let you ask subscribed contacts to categorize themselves based on common interests or preferences. You can use group data to help you send targeted campaigns.
Use groups to let contacts categorize themselves based on their interests and preferences.
These cookies are strictly necessary to provide you with the services and features available through our site. Because these cookies are strictly necessary to deliver the site, you cannot refuse them without impacting how the site functions.
These cookies are used to enhance the functionality and performance of the site. They help us to customize the site and application for you in order to enhance your experience. While these cookies are not needed for a basic website experience, certain functionalities such as personalization and video would become unavailable.
These cookies are used to make advertising messages more relevant to you and your interests. They also perform functions like preventing the same ad from continuously reappearing, ensuring that ads are properly displayed, and in some cases selecting advertisements that are based on your interests.
These cookies collect information to help us understand how the site is being used or how effective our marketing campaigns are. They help us to know which pages are the most and least popular and to see how visitors move around the site. These cookies may be set by us or by third-party providers whose services we have added to our pages.