<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Dave Wooding</title>
	<link>http://www.davewooding.com</link>
	<description></description>
	<pubDate>Sat, 30 Aug 2008 21:30:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Affiliate Datafeed Site Instructions</title>
		<link>http://www.davewooding.com/affiliate-datafeed-site-instructions/</link>
		<comments>http://www.davewooding.com/affiliate-datafeed-site-instructions/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 20:35:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[affiliate]]></category>

		<category><![CDATA[datafeed]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/affiliate-datafeed-site-instructions/</guid>
		<description><![CDATA[Please use the comment section to ask questions about the datafeed site you have.
The help file for getting the most out of your affiliate datafeed site:
Readme
Details on HOW your datafeed site works:
Datafeed site technical details
Video showing you how to add articles to your site:
Article video
Video showing you how to add advertisements to your site:
Advertisement video
]]></description>
			<content:encoded><![CDATA[<p>Please use the comment section to ask questions about the datafeed site you have.</p>
<p>The help file for getting the most out of your affiliate datafeed site:</p>
<p><a href="http://www.davewooding.com/readme1.pdf" target="_blank">Readme</a></p>
<p>Details on HOW your datafeed site works:</p>
<p><a href="http://www.davewooding.com/get-the-most-from-your-affiliate-datafeed-site/" target="_blank">Datafeed site technical details</a></p>
<p>Video showing you how to add articles to your site:</p>
<p><a href="http://www.davewooding.com/adding-articles-to-your-datafeed-site/" target="_blank">Article video</a></p>
<p>Video showing you how to add advertisements to your site:</p>
<p><a href="http://www.davewooding.com/advertisements-for-your-affiliate-datafeed-site/" target="_blank">Advertisement video</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/affiliate-datafeed-site-instructions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google Adwords Dynamic Keyword Insertion PHP Script</title>
		<link>http://www.davewooding.com/google-adwords-dynamic-keyword-insertion-php-script/</link>
		<comments>http://www.davewooding.com/google-adwords-dynamic-keyword-insertion-php-script/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 20:57:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[adwords]]></category>

		<category><![CDATA[affiliate]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[marketing]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/google-adwords-dynamic-keyword-insertion-php-script/</guid>
		<description><![CDATA[So, you want to be an Adwords rockstar?
Well then, you'll need to wrap your brain around dynamic keyword insertion.
And I'm not just talking about the basics - just using dynamic keyword insertion in your Google Adwords advertisement.  I'm talking about playing with the big kids and using those keywords that appear in your Adwords [...]]]></description>
			<content:encoded><![CDATA[<p>So, you want to be an Adwords rockstar?</p>
<p>Well then, you'll need to wrap your brain around <strong>dynamic keyword insertion</strong>.</p>
<p>And I'm not just talking about the basics - just using dynamic keyword insertion in your Google Adwords advertisement.  I'm talking about playing with the big kids and using those keywords that appear in your Adwords advertisement <strong>also</strong> on your web page.</p>
<p>That's right, if you are targeting a specific search terms in your advertisement - make that keyword show up on your landing page.  Heck, even have it show up as the title and actual url of your page.  Now we are talking.</p>
<p>Maybe instead of talking, let me show you a few things to give you the picture.  It will all be crystal clear in just a moment ...</p>
<h2>What Is Dynamic Keyword Insertion?</h2>
<p>Lets say you are advertising using <a href="http://adwords.google.com/" target="_blank">Google's Adwords program</a>.  One of the things you provide for your ad is a list of keywords that you are interested in having your advertisement display for.</p>
<p>For instance, if you were selling "kobe beef", you might want your advertisement to show up on Google's search engine page every time someone types in the words "kobe beef" in the search box on Google.</p>
<p>Same goes for someone searching for "kobe steak" - you want your ad displayed.</p>
<p>With dynamic keyword insertion, every time someone types in the exact search term you are targeting, your advertisement would include those keyword - in bold - on your advertisement.</p>
<p>Here's what the syntax looks like:</p>
<p>{keyword:} - will display the search term or not if there is not a match</p>
<p>{keyword: Default} - will display the search term or "Default" if there is problem displaying the search term.  Of course, you can replace "Default" with whatever you like.</p>
<p>Some specific details regarding keyword: (source: <a href="http://www.redflymarketing.com/blog/dynamic-keyword-insertion-the-ultimate-guide/" target="_blank">Red Fly Marketing</a> )</p>
<p>keyword - No capitalization, all word(s) are in lower case<br />
Keyword - The first word is capitalized<br />
KeyWord - Every word is capitalized<br />
KEYword - Every letter in first word is capitalized<br />
KEYWord - Every letter in the first word AND the first letter of the second<br />
KEYWORD - Every letter is capitalized</p>
<p>More details at <a href="http://adwords.google.com/support/bin/answer.py?answer=74996&#038;hl=en_US" target="_blank">Google Adwords</a></p>
<h2>How Do You Do It?</h2>
<p>Login to your Adwords account.  Create or edit a campaign.  Create or edit a Text Ad.</p>
<p>Here's an example of what an ad might look like that uses keyword insertion.</p>
<p><img src="http://www.davewooding.com/images/adwords1.png" alt="adwords" /></p>
<p>&nbsp;</p>
<p>Notice that use of the {KeyWord: Default} in the Headline and Description line 1.</p>
<p><img src="http://www.davewooding.com/images/adwords2.png" alt="adwords keyword insertion" /></p>
<p>&nbsp;</p>
<p>This is the important part for getting the search term to show up on your web site.  <strong>Use the {Keyword: Default} as part of your Destination URL</strong>.  In this example, I have added my top level domain, http://www.DaveWooding.com/ followed by the keyword insertion expression followed by ".html". Note that I have added a dash, "-", in between my default word.</p>
<p><img src="http://www.davewooding.com/images/adwords3.png" alt="adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<h2>Display the Adwords Search Terms On Your Page</h2>
<p>At this point, somebody clicked on an Adwords ad of yours, something that might look like this:</p>
<p><img src="http://www.davewooding.com/images/adwords5.png" alt="adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<p>In this case, the search term is "kobe steak".  A visitor that clicks on that advertisement would be sent to this url, http://www.davewooding.com/kobe%20steak.html.</p>
<p>If someone searched for "kobe beef" the advertisement would look like this:</p>
<p><img src="http://www.davewooding.com/images/adwords4.png" alt="google adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<h2>On To Your Web Site</h2>
<p>Now that you have setup your Google Adwords advertisement to use <strong>keyword insertion</strong>, it is time to separate the men from the boys, the women from the girls, the ... you get the point.</p>
<p>Time to play big.  You want your site to display an appropriate page for each of those particular search terms.  Sure you can do it the old fashion way and grunt it out - create an individual page for each and every possible search term.</p>
<p>Or you can do it the right way.</p>
<p>Using PHP or some other scripting language that allows for extracting information about the referring page - the referring page that uses dynamic keyword insertion.  Ding, ding, ding <<<--- important</p>
<p>First, assuming you are working from the top level domain, i.e. - http://www.example.com, you will need to add or modify a .htaccess file to include the following:</p>
<blockquote><p>
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^([^/]+).html?$ index.php?q=$1 [L]
</p></blockquote>
<p>I'm going to assume that if you are reading this far into the article that you are willing to use php files instead of plain html file (otherwise you will need to include additional code in your .htaccess file, specifically "AddType application/x-httpd-php .htm .html").</p>
<p>Very simply, the chuck of code above says to turn on the rewrite engine, reference to the root directory, the rule that follows is applicable if the file or directory referenced does not already exist, then grab all the info after the domain but before the .html extension <- this is our dynamic keyword insertion stuff courtesy of Google Adwords.</p>
<p>Take that information (the dynamic keyword info), shove it into memory - which we will call "dollar one" = $1 and send it over to the index.php file as part of the "q" query string.</p>
<p>You like that techo jargon?</p>
<h2>The PHP Code That Displays Adwords Search Terms</h2>
<p>... on your site.</p>
<p>As I mentioned, you will need to be using php files for this to work (or you can modify your .htaccess file to accomodate).</p>
<p>At the top of your index.php file, the code should like like this:</p>
<p><img src="http://www.davewooding.com/images/adwords6.png" alt="google adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<p>This chunk of code checks to see if any information has been passed over via the "q" query string (remember the .htaccess grabbed any info between the top level domain and the .html and sent it over as part of the query string parameter).</p>
<p>If there is info, then that information gets assigned to a variable called $replace (after it replaces any dashes with whitespace - assuming there are any dashes).</p>
<p>If no query string info is present, no problemo, there is a default value set previously - "kobe beef" in this case.</p>
<p><img src="http://www.davewooding.com/images/adwords7.png" alt="google adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<p>Next a few other variables are set based on the what is in $replace.  $title is the same as $replace with the exception that the <strong>first character of <u>every word</u></strong> are capitalized. $h1 is the same as $replace except that just the <strong>first character</strong> is capatilized.</p>
<p><img src="http://www.davewooding.com/images/adwords8.png" alt="google adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<p>Following the php script part of the index.php file is plain old html code - with the $title and $h1 variables thrown in.</p>
<p><img src="http://www.davewooding.com/images/adwords9.png" alt="google adwords dynamic keyword insertion" /></p>
<p>&nbsp;</p>
<p><strong>This is how you display the Adwords search terms on your site</strong>.</p>
<h2>What's Next?</h2>
<p>We are only scratching the surface of what is possible here.</p>
<p>Lets just speculate that you have a datafeed that you want to create individual landing pages for that you want to use PPC to drive visitors to.  Or you are a Clickbank affiliate that wants to use Adwords to promote products and you want to use the Clickbank datafeed?  Or you have an Ebay store that uses a RSS feed from Ebay to display items for sale that could afford pay per click marketing?</p>
<p>What you have seen here is perfect for creating relevant, high quality score landing pages for using Google Awords with.  </p>
<p>Stay tuned, or sign up to get on the mailing list, for the next article which will show you how to <strong>integrate a datafeed</strong> - like <a href="http://www.speedppc.com/" target="_blank">SpeedPCC</a> -  with <strong>dynamic keyword insertion</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/google-adwords-dynamic-keyword-insertion-php-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP script for HTTP response codes</title>
		<link>http://www.davewooding.com/php-script-for-http-response-codes/</link>
		<comments>http://www.davewooding.com/php-script-for-http-response-codes/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 21:42:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[HTTP response code]]></category>

		<category><![CDATA[PHP script]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/php-script-for-http-response-codes/</guid>
		<description><![CDATA[ 
HTTP response codes
Here's a PHP script that checks a web page's HTTP response code.
Submit a web page, click on the button, see the results, and get the PHP code.

Domain:



100 Continue
101 Switching Protocols
200 OK
201 Created
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
306 (Unused)
307 [...]]]></description>
			<content:encoded><![CDATA[
<p> <a href="?PHPSESSID=3287df18dd5ae094473804f1ed8ea3d3" target="_blank"></a></p>
<h3>HTTP response codes</h3>
<p>Here's a PHP script that checks a web page's <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html" target="_blank">HTTP response code</a>.</p>
<p>Submit a web page, click on the button, see the results, and get the PHP code.</p>
<form method="post" action=""><input type="hidden" name="PHPSESSID" value="3287df18dd5ae094473804f1ed8ea3d3" />
<p>Domain:<br />
<input size="35" value="http://" name="url" type="text"></p>
<input type="submit" value="Check" size="35" class="btn">
</form>
<blockquote><p>100 Continue<br />
101 Switching Protocols<br />
200 OK<br />
201 Created<br />
203 Non-Authoritative Information<br />
204 No Content<br />
205 Reset Content<br />
206 Partial Content<br />
300 Multiple Choices<br />
301 Moved Permanently<br />
302 Found<br />
303 See Other<br />
304 Not Modified<br />
305 Use Proxy<br />
306 (Unused)<br />
307 Temporary Redirect<br />
400 Bad Request<br />
401 Unauthorized<br />
402 Payment Required<br />
403 Forbidden<br />
404 Not Found<br />
405 Method Not Allowed<br />
406 Not Acceptable<br />
407 Proxy Authentication Required<br />
408 Request Timeout<br />
409 Conflict<br />
410 Gone<br />
411 Length Required<br />
412 Precondition Failed<br />
413 Request Entity Too Large<br />
414 Request-URI Too Long<br />
415 Unsupported Media Type<br />
416 Requested Range Not Satisfiable<br />
417 Expectation Failed<br />
500 Internal Server Error<br />
501 Not Implemented<br />
502 Bad Gateway<br />
503 Service Unavailable<br />
504 Gateway Timeout<br />
505 HTTP Version Not Supported</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/php-script-for-http-response-codes/feed/</wfw:commentRss>
		</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>Thu, 12 Jun 2008 12:23:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[search engine rankings]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/how-to-get-indexed-in-google/</guid>
		<description><![CDATA[No magic here, just a video showing you how to get your site indexed in Google'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>No magic here, just a video showing you how to get your site indexed in Google'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><br />
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 - 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>
		</item>
		<item>
		<title>Verify A Web Page Exists With PHP</title>
		<link>http://www.davewooding.com/verify-a-web-page-exists-with-php/</link>
		<comments>http://www.davewooding.com/verify-a-web-page-exists-with-php/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 04:13:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[affiliate]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[web site]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/verify-a-web-page-exists-with-php/</guid>
		<description><![CDATA[Check To Verify Your Site Exists
I'm getting ready to open up the offer I made a couple months ago - to build you a gardening database driven website.
Before I do that, I want to make sure you are ready.  One thing I will ask you is if you have a website ready to go [...]]]></description>
			<content:encoded><![CDATA[<br />
<h3>Check To Verify Your Site Exists</h3>
<p>I'm getting ready to open up the offer I made a couple months ago - to build you a <a href="http://www.davewooding.com/gardening-affiliate-site/" target="_blank">gardening database driven website</a>.</p>
<p>Before I do that, I want to make sure you are ready.  One thing I will ask you is if you have a website ready to go ... and I have a script that will verify.</p>
<p>The reason I am doing this is so that when you place your order, we can get your site setup and ready to go in a short amount of time.</p>
<p>Here's part of the script I will have when the order page goes live next week:</p>
<form method="post" action=""><input type="hidden" name="PHPSESSID" value="3287df18dd5ae094473804f1ed8ea3d3" />
<p>Domain:<br />
<input size="35" value="http://" name="url" type="text"></p>
<input type="submit" value="Check" size="35" class="btn">
</form>
<p>Thanks.</p>
<p>Dave</p>
<p>P.S. - If you have any questions, please use the comment section below to ask, thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/verify-a-web-page-exists-with-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Another PHP Script</title>
		<link>http://www.davewooding.com/another-php-script/</link>
		<comments>http://www.davewooding.com/another-php-script/#comments</comments>
		<pubDate>Fri, 30 May 2008 04:24:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[article marketing]]></category>

		<category><![CDATA[article writing]]></category>

		<category><![CDATA[articletator]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/another-php-script/</guid>
		<description><![CDATA[Working on another simple PHP script.  One that helps you write articles quickly.
It is called Articletator.
I'm planning on having a working version ready very soon.  
Here is a ten minute video demonstrating what it does so far - and the code that generates the results.
Articletator Video
The idea is you search for a keyword [...]]]></description>
			<content:encoded><![CDATA[<p>Working on another simple PHP script.  One that helps you write articles quickly.</p>
<p>It is called <a href="http://www.articletator.com/">Articletator</a>.</p>
<p>I'm planning on having a working version ready very soon.  </p>
<p>Here is a ten minute video demonstrating what it does so far - and the code that generates the results.</p>
<p><a href="http://www.youtube.com/watch?v=ugGZXTwxD-g" target="_blank">Articletator Video</a></p>
<p>The idea is you search for a keyword phrase of interest, tell the script how many results to get and where the results come from.</p>
<p>Articletator goes off and does its thing - grabbing urls of sites that provide the information of interest, parsing out bits of information relevant to your query and reporting back the results in an easy to use format.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/another-php-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Gardening Affiliate Sale</title>
		<link>http://www.davewooding.com/the-gardening-affiliate-sale/</link>
		<comments>http://www.davewooding.com/the-gardening-affiliate-sale/#comments</comments>
		<pubDate>Wed, 21 May 2008 04:29:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[affiliate]]></category>

		<category><![CDATA[datafeed]]></category>

		<category><![CDATA[geoff shaw]]></category>

		<category><![CDATA[tiffany dow]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/the-gardening-affiliate-sale/</guid>
		<description><![CDATA[Just an update on the sale of the gardening datafeed sites.
What we learned.
Simplify
If we (the kids, mostly) are to do this again, we have to streamline the whole operation.  In particular, the order form where you fill in details like domain, login information, affiliate id needs some more error checking.  The form needs [...]]]></description>
			<content:encoded><![CDATA[<p>Just an update on the sale of the gardening datafeed sites.</p>
<p>What we learned.</p>
<p><strong>Simplify</strong></p>
<p>If we (the kids, mostly) are to do this again, we have to streamline the whole operation.  In particular, the order form where you fill in details like domain, login information, affiliate id needs some more error checking.  The form needs to force people to provide exact details.  There was too much "slop" allowed.  Sure, you had to fill out part of the form, but there was no error checking or verification of details.</p>
<p>Unfortunately, this allowed for partially filled out forms to arrive in my email box with important details missing.  Which meant, I had to email people asking for details.  The result was I spent more time than I thought I would on requesting necessary information.</p>
<p>This was my fault completely.</p>
<p><strong>My Oldest Son Likes Money</strong></p>
<p>... and he likes it right away.  Here I am trying to educate him on the value of providing great service and that people will pay, and pay well, for that; and he wants to know when he gets paid.</p>
<p>I told him once all of the sites are complete.  </p>
<p>I ended up paying him and his younger brother about 2 weeks after we had the sale - even though there are still a few people that need to provide their details (hint, hint).</p>
<p>The delay in payment resulted in them losing interest.  I ended creating about 10 of the 30 sites.  Recall, the original plan was for these guys to all of the "grunt work".  Well, the lack of "instant cash" kind of made them lose their interest.</p>
<p>For the next batch of sites, I'm going to have a stack of cash sitting right in front of them - they can have payment as they go.  Still, I want them to understand that controlling their urge for instant gratification can result in larger rewards (monetarily, emotionally, physically, spiritually, etc.).</p>
<p><strong>People Trust Other People</strong></p>
<p>Most of the people who purchased these gardening datafeed sites did so because of the recommendation of others.  In particular <a href="http://www.tiffanydow.com/" target="_blank">Tiffany Dow</a> and <a href="http://www.opoqo.com/" target="_blank">Geoff Shaw</a>.  I contacted both of these two and asked if they would recommend this offer to their customers - and they did.</p>
<p>The only problem with the recommendation is that some of the people buying are doing so on blind faith - without even knowing what they are exactly getting.  That speaks highly of the trust these two have with their customers.</p>
<p>There's more, but that's enough for tonight.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/the-gardening-affiliate-sale/feed/</wfw:commentRss>
		</item>
		<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>Thu, 15 May 2008 19:58:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[adsense]]></category>

		<category><![CDATA[darren rowse]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/split-testing-google-adsense-the-php-way/</guid>
		<description><![CDATA[Or "The Poor Man's Split Testing Method".
There'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>Or "The Poor Man's Split Testing Method".</p>
<p>There'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<br />
<br /></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;{<br />
<br /></font><font color="#0000BB">?&gt;<br />
<br /></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#1&nbsp;goes&nbsp;here&nbsp;--&gt;<br />
<br /><font color="#0000BB">&lt;?php<br />
<br /></font><font color="#007700">}&nbsp;else&nbsp;{<br />
<br /></font><font color="#0000BB">?&gt;<br />
<br /></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#2&nbsp;goes&nbsp;here&nbsp;--&gt;<br />
<br /><font color="#0000BB">&lt;?php<br />
<br /></font><font color="#007700">}<br />
<br /></font><font color="#0000BB">?&gt;</font><br />
</font><br />
</code><br />
The most important part is the "if" 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 "z" represents the day of the year. </p>
<p>The date("z")%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't even know if Google allows for an easy way to get your Adsense results - I'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't have to just use the day of the year ("w"), you could just as easily use day of the week ("w"), hour of the day ("G"), day of the month ("j") - or some combination.  Whatever your mind can conceive and believe it can ... oops, that's for a different topic :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/split-testing-google-adsense-the-php-way/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
