<?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>Dave Wooding &#187; google</title>
	<atom:link href="http://www.davewooding.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davewooding.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Aug 2010 17:52:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Split Testing Google Adsense The PHP Way</title>
		<link>http://www.davewooding.com/split-testing-google-adsense-the-php-way/</link>
		<comments>http://www.davewooding.com/split-testing-google-adsense-the-php-way/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=39</guid>
		<description><![CDATA[Or &#8220;The Poor Man&#8217;s Split Testing Method&#8221;.
There&#8217;s no right or wrong way to do this.  Darren Rowse made a post about split testing Google Adsense and showed how to do so using channels and a little javascript.
Like a lot of things, there are other ways of accomplishing the same thing.
Enter PHP, that fancy web [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Or &#8220;The Poor Man&#8217;s Split Testing Method&#8221;.</p>
<p>There&#8217;s no right or wrong way to do this.  Darren Rowse made a post about <a href="http://www.problogger.net/archives/2008/05/16/how-to-split-test-ab-test-your-adsense-ads/" target="_blank">split testing Google Adsense</a> and showed how to do so using channels and a little javascript.</p>
<p>Like a lot of things, there are other ways of accomplishing the same thing.</p>
<p>Enter PHP, that fancy web scripting language that gives you the ability to do some pretty neat tricks.</p>
<p>The code snippet below allows you to split test your Adsense by day.  Instead of having to setup separate channels to split test, just login to your Google Adsense account, create two versions of the Google Adsense code you want to test, paste those two versions into the PHP code shown below, put that PHP code in an include file on your site, and call that include file in your web page. Then, if you want to see how you are doing, go back to your Google Adsense account and look at your results <strong>by day</strong>.</p>
<p>O.K. maybe that was a lot of stuff to do.</p>
<p>If you have a PHP enabled web site and you are not using PHP includes, tsk, tsk.  </p>
<p>All of the even numbered days (even numbered according to PHP) will display one version of your Adsense code while all of the odd numbered days will show another version of your Adsense code.</p>
<p><code><font color="#000000"><br />
<font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">if&nbsp;(</font><font color="#0000BB">date</font><font color="#007700">(</font><font color="#DD0000">"z"</font><font color="#007700">)%</font><font color="#0000BB">2&nbsp;</font><font color="#007700">&lt;&nbsp;</font><font color="#0000BB">1</font><font color="#007700">)&nbsp;{</p>
<p></font><font color="#0000BB">?&gt;</p>
<p></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#1&nbsp;goes&nbsp;here&nbsp;--&gt;</p>
<p><font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">}&nbsp;else&nbsp;{</p>
<p></font><font color="#0000BB">?&gt;</p>
<p></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#2&nbsp;goes&nbsp;here&nbsp;--&gt;</p>
<p><font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">}</p>
<p></font><font color="#0000BB">?&gt;</font><br />
</font><br />
</code><br />
The most important part is the &#8220;if&#8221; statement, the code that checks whether today is an even or an odd numbered day.</p>
<p>In this <a href="http://us2.php.net/manual/en/function.date.php" target="_blank">PHP</a>  example the &#8220;z&#8221; represents the day of the year. </p>
<p>The date(&#8220;z&#8221;)%2 < 1 checks if today's number modulus 2 is less than one (which asks if today is an even numbered day), then do whatever is between the set of squirly braces - the "{" and "}" - else do whatever is between the next set of squirly braces.</p>
<p>The whatever I am referring to is display your Adsense code.  </p>
<p>By the way, there is nothing to prevent your from putting anything between the squirly braces.</p>
<p>There are some limitations to be aware of for sure.  Namely, you still need to generate two versions of the Adsense javascript code to include on your web site.  Also, if you want to get a better understanding of your results, you will need to download the results and group the data by even or odd day.  I don&#8217;t even know if Google allows for an easy way to get your Adsense results &#8211; I&#8217;m not even going to login to find out.</p>
<p>But, for a quick and dirty way of split testing your Adsense results, this PHP code will do the trick.</p>
<p>Extra: You don&#8217;t have to just use the day of the year (&#8220;w&#8221;), you could just as easily use day of the week (&#8220;w&#8221;), hour of the day (&#8220;G&#8221;), day of the month (&#8220;j&#8221;) &#8211; or some combination.  Whatever your mind can conceive and believe it can &#8230; oops, that&#8217;s for a different topic <img src='http://www.davewooding.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/split-testing-google-adsense-the-php-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Get Indexed In Google</title>
		<link>http://www.davewooding.com/how-to-get-indexed-in-google/</link>
		<comments>http://www.davewooding.com/how-to-get-indexed-in-google/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:28:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[ranking]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=24</guid>
		<description><![CDATA[No magic here, just a video showing you how to get your site indexed in Google&#8217;s search engine using articles and Pingomatic.
 
This 15 minute video shows you step by step what to do.
1) Write an article.
2) Post the article to your site.
3) Create a link from your home page to the article.
4) Go to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>No magic here, just a video showing you how to get your site indexed in Google&#8217;s search engine using articles and <a href="http://www.pingomatic.com/" target="_blank">Pingomatic</a>.<br />
<embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" flashvars="fs=true" src="http://video.google.com/googleplayer.swf?docid=2817803131882898234&#038;hl=en" type="application/x-shockwave-flash"> </embed></p>
<p>This 15 minute video shows you step by step what to do.<br />
1) Write an article.<br />
2) Post the article to your site.<br />
3) Create a link from your home page to the article.<br />
4) Go to pingomatic and submit <em>that page</em>.  Watch how the different search engines scurry over to find out what you just posted.  (Notice that I am using pingomatic for static pages &#8211; who said you had to use it for blogs only?)<br />
5) Since I only posted a few pages, it took a few days for one of the new pages to get picked up by Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/how-to-get-indexed-in-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
