<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>AaronHardy.com &#187; Web Analytics</title>
	<atom:link href="http://aaronhardy.com/category/web-analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronhardy.com</link>
	<description>For all your Aaron Hardy needs.</description>
	<lastBuildDate>Fri, 20 Apr 2012 14:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Goal Tracking with Google Analytics</title>
		<link>http://aaronhardy.com/web-analytics/goal-tracking-with-google-analytics/</link>
		<comments>http://aaronhardy.com/web-analytics/goal-tracking-with-google-analytics/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 02:25:09 +0000</pubDate>
		<dc:creator>Aaron Hardy</dc:creator>
				<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[goal funnel]]></category>
		<category><![CDATA[goal tracking]]></category>
		<category><![CDATA[Google analytics]]></category>

		<guid isPermaLink="false">http://www.aaronhardy.com/intimateconversations/?p=5</guid>
		<description><![CDATA[I’ve been tracking RateMyApartments.com through Google Analytics for about a half year now and have really enjoyed seeing how the website has been growing. Still, only recently did I implement goal tracking to see how people are navigating through the stages of viewing an apartment, then the rating form, then actually clicking the submit button [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been tracking RateMyApartments.com through Google Analytics for about a half year now and have really enjoyed seeing how the website has been growing. Still, only recently did I implement goal tracking to see how people are navigating through the stages of viewing an apartment, then the rating form, then actually clicking the submit button on the rating form. Because I don’t really sell anything on RateMyApartments.com, a rating is the closest it comes to a goal. If someone rates an apartment, that means more content for other viewers, which in turn makes the website more useful and successful. <span id="more-8"></span></p>
<p>One reason for my post today is because it took me a while to figure out how to track goals for my website, due to its fairly complex structure. I extensively use Apache’s rewrite engine to manipulate the address passed from the browser. For example, while you see this address in your browser address bar…</p>
<p>http://www.ratemyapartments.com/ratings/UT/Brigham-Young-University/</p>
<p>Academy-Arms-119/rate_now.php</p>
<p>…it actually goes through the rewrite engine and comes out at the server end looking something like…</p>
<p>http://www.ratemyapartments.com/rate_now.php?</p>
<p>state=UT&amp;school=Brigham-Young-University&amp;apartment=119</p>
<p>The problems arise because it looks like I have several (30,000+) rate_now.php pages. For example, here are two:</p>
<p>http://www.ratemyapartments.com/ratings/UT/Brigham-Young-University/</p>
<p>Academy-Arms-119/rate_now.php</p>
<p>http://www.ratemyapartments.com/ratings/UT/Brigham-Young-University/</p>
<p>Glenwood-135/rate_now.php</p>
<p>So how do I make both of the following addresses correspond to the same step in the goal funnel? I’m glad you asked. If you sift through Google Analytics documentation, you’ll eventually trip over the this page:</p>
<p><a href="http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&amp;answer=55514" target="_blank">How do I set up goals and funnels for dynamically generated pages?</a></p>
<p>It’s the gold pot at the end of the rainbow. What I do is embed a piece of code into rate_now.php…</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>
_uacct <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;UA-895132-1&quot;</span><span style="color: #339933;">;</span>
urchinTracker<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;/rating_funnel/step2.html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
urchinTracker<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// --&gt;&lt;/script&gt;</span></pre></td></tr></table></div>

<p>…which makes both of these addresses…</p>
<p>http://www.ratemyapartments.com/ratings/UT/Brigham-Young-University/</p>
<p>Academy-Arms-119/rate_now.php</p>
<p>http://www.ratemyapartments.com/ratings/UT/Brigham-Young-University/</p>
<p>Glenwood-135/rate_now.php</p>
<p>…now appear to Google Analytics like…</p>
<p>http://www.ratemyapartments.com/rating_funnel/step2.html</p>
<p>Don’t be tricked. Step2.html doesn’t really exist. Nor does the directory rating_funnel. But Google Analytics now thinks that it exists, and no matter which rating page you are on, regardless of the specific apartment, it thinks you are at http://www.ratemyapartments.com/rating_funnel/step2.html. You can then set up that address as your second step in the goal funnel process and you’re good to go.<br />
To give you a little peak, here is a small portion of the information that can be gleaned from having such a setup:</p>
<p><a title="Goal Tracking" href="/wp-content/uploads/2007/06/goal-tracking.gif">Goal Tracking</a></p>
<p><a title="Goal Funnel" href="/wp-content/uploads/2007/06/goal-funnel.gif">Goal Funnel</a></p>
]]></content:encoded>
			<wfw:commentRss>http://aaronhardy.com/web-analytics/goal-tracking-with-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

