<?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>Jeff's Place &#187; General</title>
	<atom:link href="http://www.jeff.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeff.com</link>
	<description>Jeff's (New) Web Site</description>
	<lastBuildDate>Fri, 16 Oct 2009 17:09:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding Google Adsense and Analytics</title>
		<link>http://www.jeff.com/2008/adding-google-adsense-and-analytics/</link>
		<comments>http://www.jeff.com/2008/adding-google-adsense-and-analytics/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 21:43:08 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.jeff.com/?p=55</guid>
		<description><![CDATA[This morning I spent some time adding Google Adsense adds and Google Analytics to my web site. This was mostly just an experiment to see how the two services work together, and to find out a little about where web traffic comes from and where it goes.
Since my web site has been sadly pathetic for [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I spent some time adding Google Adsense adds and Google Analytics to my web site. This was mostly just an experiment to see how the two services work together, and to find out a little about where web traffic comes from and where it goes.</p>
<p>Since my web site has been sadly pathetic for so long there are very few links to it from other sites, so it&#8217;s almost like starting up a virgin web site (even though jeff.com has been around since about 1992). Prior to today it was getting between 80 and 200 unique visits per day, mostly just to the home page, with just a handful of people drilling down into the rest of the site. Now that I&#8217;m adding a little more content it will be interesting to see what happens over time.</p>
<p><span id="more-55"></span></p>
<p>Adding <a title="Google Adsense" href="http://www.google.com/adsense" target="_blank">Google Adsense</a> ads was pretty easy. Signing up for an Adsense account takes a couple days, I guess Google reviews new applications before issuing the accounts.  But once that&#8217;s done getting the actual ads to work is easy. The first thing to do is follow Google&#8217;s instructions for setting up your Adsense account, including setting up a few ad formats (called &#8220;units&#8221;) and copying the code they provide for each.</p>
<p>I use <a title="Wordpress" href="http://www.wordpress.org/" target="_blank">Wordpress</a> now to publish this site so I went about adding the ads in two different ways. First, I wanted to put a &#8220;tower&#8221; ad box in the right sidebar of my customized Wordpress theme. But, I didn&#8217;t want any ads to appear on my home page, or on the photo albums and other stuff that I had just copied from my old static web site. Second, I wanted to sprinkle ads into the content of my blog postings and such, since that&#8217;s probably where any interesting (if you can call it that <img src='http://www.jeff.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  content will be. So I had to modify my site in two ways.</p>
<h4>Putting a Google Adsense Tower in the Sidebar</h4>
<p>The Wordpress sidebar in my theme (and probably most themes will be set up similarly) is defined in the &#8220;sidebar.php&#8221; file in my theme directory. It really just boils down to an unordered-list of items, so adding to the bottom of the list was easy, I just had to add the code:</p>
<blockquote>
<pre>&lt;?php /* JEFF: add google ad tower */ ?&gt;</pre>
<pre>&lt;?php /* If this isn't a static page */ if ( !is_page() ) { ?&gt;</pre>
<pre>                        &lt;li&gt;</pre>
<pre>&lt;script type="text/javascript"&gt;&lt;!--</pre>
<pre>google_ad_client = "pub-123456789012345";</pre>
<pre>/* 160x600, created 7/19/08 */</pre>
<pre>google_ad_slot = "12345678";</pre>
<pre>google_ad_width = 160;</pre>
<pre>google_ad_height = 600;</pre>
<pre>//--&gt;</pre>
<pre>&lt;/script&gt;</pre>
<pre>&lt;script type="text/javascript"</pre>
<pre>src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;</pre>
<pre>&lt;/script&gt;</pre>
<pre>                        &lt;/li&gt;</pre>
<pre>&lt;?php /* end of is_page */ } ?&gt;</pre>
</blockquote>
<p>All the javascript code is just copied from Google&#8217;s Adsense page after creating the ad unit. The only important thing here is the PHP block which encloses the javascript inside a conditional statement &#8220;if ( !is_page() )&#8221;. In Wordpress, is_page() will return true if the current page is one of the site&#8217;s static pages (ie, not a blog page or posting or one of the pages automatically-generated to contain blog entries in the archives, categories, or other lists). Since I didn&#8217;t want ads on my home page and other static pages I exclude those from getting the ad display code. There is also a function is_home() which is useful, but a little misleading, in that it returns true if the current page is what Wordpress uses for the most-recent blog postings. In my case this is not my home page, I use a static page for my home page, so here is_home() returns true on my &#8220;Ramblings&#8221; page, which confused me a little until I figured out what it was doing.</p>
<p>After adding this to the sidebar.php file the ads started showing up, and I went back to the Google site to set the background color and border color so it matched my sidebar colors from the main stylesheet.</p>
<h4>Sprinkling Google Adsense ads in the Blog Content</h4>
<p>A while back when setting up Wordpress (and one of the reasons I decided to use it) I discovered a Wordpress plugin  &#8220;<a title="All in One Adsense and YPN Wordpress Plugin" href="http://www.linewbie.com/wordpress-plugins/all-in-one-adsense-and-ypn" target="_blank">All in One Adsense and YPN</a>&#8221; which will automatically insert either Google or Yahoo ads into the site. I had installed the plugin already (which just entails unpacking the zip file into the wordpress plugins directory) so all I had to do was activate it and enter my Google ID number. I fiddled a bit with the settings and eventually settled on just a couple small ad boxes, which it inserts randomly in the content. Sometimes it ends up picking funky places to put them but it seems to work pretty well most of the time.</p>
<p>Like with the Tower ad I adjusted the colors to match my theme. Remember also that Google limits the number of ad displays you can have on one page to three, so including my tower ad I had to set the number of ads per page to two.</p>
<h4>Adding Google Analytics</h4>
<p><a title="Google Analytics" href="http://www.google.com/analytics" target="_blank">Google Analytics</a> is a really cool tool which shows an amazing amount of data, graphed in many different ways making it easy to learn a lot about web site traffic. I&#8217;ve used it for corporate web sites that I manage but never one that I had total control over, so adding it to my own site gives me a chance to be able to fiddle with the site to see how changes can effect traffic.</p>
<p>Adding Google Analytics is even easier than adding the ads. Like the ads it just involves adding a snippet of javascript which Google provides, to each page on your site. My theme uses the same footer for every page, so I just added the javascript code to the footer.php file right before the &lt;/body&gt; tag and that&#8217;s it, now Google is collecting data on my site&#8217;s activity.</p>
<h4>Results</h4>
<p>Now I guess I just have to wait and see what happens. I don&#8217;t really expect to make any money from these ads but I will be very interested to see what sort of view and click-through rates these things get. It seems like the click-throughs must be pretty darn low, I don&#8217;t think I&#8217;ve ever clicked one of those ads on someone&#8217;s site, but we&#8217;ll see. The first ads that showed up were for some guy &#8220;Jeff Buckley&#8221;, who must be a musician or something, but I&#8217;ve never heard of him, who the hell is this guy?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeff.com/2008/adding-google-adsense-and-analytics/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hang on&#8230; I&#8217;m working on it&#8230;</title>
		<link>http://www.jeff.com/2008/hang-on-im-working-on-it/</link>
		<comments>http://www.jeff.com/2008/hang-on-im-working-on-it/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 03:11:55 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://test.jeff.com/?p=4</guid>
		<description><![CDATA[Years pass&#8230;. lingering intentions to finish things started long ago, will they ever get finished?
Well, maybe. Jeff.com has been lame-the-same since sometime in the mid-1990&#8217;s, a few changes to update pictures and such, but that&#8217;s it.
Maybe now it&#8217;s time. Ideas are still there, time I never had seems like it might be coming back to [...]]]></description>
			<content:encoded><![CDATA[<p>Years pass&#8230;. lingering intentions to finish things started long ago, will they ever get finished?</p>
<p>Well, maybe. Jeff.com has been lame-the-same since sometime in the mid-1990&#8217;s, a few changes to update pictures and such, but that&#8217;s it.</p>
<p>Maybe now it&#8217;s time. Ideas are still there, time I never had seems like it might be coming back to me.</p>
<p>No promises, but maybe.</p>
<p>In the mean time&#8230;</p>
<p>More or less once a day I get an email from someone offering to purchase jeff.com, some for insignificant amounts, some for as much as mid-six-figures. I&#8217;m not interested in selling jeff.com (and it really is used for a bunch of stuff, but invisibly). However, I&#8217;m interested in knowing whether other Jeff&#8217;s (or anyone) would want to be able to use a slice of jeff.com, maybe just for an email address, or a subdomain for a web site, or whatever. Comment here and let me know. If there is enough legitimate interest I might be willing to spend some time making it happen.</p>
<p>Anyway&#8230; welcome to the new-look jeff.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeff.com/2008/hang-on-im-working-on-it/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
