With some extra setup and knowledge of coding HTML form elements, you can set your MailChimp signup form to track which webpage your subscribers are on when they sign up to your list. Tracking signup locations is a good way to learn more about your subscribers and identify which pages of your website or blog generate the most interest from your audience. In this article, you’ll learn how to add a hidden field to a list and modify your embedded signup form to start tracking signup locations.
In this article:
Add a hidden field and copy form code
- Navigate to the
Lists page, then click the drop-down menu to the right of the
Stats button for the list you want to work with and select
- Select the
General forms option.
- Make sure Signup form is chosen from the Forms and response emails drop-down menu and confirm you're on the Build it tab.
- On the
add a field tab to the right of the signup form, click the
Text option to add a text field to the form.
- Under the field settings tab on the right, name the field and create a merge tag in the field tag box.
- Check the
Hidden box to keep the field from appearing on the form your potential subscribers will see.
- Click the
Signup forms link at the top of the page and select
- Select a
form option and copy the embed code from the Copy/paste onto your site text box.
Add tracking to embed code
After you’ve copied your form’s code, you’re ready to modify the value and input type for the hidden field in your signup form. This code connects to the merge tag field you set up for the hidden field in your list so MailChimp can pass signup location information back to your list.
Paste the signup form embed code into your HTML or text editor.
Find the code for the form's subscribe or submit button. Use Control+F or Command+F on your keyboard to search the code automatically.
Add the following code before the </div> tag that closes the code for your submit or subscribe button:
<input type="hidden" name="SIGNUP" id="SIGNUP" value="blog" />
Make sure that the name and id match the name you gave the merge tag for the hidden field in your list.
Your code should look something like this:
- Within the quotation marks for the
Value attribute, change the text to match the page where you’ll place the code. Below is an example of how this might look for an ecommerce page:
<input type="hidden" name="SIGNUP" id="SIGNUP" value="ecommerce_page" />
Add the modified signup form code to the page you want to track. Repeat these steps for each page you want to track. Be sure to change the Value attribute for each page so that each has a unique code that can be tracked.
Test your signup form
Test each of your modified forms by filling them out completely and signing up for your list. Once you've confirmed your subscription to the list, use the Search function to find your email address within the account. Check Subscriber details on the subscriber profile. Signup location information will display next to the field name.
Because email addresses can only be subscribed to the same list once, you need to test using different email addresses for each page or you can delete the email after each subscribe test.
|Was this article helpful?||
|What can we do to improve your experience with articles like this?|
At this time, we are unable to reply to any responses,but we'll use this information to keep the site up-to-date.