How To Add Subscribers Name Or Email To Your Thank You Page

For a few clients I have set up their AWeber email subscription thank you page to show the subscribers name and, if they want, email address.

Now this is something I actually don’t do myself on my own blog as I use my thank you page in a variety of different ways, but it’s a pretty neat way of customizing/personalizing your thank you page, or even your confirmation page.


For Thank You Page: When creating a web form, make sure you check the box that says
“Post CGI Variables to the thank you page?”
This essentially allows the Name and Email information (plus any other custom fields) to be sent to your thank you page.

For Confirmation Page: Go to My Lists > Confirmed Opt-in and under Confirmation Success Page, as well as entering a URL, check the box that says “Pass Subscriber Info?”.


In the <head> section of your thank you and/or confirmation page, place the following javascript.

var formData = function() {
    var query_string = ( ? (('#') != -1) ?,'#')) : : '';
    var elements = [];
    if(query_string) {
       var pairs = query_string.split("&");
       for(i in pairs) {
          var tmp = pairs[i].split("=");
          elements[unescape(tmp[0])] = unescape(tmp[1]);
    return {
        display: function(key) {
            if(elements[key]) {
            } else {


It’s easy now. When writing your message on the page, put:

<script type="text/javascript">formData.display("name")</script>

where you want the name to appear. Change the word name to from to display the email address. Hopefully it all works!

You can find all the official resources on AWeber, here, here, and here.

4 thoughts on “How To Add Subscribers Name Or Email To Your Thank You Page”

Leave a Reply