Easy Way to Get Affiliates to Promote Your Squeeze Page, Part 2

Posted by David on in Tips & Techniques |

tt twitter big1 Easy Way to Get Affiliates to Promote Your Squeeze Page, Part 2 tt facebook big1 Easy Way to Get Affiliates to Promote Your Squeeze Page, Part 2

Last year I wrote a blog post about how to get affiliates to promote your squeeze pages, Easy Way to Get Affiliates to Promote Your Squeeze Page — see http://fromthedeskofdavid.com/blog/tips/affiliates-promote-squeeze-page.

It included the instructions and JavaScript code how to capture an affiliate ID and send it to your autoresponder account and store it there for later use during promotions.

It was a popular post and I received a lot of e-mail about it thanking me and asking questions.

Recently I was asked for some help by Fendi on how to make it work with a different format for the affiliate ID.

The way I had originally set it up the affiliate ID had to be in this format: http://YourDomain.com/?[YourCode]=[AffiliateID]

Some examples of the affiliate ID portion would be:

  • aff_id=340987
  • hop=theboss123 (ClickBank)
  • InvitedBy=DavidHusnian

This worked great and covered a lot of ground but Fendi wanted to know if it could work with this format: http://YourDomain.com/?[AffiliateID].

It doesn’t but I’ve made some modifications so that now it does and this post explains those and gives you updated JavaScript source code and instructions.

The first parts of setting this up, the Aweber autoresponder and putting it on the squeeze page parts, remain exactly the same; read about that at Easy Way to Get Affiliates to Promote Your Squeeze Page.; click here to download the JavaScript and instructions.

What’s Changed…

But a ways down that blog post it says “At the bottom of the squeeze page HTML, add the JavaScript code, here is what to add:” is where the difference begins and where I will start…

At the bottom of the squeeze page HTML, add the JavaScript code, here is what to add:

</body>
<script src=”dh-query-string-to-form-field.js”></script>
<script>

/******************************************/
/* Use ONLY one of the two options below, */
/* Delete the other one completely */
/******************************************//**********************************************/
/* Start of Option 1 */
/* This code is used if the links your */
/* affiliates use are like “name=AffiliateID” */
/* like the example below */
/**********************************************/
var dhCookieDuration = 365; // Number of days cookie is valid
var dhCookieName = “”;
var dhFormFieldName = “[*Form Field Name Goes Here*]“;
var dhQueryStringName = “[*Query String Name Goes Here*]“;
var dhUrlToSearch = window.location.href;
/* Examples of values
var dhCookieDuration = 90; // Number of days cookie is valid
var dhCookieName = “affiliateID”;
var dhFormFieldName = “custom AffiliateID”;
var dhQueryStringName = “affiliateID”;
var dhUrlToSearch = “http://www.YourSite.com/?aff_id=DavidH”;
*/
dhPutQueryStringValueInFormField(dhQueryStringName, dhUrlToSearch, dhFormFieldName, dhCookieName, dhCookieDuration);
/*******************/
/* End of Option 1 */
/*******************/
/******************************************/
/* Start of Option 2 */
/* This code is used if the links your */
/* affiliates use are like “?AffiliateID” */
/* like the example below */
/******************************************/
var dhCookieDuration = 365; // Number of days cookie is valid
var dhCookieName = “”;
var dhFormFieldName = “[*Form Field Name Goes Here*]“;
var dhUrlToSearch = window.location.href;
/* Examples of values
var dhCookieDuration = 90; // Number of days cookie is valid
var dhCookieName = “affiliateID”;
var dhFormFieldName = “custom AffiliateID”;
var dhUrlToSearch = “http://www.YourSite.com/?DavidH”;
*/
dhPutQueryStringNameInFormField(dhUrlToSearch, dhFormFieldName, dhCookieName, dhCookieDuration);
/*******************/
/* End of Option 2 */
/*******************/

</script>

</html>

You’ll notice now that there are 2 options, the first is the original option for the http://YourDomain.com/?[YourCode]=[AffiliateID] format and the second option is the new option for the http://YourDomain.com/?[AffiliateID] format.

As the instructions say, delete either option 1 or option 2 depending upon your situation.

Since Easy Way to Get Affiliates to Promote Your Squeeze Page already explains what to do for option 1, I will focus on option 2 and delete option 1, giving:

</body>
<script src=”dh-query-string-to-form-field.js”></script>
<script>

var dhCookieDuration = 365; // Number of days cookie is valid
var dhCookieName = “”;
var dhFormFieldName = “[*Form Field Name Goes Here*];
var dhUrlToSearch = window.location.href;
/* Examples of values
var dhCookieDuration = 90; // Number of days cookie is valid
var dhCookieName = “affiliateID”;
var dhFormFieldName = “custom AffiliateID”;
var dhUrlToSearch = “http://www.YourSite.com/?DavidH”;
*/
dhPutQueryStringNameInFormField(dhUrlToSearch, dhFormFieldName, dhCookieName, dhCookieDuration);

</script>

</html>

You’ll notice I also deleted a bunch of comments too.

Now we need to set just 1 value “[*Form Field Name*]“.

This is set to the name Aweber gave the affiliate ID form field, assuming we did the same as the prior blog post that line would be: <input name=”custom AffiliateID” value=”" size=”20″>

We need to get the name, in this case it is “custom AffiliateID”, yours will be whatever you called your customer field in Aweber.

For our purposes here I’m going to use the affiliate link http://GetYourBonusesNow.com/?DavidHusnian.

Here is the code modified to make that change and removing the remaining comments:

</body>
<script src=”dh-query-string-to-form-field.js”></script>
<script>

var dhCookieDuration = 90; // Number of days cookie is valid
var dhCookieName = “affiliateID”;
var dhFormFieldName = “custom AffiliateID”;
var dhUrlToSearch = window.location.href;
dhPutQueryStringNameInFormField(dhUrlToSearch, dhFormFieldName, dhCookieName, dhCookieDuration);

</script>

</html>

The final squeeze page will look like:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>

<head>

<title></title>

</head>
<body>

<center><form method=”post” action=”http://clients.profollow.com/scripts/addlead.pl”>
<input value=”826957637″>
<input value=”">
<input value=”1-affiliates”>
<input value=”http://clients.profollow.com/form/thankyou_vo.html” >
<input value=”">
<input value=”">
<input value=”1″>
<input value=”from”>
<input value=”0″>
<table>
<tr><td colspan=”2″><center></center></td></tr>
<tr><td>Name:</td><td><input value=”" size=”20″></td></tr>
<tr><td>Email:</td><td><input value=”" size=”20″></td></tr>
<tr><td>AffiliateID:</td><td><input value=”" size=”20″></td></tr>
<tr><td colspan=”2″><center></center></td></tr>
<tr><td align=”center” colspan=”2″><input value=”Submit”></td></tr>
</table>
</form>
<img src=”http://forms.profollow.com/form/displays.htm?id=HExsnKzsbMzs” border=”0″ />
</center>

</body>
<script src=”dh-query-string-to-form-field.js”></script>
<script>

var dhCookieDuration = 365; // Number of days cookie is valid
var dhCookieName = “”;
var dhFormFieldName = “custom AffiliateID”;
var dhUrlToSearch = window.location.href;
dhPutQueryStringNameInFormField(dhUrlToSearch, dhFormFieldName, dhCookieName, dhCookieDuration);

</script>

</html>

Trying it Out!

You can now try it out for yourself in the same way I did previously in Easy Way to Get Affiliates to Promote Your Squeeze Page.

You can see it works and now if a customer clicks the links in your e-mails to purchase it will credit the affiliate with the sale.

So now you can get affiliates to promote to your squeeze pages because you can promise them that any future sales will earn them checks!

Additional Comments

You might have noticed I didn’t mention the 2 new variables dhCookieDuration and dhCookieName.

I had a number of people ask if a cookie could be written with the affiliate ID in it so I added that.

It’s easy to use, just follow these steps:

Set dhCookieDuration to be the number of days you would like the cookie to be saved/valid. For example, if you wanted the cookie to have the affiliate Id in it for 90 days then you’d use: var dhCookieDuration = 90;.

Set dhCookieName to be the name of the cookie, it can be anything but if you don’t know what you want it to be I’d suggest you make it something you’ll remember and will remind you of it’s purpose; something like AffiliateID. If you leave it blank – that default of “” – then it will not create a cookie.

I also included some JavaScript functions to read, write and erase cookies which you can use if you want to manage you Web site’s cookie; like read back the cookie that has the affiliate ID in it.

I’m not going to explain that here but if can’t figure it out and you have questions about how to do that, just leave a comment below.

Conclusion

Again, it is harder to explain than to do but now you can get affiliates to promote your squeeze pages using 2 different formats and with the option of saving a cookie also.

Remember that this ability opens up lots of new channels where you can get prospects from and could really accelerate your success.

So, by just adding one custom field to Aweber and hiding it on you’re the Web forms for your squeeze pages and adding a little JavaScript (which you can download from here) you can do this.

This is so good that I’m been using it myself on every squeeze and sales page I create. I like it and my affiliates like it!

Click here to get the new JavaScript code and instructions.

Just leave me a comment if you have any questions or would like help setting this up on your page.

Talk soon,

signature short Easy Way to Get Affiliates to Promote Your Squeeze Page, Part 2

The “Shameless” (“Ethical”) Marketer

http://www.Twitter.com/DavidHusnian

O.Y. Be sure to download the JavaScript code to insert into your squeeze pages at http://www.FromTheDeskOfDavid.com/FreeStuff/GetAffiliatesToPromoteYourSqueezePage.zip

.

button Easy Way to Get Affiliates to Promote Your Squeeze Page, Part 2

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

9 Comments

Graeme Errington
Mar 24, 2010 at 5:18 pm

David,
This looks excellent, exactly what I need on my new site.

I was looking for a way to add affiliate links into social ‘tell a friend type’ scripts, but I have no idea if this is even possible!

Maybe you just solved the problem with this script.

Thanks!


 
David
Mar 24, 2010 at 5:58 pm

Glad you liked it!

Let me know if you need any help and I’ll see what I can do.

David


 
Graeme Errington
Mar 25, 2010 at 7:12 pm

Thanks David,

You are very kind. I am no programmer but I can normally get by copying code that people say works and then trying it out.

I will definitely add this to my e-courses so all my affiliates have to do is get people to do is sign up for one right?

That should seem easier to people than going for the sale, then hopefully they will be pre sold on the e course.

Graeme

Ps. I have subscribed to some of your other sites and I really like them! :)


 
David
Mar 26, 2010 at 1:38 pm

Graeme,

Let me know if you need help and I’ll see what I can do.

David


 
Graeme Errington
Mar 28, 2010 at 2:56 pm

Just a thought, is there anyway to add code to a facebook fan button? Or Twitter profile widget? So all the affiliate needs to do is promote a facebook page or Twitter profile.

Do you think this is at all possible?

Graeme


 

[...] This post was mentioned on Twitter by DavidHusnian. DavidHusnian said: New Blog post Easy Way to Get Affiliates to Promote Your Squeeze Page, Part 2 http://bit.ly/9Zy24D … [...]


 
David
Mar 30, 2010 at 1:09 am

I really don’t know because I have no experience with it.

But, worst case, if you can put a link you could probably put a “hidden page” in between the link and the destination page (say Facebook) to do it.

What I mean by that is have them promote, say, the Facebook page but do not use a direct link to Facebook but a link a PHP (or other dynamic) page that did something like set a cookie and maybe what’s called a “session variable”.

However, unless there was a desired action by the person who originally clicked the link relatively quickly you’d likely lose the “session” and if they cleared their cookies you’d lose that also.

Still, it might be better than nothing and, if I knew something about coding for things like Facebook, I might be able to suggest a better way.

David


 
Nick Lotter
Aug 20, 2010 at 2:49 am

Hi David,

This is exactly what I have been looking for.

I tried implementing this method as described in your original post about how to get affiliates to promote your squeeze page, but it seems Aweber has changed the look of the HTML code since that post was published, as the code looks different to what is in your post.

Now granted, I am not a programming expert by a LONG shot, but I can’t seem to figure out how to get this code in to make the affiliate ID in the opt in form “hidden”.

Can you help a guy out?

Thanks a stack, great information!!

Nick


 
David
Oct 17, 2010 at 6:42 pm

Hi Nick,

Sorry for the delay… have been having some problems and got pulled into some other things.

It should work exactly the same using the new HTML code as the old code. It works for me.

If you want to post some code I’ll look at it although you may have figured it out by now :-)

David


 

Reply

Copyright © 2012 From The Desk of David All rights reserved. Theme by Laptop Geek.