Automatically Add Subscribers to a Group at Signup

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.

Before You Start

This process requires you to update HTML code in your embedded signup form and on your website. Contact your developer, or hire a Mailchimp Expert if you need assistance.

Create Your Group

To get started, you’ll need to create a group in your Mailchimp audience with checkboxes.

Modify Your Form Code

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.

I want my contacts to see the group options
If you make your group viewable, it’ll be selected by default on the signup form. Subscribers will have the option to remove themselves from your group or choose a different one before they sign up.

I don't want my contacts to see the group options If you want to hide your group, it’ll be selected by default at signup, but subscribers won’t be able to see it or deselect it. This option is helpful if you know their group assignment isn’t going to change.

I want my contacts to see the group options

After you've created your checkbox group, follow these steps to modify your form code.

If you have more than one audience, click the Current audience drop-down and choose the one you want to work with.

Click the Manage Audience drop-down and choose Signup forms.

Select Embedded forms.
Choose either the Classic or Unstyled embedded form, and copy and paste the form code into your website.

Locate the <input> tag for the group you want subscribers to be added to automatically. Add the word checked just before the closing bracket to force the form to check the box for your group. Your code should look something like this.

If you have more than one audience, click the Current audience drop-down and choose the one you want to work with.

Click the Manage Audience drop-down and choose Signup forms.

Select Embedded forms.

Choose either the Classic or Unstyled embedded form, and copy and paste the form code into your website.

To hide groups on your embedded form, find the

container with the group code, and add the following code inside the opening

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.

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 another question? Paid users can log in for email or chat support.

Was this article helpful?

Yes

No

Awesome! Can you tell us more about your experience today?

It was easy to find what I was looking for.

I could easily scan a help article to find the information I needed.

The help articles are easy to read.

The help articles helped me resolve my issue.

Mailchimp is easy to use.

I just love Mailchimp!

Other.

Sorry we couldn't be more help. Can you tell us about your experience today?

The help articles don't make sense.

I wish there was a video that showed me how to do this.

What I'm trying to do in Mailchimp doesn't work the way I think it should.

It was hard to find what I was looking for.

I never found what I was looking for at all.

I have to contact Support to resolve my issue (for example, an account or billing problem).