Goal Tracking with Google Analytics06.23.2007
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.
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…
…it actually goes through the rewrite engine and comes out at the server end looking something like…
The problems arise because it looks like I have several (30,000+) rate_now.php pages. For example, here are two:
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:
It’s the gold pot at the end of the rainbow. What I do is embed a piece of code into rate_now.php…
1 2 3 4 5
…which makes both of these addresses…
…now appear to Google Analytics like…
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.
To give you a little peak, here is a small portion of the information that can be gleaned from having such a setup: