Track subscriber signup locations to identify which pages on your website generate the most interest from your users. To do this, you'll add a hidden field to your signup form and update the embedded signup form on your site.
Below, you'll learn how to track signup locations with MailChimp's embedded signup forms.
Add a Hidden Field
- Navigate to the Lists page.
- Click the drop-down menu next to the list you want to work with, and choose
- Choose Signup form from the Forms and response emails drop-down menu and navigate to the Build it tab.
- On the
add a field tab, click
- On the field settings tab, input a field name and merge tag for the field.
- Under field visibility, click
- Click Save Field.
Get the Embed Code
Now that you've updated your form, you need to get the HTML you'll use on your site. To copy the form's embed code, follow the steps below.
Signup forms in the navigation bar.
- Choose a
form option: Classic, Super Slim, or Naked.
- Highlight all the code in the Copy/paste onto your site field and use your preferred method to copy it to your clipboard.
Modify Embed Code
You'll need to make one more change to your embedded form code before you're ready to post it on your site. For everything to work correctly, modify the value and input type of the hidden field you created.
Paste the signup form embed code into your preferred HTML or plain-text editor.
Use Control+F or Command+F on your keyboard to search the code for "submit" to find the submit button on your form.
At the end of the code for your submit button, add the following code before the </div> tag.
<input type="hidden" name="MERGETAG" id="MERGETAG" value="blog" />
The name and id values need to match exactly the values you defined when you created your hidden field in the Form Builder. Your code should look something like this.
In the quotation marks for the value attribute, type in the form location. For example, if you embed this form on an e-commerce page, you might input "value="ecommerce_page":
<input type="hidden" name="SIGNUP" id="SIGNUP" value="ecommerce_page"/>
- For each page you want to track, duplicate your signup form embed code and alter the input type value to match where you'll place the form. Make sure each location's value is unique.
Test Your Form
To test each of your forms, fill them out completely and submit the form. Use different email addresses for each test, or delete the new subscription after you verify the form works properly. After you've confirmed your subscription, search MailChimp for your subscriber profile and look for the location information next to the field name. If everything is set up correctly, you should see the value you set for each form on each profile you set up.