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.
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.
Glad you found it useful.
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.
Glad you found it useful.