Making money online with affiliate links?网上赚钱与子公司的联系? Here’sa quick and dirty way to cover your tracks and push more visitors to your affiliate pages which will ultimately result in a few extra sales.下面快速和肮脏的方式,以支付您的跟踪和推动更多的访客到您的附属网页,最终将导致一些额外的销售。 I’m going to show you how this is possible using a simple PHP script.我要告诉你如何这是可能使用简单的PHP脚本。

Create a file called products.php (you can name it something else but if you do make sure you change it where applicable in the parts below).创建一个名为products.php (您可以将它命名别的但是如果你一定要改变它在适用情况下在部分下文) 。 Now put something like this in it and change the URL’s to be whatever you want.现在把这样的事情在它并更改网址的是什么你想要的。 You may need to create more elseif statements if you have a lot of affiliate links.您可能需要创造更多的elseif的声明,如果您有很多的分公司联系。 Also make sure you put this code before ANY html for it to work, otherwise you’ll get a “headers already sent” error.也请务必把此代码之前,任何HTML为它工作,否则,你会得到一个“的标题已经发出”错误。

  1. <?php
  2. if ( $go == product1 ) { //you can name "product1" anything, again make adjustments in your code later.
  3. $thislink = "http://affiliatesitelink.com/cars.php" ;
  4. }
  5. elseif ( $go == product2 ) {
  6. $thislink = "http://affiliatesitelink.com/moneonline/" ;
  7. }
  8. elseif ( $go == product3 ) { //just add more "elseif" statements for more products
  9. $thislink = "http://affiliatesitelink.com/loans.html" ;
  10. }
  11. else ( $go == product4 ) { //note I end with a plain "else"
  12. $thislink = "http://affiliatesitelink.com/ebook.asp" ;
  13. }
  14. //Now the redirect
  15. header ( ‘Location: ‘ . $thislink ) ; $ header ( ‘Location: ‘ . $thislink ) ;
  16. ?>

Mod Rewrite & .htaccess现代重写& 。 htaccess

Technically you could call links up now by doing http://domain.com/products.php?go=product1 or http://domain.com/products.php?go=product2 ect.从技术上讲你可以请联系现在这样http://domain.com/products.php?go=product1http://domain.com/products.php?go=product2等。 Why stop there?为什么要停止呢? If your server has mod_rewrite enabled (very likely it does these days) you can put something like this in a .htaccess file and upload it to your root directory:如果您的服务器已经启用mod_rewrite (很可能它这些天) ,您可以把这样的事情了。 htaccess文件,并把它上传到你的根目录:

  1. Options FollowSymLinks
  2. RewriteEngine on
  3. RewriteRule products / ( .* ) / ?$ / products . php?go = $ 1

Note there is a space after the ‘$’.请注意,是一个空间后, ' $ ' 。 After this is in place you should be able to call up the affiliate redirect with a link like this:之后,这是在您应该能够调用子公司重新连结这样的:
http://domain.com/products/product2/ (with or without the slash) http://domain.com/products/product2/ (有或没有的斜线)

Affiliates Links VIA ClickBank联营公司的联系通过ClickBank

If you promote something like ClickBank products on your site there’sa similar way to cover your tracks.如果你想推动一些ClickBank产品在您的网站上有类似的方式,以支付您的轨道。 This ones even quicker as we already know what to expect from each URL.这甚至更快的我们已经知道什么期望从每一个网址。 Its consistent every time except for one thing.其一贯每次除了一件事。 (two if you use their built in sales tracker) (二如果你使用内置的销售跟踪)

  1. <?php
  2. $cbid = "yourcbid" ; //put your clickbank ID here
  3. $affiliate = "http://" . $cbid . "." . $affiliateid . ".hop.clickbank.net/?tid=" . $tid ;
  4. header ( ‘Location: ‘ . $affiliate ) ; $ header ( ‘Location: ‘ . $affiliate ) ;
  5. ?>

Three lines…not too bad.三线...不算太糟糕。 Again make sure its the first thing at the top of the page.再次确认其的第一件事在页面顶部。 Your content in the page will not matter at all (after the header redirect is ent it doesn’t read anything else).您的内容的网页将不会在所有问题(后头重定向是入口不读别的) 。 Your resulting link would look like this:您造成的链接看起来像这样:
http://domain.com/products.php?go=affiliateid&tid=3 http://domain.com/products.php?go=affiliateid&tid=3

Your .htaccess rewrite rule will look something like this:您的。 htaccess重写规则将看起来就像这样:
RewriteRule products/(.*)/(.*)/?$ /products.php?go=$1&tid=$2 RewriteRule产品/(.*)/(.*)/?$ / products.php ?去= 1美元和3次= 2元
Then you can call the link up using this:然后,您可致电联系起来,利用这一点:
http://domain.com/products/affiliateid/3/ http://domain.com/products/affiliateid/3/
You can do this with any affiliate link service that has a standardized way of linking to the products in their database.为此,您可以与任何附属链接服务,有一个标准化的方式结合起来的产品在其数据库。

The Logic Behind “Blind Folding” Affiliate Links背后的逻辑“盲折叠”分公司联系

The way I see it is the visitor eventually will realize the link has directed them to another site.我的看法是游客最终将实现链接已经指示他们前往另一地点。 However, they are more likely and willing to check out that offer if you have provided them a link that appears to go to another page on your own site.然而,他们更可能愿意退房,提供如果您已经为他们提供一个链接,似乎到了一个新网页上自己的网站。 Half the battle is getting them through the door so they can truly determine if that product interests them.一半的战斗是让他们通过大门使他们能够真正确定是否认为他们的产品利益。 If they didn’t click on the link they would have never known what they were missing if that visitor turns into a sale.如果他们不点击下面的链接,他们将永远不会知道他们失踪如果访问者变成了出售。 Using something like TinyURL.com appears as a dodgy link to your visitors as I mentioned in Wrong Turn TLA - TinyURL Covering your Affiliate Links .用什么样TinyURL.com出现在躲闪链接到您的访客正如我在错误转向顶级聚类-T inyURL覆盖您的会员链接。 If for nothing else it is a great way to log your visitors and track who clicks on what if you implement that with an SQL DB.如果没有别的这是一个伟大的方式记录您的访客,并跟踪谁点击的,如果你说执行与一个SQL数据库。 Which brings me to the topic.这使我的主题。

If you’re really clever you’ll use some mySQL and can generate usage reports by including a simple ADD query in your products.php code.如果你真的聪明的你会使用一些MySQL和可以产生的使用报告,包括一个简单的地址查询您的products.php代码。 This could give you insight into the behavior of your users since ClickBank doesn’t tell you how many times a person clicked through each link.这可以让您深入了解行为的用户自ClickBank不告诉你多少次一个人通过点击每一个环节。 Then its just a matter of creating a simple form and/or query page to show the usage for each.然后,它只是一个时间的问题创造一个简单的形式和/或查询网页,以显示每个使用。 But that’s another day.但是这一天。 If this is something you’re interested in seeing then comment on this page and I’ll make sure I write up a post on it sometime.如果这是您感兴趣的评论看到然后在此网页上,我会确保我写了一个职位上的某个。


3 Trackback(s)第3引用(星期日)

  1. Sep 7, 2007: Web 2.0 - The Ten Critical Affiliate Strategies | www.bestdocsite.org 9月7日, 2007 : Web 2.0的-批判的十大策略联盟| w ww.bestdocsite.org
  2. Sep 8, 2007: Sweet Gain » Blog Archive » Link Storm -V- 9月8日, 2007年: 甜增益» blog存档»链接风暴的V -
  3. Mar 6, 2008: » Plugins and tools to help with SEO and affiliate sales > FiddyP 2008年三月6日 » 插件和工具,以帮助搜索引擎优化和附属销售“ FiddyP


3 Comment(s) On第3评论(星期日)在

"Increase Affiliate Income - Blindfolding Your Links" “增加会员收入-蒙住双眼您的链接”
  1. MyAvatars 0.2 Andy Bailey - Sep 8, 2007 安迪贝利 -9 月8日, 2 007

    Excellent simple script, I especially like how you use htaccess to use it.优秀的简单脚本,我特别喜欢您如何使用htaccess使用它。 nice好的

  2. MyAvatars 0.2 Patches and Hacks - Sep 18, 2007 补丁和技巧 -9 月1 8, 2 007

    This is a great post but if you don’t want to write or modify php code or htaccess rules every time you want to add or change an affiliate link and you’re using wordpress you might want to look into my new plugin that will let you manage all those links from a nice web interface inside wordpress admin:这是一个伟大的职位,但如果你不想写或修改PHP代码或htaccess规则每次要新增或变更的分支机构联系和您使用WordPress的您可能要考虑我的新插件,让您管理所有这些联系从一个漂亮的网页介面内WordPress的管理:
    Here is where you can find out more about this free plugin:在这里你可以找到更多有关此免费插件:
    http://patchlog.com/wordpress/hidden-affiliate-links/ http://patchlog.com/wordpress/hidden-affiliate-links/

  3. MyAvatars 0.2 Rob - Sep 18, 2007 罗布 -9 月1 8, 2 007

    That plug-in looks great, but this tutorial is also for use on sites that don’t run wordpress这插件看起来不错,但本教程也是使用的网站上,不运行WordPress的 : )



Leave A Comment:发表评论:

Comments RSS Feed 评论RSS馈送

6 Minus 3 = 负3 =

Custom Theme by Rob Malon | Content & Design © 2008 - Rob Malon [dot] Com. 自订主题罗布丙二|内容与设计© 2008 -罗布丙二[斑点]通信。 "));
"));