Do you want to group your e-mail subscribers based on the page they have subscribed from? For example, you may want to know if the subscriber signed up using your newsletter popup or from one of your product pages. In the latter case, you may want to place them into a dedicated group for that product category.
To add a subscriber to a hidden group automatically, follow these steps:
Step 1: Create your MailChimp Group
- In MailChimp, go to Lists, and select the list you want to work with
- Select Manage Subscribers – Groups
- Click Create Groups
- Select “Don’t show these groups on my signup form”
- Fill out your group details and click Save
Step 2: Find the name of the MailChimp group
- Go to Signup forms – General forms
- In the form preview, find the section containing your hidden group fields:
- Place your mouse over one of the checkboxes, right-click, and select Inspect. You will see the source code for that element. Find the nearest
<input>
element, and locate the name attribute. Make a note of the value, for example,group[1234][1]
. That is the name of your group. - Repeat the process for any other groups
Step 3: Add a hidden form field to your signup form
- Open up your signup form HTML in the editor
- Add a hidden field inside the <form> element (make sure to replacegroup[1234][1] with your group name):
<input type="hidden" name="group[1234][1]" value="1"> <!-- "Blog" group -->
- If you want to subscribe your users to multiple groups, just add more <input> fields: one for each group.