<?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>Jay Goldman &#187; mod_rewrite</title>
	<atom:link href="http://jaygoldman.com/tag/mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaygoldman.com</link>
	<description>Technologist, Designer, Speaker, Author, Generally Swell Guy</description>
	<lastBuildDate>Sun, 25 Jul 2010 14:25:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>8 SEO Tips and Tricks</title>
		<link>http://jaygoldman.com/2009/02/08/8-seo-tips-and-tricks/</link>
		<comments>http://jaygoldman.com/2009/02/08/8-seo-tips-and-tricks/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 03:03:34 +0000</pubDate>
		<dc:creator>jaygoldman</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[font replacement]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[inbound links]]></category>
		<category><![CDATA[inman]]></category>
		<category><![CDATA[landing pages]]></category>
		<category><![CDATA[meta tags]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[repetition]]></category>
		<category><![CDATA[search engine marketing]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[sem]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[sIFR]]></category>
		<category><![CDATA[sitemaps]]></category>
		<category><![CDATA[text-indent]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[titles]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://jaygoldman.com/?p=457</guid>
		<description><![CDATA[Eight tips on Search Engine Optimizing your website.



Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A client recently asked for a quick overview of good SEO practises, so I thought I&#8217;d share them with all of you at the same time. This is by no means an exhaustive list, but following these items will definitely make a difference to your site&#8217;s performance in major search engines. These are roughly in order of priority (the first items being the most important):</p>
<ul>
<li><strong>Landing Pages:</strong> It&#8217;s impossible to do a good job of optimizing your homepage for every possible term people might use to find your site. Think of it as a town fair full of criers who are all yelling their own messages: the end result is a din of roughly equal volume in which nothing stands out. Plan instead to add a page to your site for each search term, heavily optimized for that term using all the tips below, so that page becomes the top organic search result for the term and therefore the page that visitors land on when coming to your site. It&#8217;s important to make sure that these pages aren&#8217;t islands (i.e.: not linked from any of the site&#8217;s main content), because otherwise web crawlers may not find and index them.</li>
<li><strong>Titles:</strong> Some of the most overlooked SEO real estate in the world is staring right at you from the top of this very window. The <code>&lt;title&gt;</code> tag, which sets the text displayed in the title bar of the browser window, is very highly rate by search engines as being indicative of the page&#8217;s content. The engines differ in how much of the <code>&lt;title&gt;</code> they index, but the general rule of thumb is that the first 60 or so characters are the most important. This dictates that the search term should come before things like a company name, so it would be better to have &#8220;8 SEO Tips and Tricks » JayGoldman.com&#8221; rather than &#8220;JayGoldman.com: 8 SEO Tips and Tricks&#8221;. Luckily, this also tends to be more useful to users when they view their browser history or bookmarks in a narrow window or menu that cuts off the text, since the name of the page they want is more likely to be visible. I use the <a title="Netconcepts.com: WordPress SEO Title Tag Plugin" href="http://www.netconcepts.com/seo-title-tag-plugin/">WordPress SEO Title Tag Plugin</a> to swap the order around on this blog.</li>
<li><strong>Repetition:</strong> The search term should be repeated in an <code>&lt;h1&gt;</code> as close to the top of the <code>&lt;body&gt;</code> as possible. We saw a difference for some of <a title="Radiant Core" href="http://www.radiantcore.com">Radiant Core&#8217;s</a> clients between having text at the top of the HTML and moving it down for presentation using CSS and just putting it at the bottom (e.g.: the list of SEO links at the bottom of the <a title="TargetVacations" href="http://www.targetvacations.ca">TargetVacations</a> site actually occurs at the top of the HTML and is moved down through a combination of CSS and JavaScript since the page&#8217;s length is variable). The term should be repeated again in a <code>&lt;p&gt;</code> following that <code>&lt;h1&gt;</code>, ideally surrounded by  <code>&lt;strong&gt;</code> tags.</li>
<li><strong>Font Replacement:</strong> A necessity if you&#8217;re particular to a specific font and want to make sure your text is rendered in it. Since HTML doesn&#8217;t yet support embedding fonts (though it&#8217;s coming in CSS3 as <a title="CSS3: WebFonts" href="http://www.w3.org/TR/css3-webfonts/">WebFonts</a>), specifying a font in CSS will only work if the person viewing your site has that font installed on their computer (and could still look strange if they have a different font with the same name). There are two popular routes: image replacement and sIFR for Flash-based replacement. Image replacement is much more limiting in that it requires you to create an image for each piece of text, while sIFR can be really difficult to get working, requires Flash for display, and can really slow down page rendering. I use a mix of the two on the homepage of this blog, rendering the header using image replacement since it never changes and rendering blog titles in sIFR to get Futura without having to manually create images for each post&#8217;s title.
<ul>
<li>Doug Bowman of <a title="Stopdesign" href="http://www.stopdesign.com">Stopdesign</a> (and now the <a title="Stopdesign.com: Going to Google" href="http://stopdesign.com/archive/2006/05/27/going-to-google.html">Visual Design Lead at Google</a>) has a great overview of <a title="Stopdesign.com: Using background-image to replace text" href="http://stopdesign.com/archive/2003/03/07/replace-text.html">using background-image to replace text</a>. My preferred method was originally outlined   by <a title="Mike Rundle: Phark" href="http://phark.typepad.com/phark/">Mike Rundle</a> and has gone on to be the favourite used widely by web designers (and is even linked to by Doug): <a title="Mike Rundle: Accessible Image Replacement" href="http://phark.typepad.com/phark/2003/08/accessible_imag.html">Accessible Image Replacement</a>.</li>
<li>The concept behind sIFR is really elegant: create a very lightweight Flash movie that has the font embedded and then pull in the text it replaces and render it using that font. The accronym stands for Scalable Inman Flash Replacement, named after <a title="Shaun Inman" href="http://www.shauninman.com/">Shaun Inman</a> who came up with one of the original CSS-based image replacements. sIFR was originally created by <a title="MikeIndustries.com: sIFR" href="http://www.mikeindustries.com/blog/sifr/">Mike Davidson</a> and <a title="Mark Wubben: novemberborn.net" href="http://www.novemberborn.net/">Mark Wubben</a> but hasn&#8217;t been updated by them in a long time. There&#8217;s a sIFR Lite available from <a title="AllCrunchy.com: sIFR Lite" href="http://www.allcrunchy.com/Web_Stuff/sIFR_lite/">AllCrunchy.com</a>, though it looks like it hasn&#8217;t been updated in a while either.</li>
</ul>
</li>
<li><strong>Domain  Names:</strong> Most of the things search engines look for center around trying to determine the content of a page based on the text it contains and the meta information that surrounds it. The more difficult it is to fake the meta data, the more stake placed in it. Some of the hardest to fake are the domain name and URL of a page, which makes them two of the more important tweaks you can make. It&#8217;s harder to optimize the domain name since you only have one for your whole site, but if you sell You Won&#8217;t Believe it&#8217;s Not Tuna you should grab a domain like tunareplacement.com rather than chickenofthesea.com. The age of your domain name does factor into the calculation, so it&#8217;s generally better to renovate a site and keep the old domain than it is to start entirely from scratch. It&#8217;s also worth noting that some search engines, particularly Google, treat subdomains as different sites, which means things like blog.jaygoldman.com and www.jaygoldman.com don&#8217;t necessarily share PageRank. Unless there&#8217;s a stronger-than-SEO reason to go with a subdomain, consider a directory instead (www.jaygoldman.com/blog). You should also consider that www.jaygoldman.com and jaygoldman.com (without the www) aren&#8217;t necessarily the same, so you should decide early on which you&#8217;re going to use and be consistent in promoting the site (I use jaygoldman.com). You can configure mod_rewite (see below) to <a title="Yoast.com: How to Remove WWW from Your URL with mod_rewrite" href="http://yoast.com/how-to-remove-www-from-your-url-with-mod_rewrite/">remove the www</a> if you choose to go that route.</li>
<li><strong>URL:</strong> The search term should ideally be part of the URL, using -s for spaces (e.g.: www.tunareplacement.com/recipes/tuna-and-marshmellow-salad). This is much, much better than the default URL that your blog sofware or CMS probably produces (www.tunareplacement.com/recipe.aspx?id=23), so you should absolutely switch over if you have that control (WordPress users should take a look in the Permalinks section of the Settings in their WP-Admin). I&#8217;ve always prefered avoiding file extensions in URLs entirely (e.g.: .jsp, .php, .asp(x), etc.) since it exposes part of the site&#8217;s implementation into the URL and then into people&#8217;s bookmarks, web crawlers, and the like. You&#8217;ll break all of those if you later rebuild the site on a different technology, so it&#8217;s better to abstract to a higher level earlier and just change the rewrite destinations later. Human readable URLs also kick machine generated URLs butt when it comes to things like analytics or emailing links to friends. I much prefer using URL rewriting, which allows the clean and human readable /recipes/tuna-and-marshmellow-salad to get rewritten to /recipe.php?title=tuna-and-marshmellow-salad behind the scenes. If you&#8217;re running Apache and don&#8217;t mind some server config, take a look at <a title="Apache: mod_rewrite" href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">mod_rewrite</a>, but be warned that it&#8217;s like black magic, ninjas, and awesomeness mixed together in a very potent but incredibly tricky potion. If you&#8217;re running IIS, take a look at <a title="IASPI ReWrite" href="http://www.isapirewrite.com/">IASPI ReWrite</a>, <a title="IIS Rewrite" href="http://www.qwerksoft.com/products/iisrewrite/">IIS Rewrite</a>, or <a title="Mod Rewite for IIS" href="http://www.iismods.com/url-rewrite/index.htm">Mod Rewrite for IIS</a>. I&#8217;ve got no experience with any of them so that&#8217;s about all I can say on that topic.</li>
<li><strong>Sitemaps:</strong> Way back in the early days of the web, Site Maps were actually a page on your site that showed people where all the other pages were, usually in some sort of graphical flow chart fashion. Most sites have grown considerably beyond being representable on a map, but they&#8217;ve found a new lease on life thanks to web crawlers. Submitting a Sitemap XML file to the search engines helps them understand how to crawl and index all of the pages, including the frequency that they change. You really don&#8217;t want to have to do this manually since it has to be updated every time a new page is added, so take a look at automated tools that will do it and submit the update (I use the <a title="Google XML Sitemaps WordPress Plugin" href="http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/">Google XML Sitemaps</a> plugin for WordPress for this blog). More info at <a title="Sitemaps.org" href="http://www.sitemaps.org/">Sitemaps.org</a>.</li>
<li><strong>Inbound Links:</strong> You want to encourage as many inbound links to your site as possible since they are factored into most search engine&#8217;s ranking algorithms as essentially counting as votes for the autoritativeness of your site. Almost all inbound links are positive, with the exception of ones from things like known <a title="Wikipedia: Link Farms" href="http://en.wikipedia.org/wiki/Link_farm">link farms</a>, but you really want to focus on getting other sites to link to your landing pages with the right link text. If we&#8217;re trying to optimize the Recipes page of our Tuna Replacement site for the search term &#8220;tuna recipes&#8221;, it&#8217;s much more valuable for outside sites to link to that page with <code>&lt;a href="http://www.tunareplacement.com/recipes"&gt;tuna recipes&lt;/a&gt;</code> as the link than it is for them to link with <code>&lt;a href="http://www.tunareplacement.com/recipes"&gt;recipes&lt;/a&gt;</code>. If you have the kind of site where people might want to feature your content elsewhere (with, say, a Tuna Recipes Widget of the Day), consider developing an embeddable form that includes links formatted to match your SEO priorities.</li>
<li><strong>Meta Tags:</strong> These used to be all the rage in that you could define keywords for search engines to use in their indexing. That&#8217;s a pretty easy system to game (want to attract attention to your porn site? Try keywords like &#8220;free money&#8221;), so they&#8217;re no longer nearly as valuable as they used to be. There&#8217;s a lot of discussion in the SEO community about how valuable they actually are, but the general conclusion is that you can&#8217;t go wrong by adding the keyword and description meta fields to your pages, and that they may even be used to display some of the information in search results. I use the <a title="Add-Meta-Tags WordPress Plugin" href="http://www.g-loaded.eu/2006/01/05/add-meta-tags-wordpress-plugin/">Add-Meta-Tags WordPress Plugin</a> to automatically add them to all of the pages and posts on this site.</li>
</ul>
<p>Following all of those steps should make a considerable difference in the performance of your organic search engine results. I haven&#8217;t touched on the importance of selecting the right keywords and terms, which is a whole topic in and of itself, but these will make a noticeable difference if you&#8217;re fairly savvy in that regard.</p>
<p><strong>What&#8217;s your favourite SEO Tip?</strong> Disagree with what I&#8217;ve said here or have one I missed? Add it to the comments!</p>



<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://jaygoldman.com/2009/02/08/8-seo-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Twitter, Third Party Sites, and Google Analytics</title>
		<link>http://jaygoldman.com/2009/01/20/twitter-third-party-sites-and-google-analytics/</link>
		<comments>http://jaygoldman.com/2009/01/20/twitter-third-party-sites-and-google-analytics/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 13:31:54 +0000</pubDate>
		<dc:creator>jaygoldman</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[alternate]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[columbia house]]></category>
		<category><![CDATA[conversion goals]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[funnel]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[interstitials]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[junk mail]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[referer]]></category>
		<category><![CDATA[referrer]]></category>
		<category><![CDATA[rel]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[specialized apps]]></category>
		<category><![CDATA[trackpageview]]></category>
		<category><![CDATA[tweetdeck]]></category>
		<category><![CDATA[tweetie]]></category>
		<category><![CDATA[urls]]></category>

		<guid isPermaLink="false">http://jaygoldman.com/?p=432</guid>
		<description><![CDATA[Two problems with using Analytics to track readers on your blog when it's only one link in a chain of apps and sites.

<h2>Likely-related posts:</h2><ul><li><a href='http://www.butterscotch.com/showdtl.html?s=mrmobile&e=56' rel='bookmark' title='Permanent Link: Mr. Mobile &#8211; #56 &#8211; A close look at the Nexus One AKA Google Phone'>Mr. Mobile &#8211; #56 &#8211; A close look at the Nexus One AKA Google Phone</a> <small> Jay Goldman takes a good hard look at the...</small></li><li><a href='http://www.butterscotch.com/showdtl.html?s=mrmobile&e=64' rel='bookmark' title='Permanent Link: Mr. Mobile &#8211; #64 &#8211; Google Labs&#8217; Gesture Search'>Mr. Mobile &#8211; #64 &#8211; Google Labs&#8217; Gesture Search</a> <small> Google Labs isn't just for Gmail. Jay Goldman takes...</small></li></ul>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I was taking a stroll through this site&#8217;s Google Analytics account when I noticed that my recent post <a title="JG: Follow Back: How I Choose Who to Follow on Twitter" href="http://jaygoldman.com/2009/01/15/follow-back-how-i-choose-who-to-follow-on-twitter/">Follow Back: How I Choose Who to Follow on Twitter</a> had attracted a whole lot more visitors than I typically get. I was curious to see where they had come from, so I checked out the referring traffic to find out where people were finding the link and discovered an apparent break-down in the usefulness of Analytics.</p>
<p>For those not in the know: your web browser reports the last page you were on to the next page you visit as the &#8220;referrer&#8221;, which Analytics uses to track the source of traffic to your site. When someone types your URL (jaygoldman.com) into their browser without coming from another page they will have no referrer and therefore count as a &#8216;direct&#8217; visitor. This also applies if they click on a link in an external application like <a title="TweetDeck" href="http://www.tweetdeck.com/">TweetDeck</a> and <a title="Tweetie" href="http://www.atebits.com/software/tweetie/">Tweetie</a> (my current choices for desktop and iPhone Twitter clients), since they land in your browser and on your site without coming from another web page. A large portion of Twitter users tweet from third party apps (anyone know the percentage?), which means that a large portion of the people who find your content from Twitter leave no referrer and look like direct traffic. All direct traffic gets lumped into one big pool, so there&#8217;s no way to tell if they came through Twitter, a non-web based RSS reader, a link in an email not read through webmail, manually typing in your URL, an iPhone app with your link in it, etc. Let&#8217;s call this <strong>Analytics Problem #1: the increasing number of specialized apps that run outside of your web-browser all get counted as direct traffic.</strong></p>
<p>That got me thinking about other places that Analytics might fail to provide accurate tracking as we move deeper into the realm of social media. As a data and analytics junkie, I find Conversion Goals are one of the most powerful ways you can track your online presence, particularly if you have an ecommerce site or webapp. The basic idea is that your site converts different types of users into other types of users (e.g.: catalogue browsers into paying customers, casual readers into RSS subscribers, etc.), and that tracking those conversions helps you to optimize for your end goal (e.g.: more ecommerce revenue, more exposure, etc.). Goals are usually measured at the end of a &#8216;funnel&#8217;, which allows you to track a specific path to a goal and then compare different paths to find the most effective (e.g.: clicked on newsletter link, browsed catalogue page(s), checked out vs. landing page from google, add to cart, checkout). See this excellent <a title="WorkHappy: Conversion Goals Tutorial" href="http://www.workhappy.net/2008/06/advanced-goog-1.html">Conversion Goals four-part tutorial</a> from <a title="WorkHappy.net" href="http://workhappy.net">WorkHappy.net</a> if you&#8217;d like to know more about Conversion Goals. I started thinking about how I could measure Conversion Goals for this site, which made me very quickly realize that my dependence on third party services means I don&#8217;t control key pages in the funnels and therefore can&#8217;t instrument them. A quick example: I&#8217;d like to measure the number of people who follow a link to my blog from Twitter and end up becoming RSS subscribers. This falls down in two places: I can&#8217;t distinguish them from other direct traffic if they come from third party applications, and I can&#8217;t set a Goal on the final page because it happens on FeedBurner. Let&#8217;s call this <strong>Analytics Problem #2: your ability to track Conversion Goals decreases as the number of non-web-based traffic sources and third party utilities involved in your site increases.</strong></p>
<p>What&#8217;s a poor data hungry blog writer to do? I can think of a few things that might work, though none are particularly awesomesauce:</p>
<ul>
<li><strong>Inbound Interstitials.</strong> Part of the solution could lie in the use of <a title="Wikipedia: Interstitial Page" href="http://en.wikipedia.org/wiki/Interstitial_webpage">interstitial pages</a> that are inserted in the flow between the first click and the target. For Analytics Problem #1, third party app developers could direct all traffic to a page on their own server that could then send users to their ultimate destination with a referrer in place. <strong>This isn&#8217;t ideal because&#8230;</strong> it will annoy users, there are definite privacy concerns, some browsers may not track the referrer if a page auto-redirects rather than following a clicked-on link, and it will be inconsistently implemented by third parties. <strong>Verdict:</strong> no dice.</li>
<li><strong>Browser Tracking.</strong> It should be possible for the browser itself to receive a request to open a URL and track the referring application. When you click (or tap) on a link or button in one application that ultimately opens a page in your browser, the operating system steps in to handle the communication between them. The inbound request to your browser might have the name of the app that sent it included, so browsers could start using it as the referrer. It wouldn&#8217;t follow a standard URI scheme, but they could cheat and make it look like one (e.g.: macos://tweetdeck or something similar). <strong>This isn&#8217;t ideal because&#8230;</strong> it requires a change in browser behaviour across the board (or, at least, by Mozilla and Microsoft) and that&#8217;s a full time lobbying job. It also may not be possible on some platforms if the requesting app&#8217;s name isn&#8217;t included in the request. <strong>Verdict:</strong> iffy. Might be testable with a Firefox extension.</li>
<li><strong>Unique URLs.</strong> If you&#8217;re particularly concerned with tracking those direct visitors, you could borrow a page from an old junk mail handling play book and use a different inbound URL for every source of traffic you list your posts on. I used to sign up for things like <a title="Columbia House" href="http://www.columbiahouse.com/">Columbia House</a> CD club with a slightly different spelling of my name (or a fake middle initial) so that I could track who they sold my mailing address to when the junk started pouring in (and it sure did). You could take a URL like http://jaygoldman.com/2009/01/15/follow-back-how-i-choose-who-to-follow-on-twitter/ and turn it into http://jaygoldman.com/2009/01/15/follow-back-how-i-choose-who-to-follow-on-twitter/source/twitter, and then use something like <a title="Apache: mod_rewrite" href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">mod_rewrite</a> on your server to strip out the source bit and still serve the right page. Analytics will record the pageview on the pre-strip-out URL so you can still track it in your reports. <strong>This isn&#8217;t ideal because&#8230;</strong> the requests wouldn&#8217;t get tracked as referrers so you&#8217;d have to count each of the pages in the Content section to get a total count. You would have to remember to use a different source every time you linked to the post (e.g.: &#8220;source/twitter&#8221; when you tweet about it, &#8220;source/rss&#8221; in your RSS feed, etc.). Your stats will be off if other people link to your post (yay!) but strip out the source or use the wrong one (boo!). <strong>Verdict:</strong> answer unclear, try again later. This would work but the logistics are almost more effort than the payoff.</li>
<li><strong>Outbound Interstitials.</strong> The second problem is a little easier to solve — at least on the tail end of the funnel — by either calling Analytic&#8217;s <a title="Google Analytics: How do I manually track clicks?" href="http://www.google.com/support/googleanalytics/bin/answer.py?answer=55527&amp;ctx=sibling"><code>_trackPageView()</code></a> method in the onclick handler for outbound links, or by adding a redirector page to your site that loads up the Analytics JavaScript and then forwards to FeedBurner without displaying any content. The former is great for places where you have an actual RSS link on a page that people click on, and the latter is ideal for things like your <a title="Jeremy Zawodny: RSS Auto-Discovery" href="http://jeremy.zawodny.com/blog/archives/000967.html"><code>&lt;link rel="alternate"&gt;</code></a> tag that gets handled by the browser without a click. This should be almost entirely invisible to your readers and  you&#8217;ll be to still track your funnel as long as you use it everywhere you would have just linked to FeedBurner. <strong>This isn&#8217;t ideal because&#8230;</strong> you have an interstitial of your own to maintain, but it should be almost unnoticeable. <strong>Verdict:</strong> should work well for outbound links from your site, provided the funnel ends there and doesn&#8217;t require tracking beyond the first link.</li>
<li><strong>Your Chocolate in their Peanut Butter.</strong> Twitter (and other services) could give you the ability to insert your analytics tracking code into their page. This is a bit of an unorthodox idea (in that I&#8217;ve never seen it done), but since Analytics supports <a title="Google Analytics: Tracking across multiple domains" href="http://www.google.com/support/analytics/bin/answer.py?hl=en&amp;answer=55503">tracking across multiple domains</a>, it should be possible for Twitter to insert the modified tracking code listed there into your profile page and record a pageview in your analytics. <strong>This isn&#8217;t ideal because&#8230;</strong> service providers need to jump through (small) hoops to get it working. The reports in Analytics don&#8217;t show the domain on requests by default, so you would need to follow the instructions listed on that page to setup an advanced filter or Twitter would need to log the request as being something obvious (e.g.: /twitter.com/profile). <strong>Verdict:</strong> this would actually be pretty great if it worked, since you could track how many people are viewing your profile in addition to using it as the start of a conversion goal.</li>
</ul>
<p>There are many smarter people than your humble scribe who read this blog. How can we solve the Terrible Twosome of Analytics Problems and restore order to the world? Maybe I&#8217;m missing something obvious?</p>


<h2>Likely-related posts:</h2><ul><li><a href='http://www.butterscotch.com/showdtl.html?s=mrmobile&e=56' rel='bookmark' title='Permanent Link: Mr. Mobile &#8211; #56 &#8211; A close look at the Nexus One AKA Google Phone'>Mr. Mobile &#8211; #56 &#8211; A close look at the Nexus One AKA Google Phone</a> <small> Jay Goldman takes a good hard look at the...</small></li><li><a href='http://www.butterscotch.com/showdtl.html?s=mrmobile&e=64' rel='bookmark' title='Permanent Link: Mr. Mobile &#8211; #64 &#8211; Google Labs&#8217; Gesture Search'>Mr. Mobile &#8211; #64 &#8211; Google Labs&#8217; Gesture Search</a> <small> Google Labs isn't just for Gmail. Jay Goldman takes...</small></li></ul>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://jaygoldman.com/2009/01/20/twitter-third-party-sites-and-google-analytics/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Blocking Images from One Domain</title>
		<link>http://jaygoldman.com/2008/10/10/blocking-images-from-one-domain/</link>
		<comments>http://jaygoldman.com/2008/10/10/blocking-images-from-one-domain/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 12:27:40 +0000</pubDate>
		<dc:creator>jaygoldman</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[403]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[a list apart]]></category>
		<category><![CDATA[accessify.com]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[error page]]></category>
		<category><![CDATA[google translate]]></category>
		<category><![CDATA[ian lloyd]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[radiant core]]></category>
		<category><![CDATA[taglibs]]></category>

		<guid isPermaLink="false">http://jaygoldman.com/?p=149</guid>
		<description><![CDATA[A quick way to block image requests from a specific domain.



Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a fancy 404 page (displayed when you try to access a page that doesn&#8217;t exist, like <a title="This page does not exist" href="http://jaygoldman.com/this-page-does-not-exist">this one</a>) on this blog, built on the principles outlined in the great <a title="A List Apart" href="http://www.alistapart.com">A List Apart</a> article <a title="A List Apart: The Perfect 404" href="http://www.alistapart.com/articles/perfect404/">The Perfect 404</a>. It&#8217;s a great piece of logic that <a title="Accessify: Ian Lloyd's blog" href="http://www.accessify.com/blog/default.asp">Ian Lloyd</a> came up with that I&#8217;ve now implemented once in <a title="Sun: Java Taglibs" href="http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html">Java taglibs</a> at <a title="Radiant Core" href="http://www.radiantcore.com">Radiant Core</a> and again in PHP for this blog. The gist is that the page changes depending on where you came from in order to display a &#8217;smart&#8217; result, and emails me when something is broken so that I can fix it. If there&#8217;s enough interest, I could turn this into a WordPress plugin — leave a comment if you&#8217;d like to see that.</p>
<p>One of the advantages of the 404 page emailing me when something can&#8217;t be found is knowing that someone else has linked directly to an image that used to be on this site but isn&#8217;t anymore. I had a <a title="Last.fm" href="http://last.fm">last.fm</a> sidebar for a while with the music I&#8217;d listened to but removed it after I figured out that most of my listening was on machines or devices that weren&#8217;t logging. In the short time it was on the site, <a title="YouDao.com" href="http://www.youdao.com">youdao.com</a> latched on to one of the images and linked to it directly for a page on their site. This isn&#8217;t a particularly bad practice, but since the image doesn&#8217;t exist here anymore they aren&#8217;t going to see it on their end. Given that we obviously don&#8217;t speak the same language, I thought it might be easier to just redirect their requests for images with a 403 error (forbidden). <a title="Apache: mod_rewrite" href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">mod_rewrite</a> to the rescue!</p>
<p>If you&#8217;re running an Apache web server and have the module enabled, and have it configured to allow .htaccess files to override your http.conf, you can achieve the same simple result by adding two lines to your .htaccess:</p>
<pre>RewriteCond %{HTTP_REFERER} ^http://www.requestingsite.com/ [NC]
RewriteRule .*\.(jpg|gif|png)$ - [F]</pre>
<p>The first line matches on the domain of the site, with [NC] specified to tell mod_rewrite to ignore case-sensitivity. The second line says requests for anything ending in any of the three major image formats are forbidden (hence the [F]). How do you know it&#8217;s working? Try running the page through something like <a title="Google Translate" href="http://translate.google.com/">Google Translate</a>, which pops up a JavaScript error when it <a title="Google Translate: 403 Error" href="http://translate.google.com/translate?u=http%3A%2F%2Fimage.youdao.com%2Fimagesa%3Fq%3Dyoudao%26ue%3Dutf8%26thumbpos%3D7%23pos%3D12%26stid%3D509e418f9b33f9f3&amp;hl=en&amp;ie=UTF-8&amp;sl=auto&amp;tl=en">gets the 403 back</a>. And remember, as always, check your site after making changes to your .htaccess to make sure you haven&#8217;t broken anything!</p>



<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://jaygoldman.com/2008/10/10/blocking-images-from-one-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
