Automatically Add Subscribers to a Group at Signup
by Intuit• Updated 2 months ago
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.
- 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.
- 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.
- Click Audience.
- Click Audience dashboard.
- Click the Manage Audience drop-down and choose Signup forms.
- Scroll to the Embedded forms tile and click Embedded forms.
- Enter a form name, then click the Audience drop-down and choose the one you want to work with.
- Click Begin.
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.
<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.
I don't want my contacts to see the group options.
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.
- Click Audience.
- Click Audience dashboard.
- Click the Manage Audience drop-down and choose Signup forms.
- Scroll to the Embedded forms tile and click Embedded forms.
- Enter a form name, then click the Audience drop-down and choose the audience you want to work with.
- Click Begin.
- 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 openingtag.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.
Sign in now for personalized help
See articles customized for your product and join our large community of QuickBooks users.
More like this
- Manage International Subscribers in Mailchimpby QuickBooks•Updated September 04, 2024
- Stay Compliant with the Canada Anti-Spam Law (CASL)by QuickBooks•Updated September 04, 2024
- Use Groups to Find Subscriber Preferencesby QuickBooks•Updated September 04, 2024
- Getting Started with Groupsby QuickBooks•Updated August 19, 2024