Add variables to redirect URL

You can pass variables from your form to the page your form redirects to. This way you can, for example, thank subscribers by name after they've succesfully filled in your form.

Display name of subscriber after succesful form submission

To do this, use one of the variables we've listed for you on the Edit form page and add it to the redirect URL, like so:

http://url.com/?fname={data key="FNAME"}

Add the link to Redirect to URL after successful sign-ups under MailChimp Settings.

Add variables to redirect URL - MailChimp for WordPress

Once you've hit Update Form, the data you've selected will be passed through to the page of your choosing. Please be aware that WordPress has a list of reserved terms that you cannot use in your link.

Retrieving the variables in a page

By default, WordPress does not allow you to pass variables through URL's. This means some extra work is needed if you want to retrieve the data you've passed through the redirect URL.

Luckily, a plugin exists that will help you surpass this default setting. Install the (free) URL Params plugin from WordPress.org. You'll then be able to use shortcodes in your page to display the variables from your form.

For example: if we want to add a friendly thank you message to a new subscriber reminding them to check their email for a confirmation message, we would add the following in the thank you page:

Hey [urlparam param="fname" default="" /], thank you for subscribing!

Please check your email [urlparam param="email" default="" /] for a confirmation message!

We're working on something awesome

You'll be glad to know we're working on improving this functionality in the near future.

Keep an eye out for our newsletter (or subscribe to it if you haven't yet)!

Was this article helpful? ·