Are You Frustrated With Your Blog Or Website?

Do you want to start a blog but don't know how? Let me show you! Or do you have a blog that you want to do more with? Let me help! Is all your time taken up with maintenance and you wish you could concentrate on the writing? Let me reclaim your time!

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.

STEP 1:

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?”.

STEP 2:

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


var formData = function() {
    var query_string = (location.search) ? ((location.search.indexOf('#') != -1) ? location.search.substring(1, location.search.indexOf('#')) : location.search.substring(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]) {
              document.write(elements[key]);
            } else {
              document.write("");
            }
        }
    }
}();

STEP 3

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.

Subscribe to My Newsletter
Income Blogging Guide Blueprint Get your FREE
95 Page
Income Blogging Guide Blueprint when you subscribe today!
Name: 
Email: 
 
View Comments to How To Add Subscribers Name Or Email To Your Thank You Page
  1. Joel
    October 19, 2009 | 9:15 am

    Glad you found it useful.

  2. Ravi Kuwadia
    October 16, 2009 | 8:55 am

    Hey Joel,

    Adding the Thank You page seems like a wonderful idea as it will help us out in making a good relationship with the clients.

    Thanks for this coding. Appreciated.

Leave a Reply

You must be logged in to post a comment. Click here to log in.

Trackback URL http://blogtechguy.com/818/how-to-add-subscribers-name-or-emailto-your-thank-you-page/trackback/
blog comments powered by Disqus
Joel Williams

Joel Williams

Blog Tech Guy

Taking care of the
technical side of blogging!