<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Danger Brown &#187; affiliate links</title>
	<atom:link href="http://dangerbrown.com/tag/affiliate-links/feed/" rel="self" type="application/rss+xml" />
	<link>http://dangerbrown.com</link>
	<description>Your best friend in affiliate marketing.</description>
	<lastBuildDate>Wed, 08 Sep 2010 15:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How and why to redirect your affiliate links</title>
		<link>http://dangerbrown.com/how-and-why-to-redirect-your-affiliate-links/</link>
		<comments>http://dangerbrown.com/how-and-why-to-redirect-your-affiliate-links/#comments</comments>
		<pubDate>Sun, 10 May 2009 06:39:23 +0000</pubDate>
		<dc:creator>dangerbrown</dc:creator>
				<category><![CDATA[Affiliate marketing]]></category>
		<category><![CDATA[Technical stuff]]></category>
		<category><![CDATA[affiliate links]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[meta refresh]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[redirects]]></category>

		<guid isPermaLink="false">http://dangerbrown.com/?p=49</guid>
		<description><![CDATA[Why to run your affiliate links through a redirect:
1. You can place tracking code on it and know how often it's clicked on. You can see if this number matches what your affiliate network is showing.
2. If you have many links to your offer on your landing page, and the offer gets pulled, or you want to test other offers with the same landing page you only have to change the link once (on your redirect).
3. It can help to hide the affiliate link from your visitors.]]></description>
			<content:encoded><![CDATA[<p><strong>Why to run your affiliate links through a redirect:<br />
</strong>1. You can place tracking code on it and know how often it&#8217;s clicked on. You can see if this number matches what your affiliate network is showing.<br />
2. If you have many links to your offer on your landing page, and the offer gets pulled, or you want to test other offers with the same landing page you only have to change the link once (on your redirect).<br />
3. It can help to hide the affiliate link from your visitors.</p>
<p><strong>How to make a redirect:<br />
</strong>There are many ways to make a redirect. The meta-refresh is about the most reliable/easiest redirect to implement. Here is the easy way you should probably do it:</p>
<p>1. Build a page for your website and name it something like &#8220;link-to-offer.htm&#8221; with a title like &#8220;Visit the (affiliate offer) site!&#8221;</p>
<p>2. Go to the html view for the page and replace everything there with this:<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Visit the <span style="color: #ff0000;">(offer)</span> website&lt;/title&gt;<br />
&lt;meta http-equiv=&#8221;REFRESH&#8221; content=&#8221;0;url=<span style="color: #ff0000;">http://www.youraffiliatelinkgoeshere.com</span>&#8220;&gt;&lt;/HEAD&gt;<br />
&lt;BODY&gt;<br />
<span style="color: #ff0000;">(delete this and paste your Google analytics or whatever tracking code here. You can also put readable text here, but don&#8217;t. The next line is optional and only needed if your redirect fails. Delete it or replace the link between the quotes with your own.)<br />
<span style="color: #ff0000;"><span class="sc2"><span class="kw2"><strong>&lt;p&gt;</strong></span></span>Please follow <span class="sc2"><span class="kw2"><strong>&lt;a</strong></span> <span class="kw3">href</span>=<span class="st0">http://www.youraffiliatelink.com</span><span class="kw2"><strong>&gt;</strong></span></span>link<span class="sc2"><span class="kw2"><strong>&lt;/a&gt;</strong></span></span>!<span class="sc2"><span class="kw2"><strong>&lt;/p&gt;</strong></span></span></span></span><br />
&lt;/BODY&gt;<br />
&lt;/HTML&gt;<br />
3. Link to this page anywhere you would normally place an affiliate link.<br />
4. The parts in red need to be either deleted or changed.<br />
5. Save this page in your favorites if you expect to do this more than once.</p>
<p>Where it says <span style="color: #ff0000;">content=&#8221;0 <span style="color: #000000;">the number 0 instructs the browser to redirect after 0 seconds. If you wanted to display a message, you could change the number to say 5 which would display the page for 5 seconds and you could place text or an image or whatever in the body of the html. If you do this, and people hit the back button, they will be re-redirected, but if you leave it at 0 and they hit the back button, they will come back to your website. The redirect will not be kept in browser history. The meta-refresh must stay in the &#8220;head&#8221; section of the html file if you decide to change things around. The link in the body might be a good idea if you are worried someone&#8217;s browser won&#8217;t support the metarefresh. I leave it out of mine, because I want a white screen. Lots of folks won&#8217;t even realize they&#8217;ve been redirected. I prefer to keep it that way. </span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">A meta-refresh, isn&#8217;t perfect, and some would say java is better, but not all browsers will have java enabled. Remember &#8220;K.I.S.S.&#8221; Keep It Simple Stupid.</span></span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">Here are a couple other types of redirects:</span></span></p>
<pre class="csharpcode"><span class="kwrd">Java:
&lt;</span><span class="html">script</span> <span class="attr">type</span><span class="kwrd">=”text/javascript”</span><span class="kwrd">&gt;</span>
location.replace(<span class="str">‘<span style="color: #ff0000;">http://youraffiliatelink.com</span>’</span>);
<span class="kwrd">&lt;/</span><span class="html">script</span><span class="kwrd">&gt;
</span><span class="kwrd">(Using location.replace removes the redirect from the browser history,
 allowing the back button to work.)</span></pre>
<pre class="csharpcode"><span class="kwrd">Http refresh:</span></pre>
<pre class="csharpcode"><span class="kwrd">HTTP/1.1 200 ok
Refresh: 0; url=<span style="color: #ff0000;">http://www.youraffiliatelink.com</span>
Content-type: text/html
Content-length: 78
Please follow <span class="sc2"><span class="kw2"><strong>&lt;a</strong></span><span style="color: #009900;"> </span><span class="kw3"><span style="color: #000066;">href</span></span><span style="color: #009900;">=</span><span class="st0"><span style="color: #ff0000;">"http://www.youraffiliatelink.com/"</span></span><span class="kw2"><strong>&gt;</strong></span></span>link<span class="sc2"><span class="kw2"><strong>&lt;/a&gt;</strong></span></span>!</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://dangerbrown.com/how-and-why-to-redirect-your-affiliate-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
