Increase the count of new subscribers for your blog or website by using MailChimp and some professional subscription form.
Email marketing is still one of the best ways to drive traffic to your website. You can use this WordPress plugin to add a MailChimp subscription form below your blog, right in your articles or on other places using the widget. The Ajax technology takes care about that visitor doesn't have to leave your website while the form data gets submitted. The idea for this plugin came up because I created a new mailing list for my website. By using the RSS-driven campaign feature from MailChimp, it's possible to send new blog posts to my website's subscribers.
Check the features:
- Add the subscription form to any page or post by using a shortcode or just include for all blog posts
- Add the form into your blog's sidebar using the widget
- Double opt-in is supported
- Using nonces for simple form value validation
- The visitor stays on your website while submitting the form data
- You can change/translate all plugin text by using a localization tool
- The form HTML is compatible with the Bootstrap CSS framework (v3)
- Optional: use the CSS style-sheet included with the plugin
- Track succesfully submitted forms in Google Analytics and Clicky
- The plugin includes JS and CSS files only if the form is present (there is also an option to include these files sitewide)
There are several other plugins with a similar function, but I think my approach is better to get more subscriptions. To use this plugin you need a working MailChimp account, a fully configured mailing list and a MailChimp API key. Click here to open a free MailChimp account (good for 2000 subscribers and 12000 emails/month).
The subscription form doesn't work, the first name isn't passed to the MailChimp list
Compare the merge fields you're using for the plugin settings and for your MailChimp mailing list. They need to be identical, use only the characters between the pipe symbols (|), check the MC manual for information how to add additional merge fields
How to add a manual goal in Clicky?
If you use a Clicky premium plan it's possible to track Goals.
- In Clicky, visit: Goals > Setup > Create a new goal.
- Enter a name for the goal
- Check the "Manual Goal" checkbox and click Submit
- Copy/paste the ID into the corresponding field on the plugin options page
I get an fatal error during plugin activation
The Mailchimp wrapper class is written for PHP5 and doesn't work for old and unsafe PHP versions. The error is related to the namespace declaration at the top of the class script. To solve that error, you need to move to a better webhost which supports PHP5.3x or higher.
- Updated the Mailchimp API wrapper for the current version (v3)
- The plugin is tested for WordPress 4.8.1
- You can choose now to use the double-optin feature or not
- Enabled the namespace declaration for the Mailchimp wrapper class because it's needed! There are other plugins using the same MC wrapper and without the namespace declaration you will end up in a fatal error (check the FAQ if you have you're using an old PHP version).
- Moved the titel (H3) and description text into the form tags
- The plugin is tested for WordPress 4.4.2
- Updated the Mailchimp Wrapper class to support the Mailchimp APIv3
- jQuery shows a warning (in the console only) because of the form field "email" type and the "invalid" title atttribute used as default or info. This is fixed by using the "text" type instead.
- Fixed also the (Dutch) language files...
- The form short code has two new attributes: title and description
- There is a new option to include the JS/CSS files on all pages.
- I changed the HTML for the shorcode for fws-subscribeform-msg (div to p)
- Removed the namespace declaration inside the Mailchimp wrapper class (for backward compatibility with PHP 5.2)
- The plugin is tested for WordPress 4.2
- To improve your site's speed, the JS file is loaded now in the footer section
- Added a working .pot file for translations
- The object name used for wp_localize_script is changed because of possible conflicts with other plugins or themes.
- Fixed some typo's and changed some information
- Moved some PHP files into the new "includes" directory
- Added a new screenshot for the widget
- Added the subscription form widget
- It's possible now to translate the complete plugin
- Initial release
The quickest method for installing the MailChimp subscription form is:
- Automatically install using the built-in WordPress Plugin installer or...
- Upload the entire
mailchimp-subscription-plusfolder to the
- Activate the plugin through the 'Plugins' menu in WordPress.
- Enter your MailChimp API key, the mailing list ID and the other options on the plugin settings page.
- Add the shortcode [FWSSubscriptionForm] into the page of your choice or enable the form for all blog posts.
Settings for the MailChimp Subscription Plus plugin.
MailChimp Subscription Plus plugin." alt="Screenshot 1">
An example how the subscription form looks like.
Subscription form widget (Made together with the theme called "The Bootstrap")