<?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>Simone Carletti&#039;s Blog &#187; seo</title>
	<atom:link href="http://www.simonecarletti.com/blog/tags/seo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simonecarletti.com/blog</link>
	<description>Simone Carletti&#039;s personal ramblings on programming, syndication, search engines &#38; marketing.</description>
	<lastBuildDate>Thu, 12 Jan 2012 09:16:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Are you ready to join the Search Marketing Arena?</title>
		<link>http://www.simonecarletti.com/blog/2009/10/search-marketing-arena/</link>
		<comments>http://www.simonecarletti.com/blog/2009/10/search-marketing-arena/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 19:50:08 +0000</pubDate>
		<dc:creator>Simone Carletti</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[search marketing arena]]></category>
		<category><![CDATA[sem]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.simonecarletti.com/blog/?p=652</guid>
		<description><![CDATA[Search Marketing Arena aims to be a Q&#038;A website about Search Marketing including (but not limited to) Search Engine Marketing (SEM), Search Engine Optimization (SEO) and advertising.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.searchmarketingarena.com/"><img class="alignleft size-full wp-image-656" title="Search Marketing Arena logo" src="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/search-marketing-arena-logo.png" alt="Search Marketing Arena logo" width="260" height="70" /></a>Last week I officially unveiled <a title="Search Marketing Arena" href="http://www.searchmarketingarena.com/">Search Marketing Arena</a>, a new project I started in cooperation with my friend <a title="Simone Rinzivillo Blog" href="http://www.simonerinzivillo.it/">Simone</a>. <strong>Search Marketing Arena aims to be a Q&amp;A website about Search Marketing</strong> including (but not limited to) <strong>Search Engine Marketing</strong> (SEM), <strong>Search Engine Optimization</strong> (SEO) and <strong>advertising</strong>.</p>
<p>Search Marketing Arena is based on the same platform as other excellent Q&amp;A sites such as <a title="Stack Overflow" href="http://stackoverflow.com/">StackOverflow</a>, <a title="Super User" href="http://superuser.com/">SuperUser</a> and <a title="Server Fault" href="http://serverfault.com/">ServerFault</a>. This is a really powerful and revolutionary platform that mixes together the best features from a <strong>wiki</strong>, a <strong>blog</strong> and a <strong>forum</strong>.</p>
<p>This means that Search Marketing Arena is different than other SEO focused discussion points such as <a title="WebmasterWorld News and Discussion for the Web Professional" href="http://webmasterworld.com">Webmasterworld.com</a> or <a title="Search Engine Marketing Tips &amp; Search Engine News - Search Engine Watch (SEW)" href="http://searchenginewatch.com/">Search Engine Watch</a>. Off course, different doesn&#8217;t necessary mean better even if we would try to do our best to make the arena a nice place!</p>
<p>What makes Search Marketing Arena different is a user-focused project. Search Marketing Arena is <strong>absolutely free</strong>: <strong>no premium sections, no invitations required</strong>. You don&#8217;t need to register and you can ask questions or browse the site without an account.</p>
<p>If you decide to register, you can collect <strong>reputation</strong> and <strong>badges</strong>.<span id="more-652"></span></p>
<div id="attachment_651" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/badge-reputation.png"><img class="size-medium wp-image-651" title="Badges and Reputation" src="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/badge-reputation-400x285.png" alt="User list with badges and reputation" width="400" height="285" /></a><p class="wp-caption-text">User list with badges and reputation</p></div>
<p>Badges are like medals. <strong>Badges</strong> are awarded automatically by the system depending on how you interact with the community. For example, you can gain a <a title="Student Badge" href="http://www.searchmarketingarena.com/badges/2/student">Student</a> badge as soon as you ask your first question. You become a <a title="Supporter Badge" href="http://www.searchmarketingarena.com/badges/6/supporter">Supporter</a> after your first vote.</p>
<p>Here&#8217;s a full list of <a title="Badges - Search Marketing Arena" href="http://www.searchmarketingarena.com/badges">available badges</a>.</p>
<div id="attachment_653" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/badges.png"><img class="size-medium wp-image-653" title="Badges" src="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/badges-400x285.png" alt="The list of available badges" width="400" height="285" /></a><p class="wp-caption-text">The list of available badges</p></div>
<p>The reputation is an other key feature. You gain reputation each time someone up-vote your questions or your answers. You also gain 15 points when your answer is accepted as the correct one.</p>
<p>Of course, if you don&#8217;t post good answer you might receive down votes too.</p>
<div id="attachment_654" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/votes.png"><img class="size-medium wp-image-654" title="Votes" src="http://www.simonecarletti.com/blog/wp-content/uploads/2009/10/votes-400x255.png" alt="List of upvotes and downvotes" width="400" height="255" /></a><p class="wp-caption-text">List of upvotes and downvotes</p></div>
<p><strong>The higher is your reputation score, the wider is the range of features you have access to</strong>. Search Marketing Arena is collaboratively built and maintained by your fellow users. Once the system learns to trust you, you&#8217;ll be able to edit anything.</p>
<p>For more information about Search Marketing Arena and all its features <a title="FAQ - Search Marketing Arena" href="http://www.searchmarketingarena.com/faq">read the FAQ page</a>. Search Marketing Arena is also <a href="http://twitter.com/semarena">available on Twitter</a>.</p>
<p>Any feedback? <a href="mailto:staff@searchmarketingarena.com">Send us an email</a> or <strong>write a comment here</strong>, we&#8217;re always looking for feedback, suggestions and also criticisms.</p>
<p>Still here? Visit <a title="Search Marketing Arena" href="http://www.searchmarketingarena.com/">Search Marketing Arena</a> and <a title="Ask a Question - Search Marketing Arena" href="http://www.searchmarketingarena.com/questions/ask">ask your questions</a>.</p>
<p>Related posts<ol>
<li><a href='http://www.simonecarletti.com/blog/2010/01/search-simonecarletti-com-from-google-chrome/' rel='bookmark' title='Search SimoneCarletti.com from Google Chrome address bar'>Search SimoneCarletti.com from Google Chrome address bar</a></li>
<li><a href='http://www.simonecarletti.com/blog/2010/09/rails-3-beware-the-tap-pattern/' rel='bookmark' title='Upgrading to Rails 3: Beware of the Object#tap pattern'>Upgrading to Rails 3: Beware of the Object#tap pattern</a></li>
<li><a href='http://www.simonecarletti.com/blog/2010/12/new-in-whois-goodbye-rdoc-welcome-yardoc/' rel='bookmark' title='New in Whois: Goodbye RDoc, Welcome Yardoc'>New in Whois: Goodbye RDoc, Welcome Yardoc</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.simonecarletti.com/blog/2009/10/search-marketing-arena/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging external referers with Apache</title>
		<link>http://www.simonecarletti.com/blog/2009/01/logging-external-referers-with-apache/</link>
		<comments>http://www.simonecarletti.com/blog/2009/01/logging-external-referers-with-apache/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 15:27:36 +0000</pubDate>
		<dc:creator>Simone Carletti</dc:creator>
				<category><![CDATA[Server / Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[referers]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.simonecarletti.com/blog/?p=109</guid>
		<description><![CDATA[How to create a custom Apache log file to track external referrals.]]></description>
			<content:encoded><![CDATA[<p>The default <strong>Apache access log</strong> includes many useful details about each single request to you website. This is an example of how a log entry looks like:</p>
<div class="codecolorer-container text default brush: text;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">79.28.43.25 - - [25/Jan/2009:13:18:02 +0000] &quot;GET /blog/2007/01/internet-explorer-7-in-italiano/ HTTP/1.1&quot; 200 14487 &quot;http://www.google.it/search?hl=it&amp;q=aggiornamento+internet+explorer+&amp;btnG=Cerca+con+Google&amp;meta=&amp;aq=f&amp;oq=&quot; &quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)&quot;</div></td></tr></tbody></table></div>
<p>You can easily identify the client IP address, the request timestamp, the landing page and the referral, in this example represented by a Google Search Page.<br />
<span id="more-109"></span></p>
<h2>Creating a custom referer log file</h2>
<p>As a Marketer or SEO, the referral and the landing page can be really useful information. Extracting them from the default apache log file can be a little tricky and requires some parsing knowledge. For this reason you would find more convenient to <strong>write a custom log file</strong> including only those two details.</p>
<p>Let me show you how. You don&#8217;t need to know much about Apache server management but <strong>you must have access to your virtual host configuration</strong> because the <code>CustomLog</code> and <code>LogFormat</code> directives can&#8217;t be specified in the <code>.htaccess</code> file but only at server config or virtual host level.<br />
Write the following lines either in you Apache configuration file or in your virtual host definition depending on whether you want to create a referer log for all configured websites or just for a single virtual host.</p>
<p>In order to <strong>monitor incoming links</strong> you need to define a custom log format using the <a href="http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#logformat">LogFormat</a> directive and give it an useful name, for example <code>referer</code>.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">LogFormat &quot;%{Referer}i %U&quot; referer</div></td></tr></tbody></table></div>
<p>Then ask Apache to generate a new log passing the custom format.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CustomLog /path/to/folder/referer.log referer</div></td></tr></tbody></table></div>
<p>You can specify as many <code>CustomLog</code> as you want, already configured logs will not be affected. In this case <strong>Apache will generate two logs for each request</strong>: the first one with the default format and the second one including only the referral string and the landing page.</p>
<p>Here&#8217;s an example of a typical virtual host configuration.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;VirtualHost *:80&gt;<br />
&nbsp; ServerName &nbsp; &nbsp;example.com<br />
&nbsp; ServerAlias &nbsp; www.example.com<br />
&nbsp; DocumentRoot &nbsp;/var/www/example.com/public<br />
<br />
&nbsp; # many other directives ...<br />
<br />
&nbsp; LogFormat &quot;%{Referer}i %U&quot; referer<br />
&nbsp; CustomLog /var/www/example.com/logs/referer.log referer<br />
&lt;/VirtualHost&gt;</div></td></tr></tbody></table></div>
<p>For each request to <code>example.com</code> Apache will write an entry in the <code>referer.log</code> file including the landing page and the referer string, like the following one.</p>
<p><img class="aligncenter size-medium wp-image-120" title="Referer Log" src="http://www.simonecarletti.com/blog/wp-content/uploads/2009/01/refererlog-400x262.png" alt="Referer Log" width="400" height="262" /></p>
<div class="flash-message warning">
<p>In Apache 2.x the <code>LogFormat</code> name <code>referer</code> appears to be reserved for the format <code>"%{Referer}i -&gt; %U"</code>. You should use a different name to prevent conflicts.</p>
</div>
<h2>Combining LogFormat and CustomLog in a single line</h2>
<p>If you don&#8217;t need to define a reusable <code>LogFormat</code> and you don&#8217;t care to assign it to a format name, you can <strong>create a custom log in one step</strong>.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CustomLog /var/www/example.com/logs/referer.log &quot;%{Referer}i %U&quot;</div></td></tr></tbody></table></div>
<p>The line above is equivalent to the following one.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">LogFormat &quot;%{Referer}i %U&quot; myformat<br />
CustomLog /var/www/example.com/logs/referer.log myformat</div></td></tr></tbody></table></div>
<h2>Writing a CSV log file</h2>
<p>You can customize the referer log placing as many <a href="http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#logformat">&#8220;%&#8221; directives</a> as you wish in your log format. For example, the following format writes a <acronym title="comma separated values">CSV</acronym> log file.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">LogFormat &quot;\&quot;%{Referer}i\&quot;,\&quot;%U\&quot;&quot; referer</div></td></tr></tbody></table></div>
<p>Here&#8217;s an example.</p>
<div class="codecolorer-container text default brush: text;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&quot;http://www.google.com/search?q=keyword&quot;, &quot;/page.html&quot;<br />
&quot;http://www.google.com/search?q=keyword&quot;, &quot;/new-page.html&quot;</div></td></tr></tbody></table></div>
<p>Log entries can be easily parsed or opened with a CSV-compatible software like OpenOffice or Excel.</p>
<p><img class="aligncenter size-medium wp-image-119" title="Referer Excel" src="http://www.simonecarletti.com/blog/wp-content/uploads/2009/01/referer-excel-400x234.png" alt="Referer Excel" width="400" height="234" /></p>
<h2>Logging external referers</h2>
<p>Logging all referrals is expensive and not so effective for marketing analysis. It would probably be a good idea to restrict the directive to <strong>match only external referers</strong>. <a href="http://httpd.apache.org/docs/2.0/env.html">Enviroment Variables</a> are what we need to do this.</p>
<div class="codecolorer-container text default brush: apache;" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">SetEnvIfNoCase Referer (www\.)?example\.com INTERNAL_REFERRAL<br />
LogFormat &quot;\&quot;%{Referer}i\&quot;,\&quot;%U\&quot;&quot; referer<br />
CustomLog /var/www/example.com/logs/referer.log referer env=!INTERNAL_REFERRAL</div></td></tr></tbody></table></div>
<p>First we set an environment variable called <code>INTERNAL_REFERRAL</code> if the request comes with a referer string matching current website domain. Then we define the <code>LogFormat</code> as usual and we enable the <code>CustomLog</code> only if the environment variable is empty, thus if the request matches an external referral.</p>
<p>Related posts<ol>
<li><a href='http://www.simonecarletti.com/blog/2009/02/apache-log-regex-a-lightweight-ruby-apache-log-parser/' rel='bookmark' title='Apache Log Regex: a lightweight Ruby Apache log parser'>Apache Log Regex: a lightweight Ruby Apache log parser</a></li>
<li><a href='http://www.simonecarletti.com/blog/2009/01/apache-query-string-redirects/' rel='bookmark' title='Apache .htaccess query string redirects'>Apache .htaccess query string redirects</a></li>
<li><a href='http://www.simonecarletti.com/blog/2009/01/apache-rewriterule-and-query-string/' rel='bookmark' title='Apache RewriteRule and query string'>Apache RewriteRule and query string</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.simonecarletti.com/blog/2009/01/logging-external-referers-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

