kinopyo/quoty — pull request #17 by kinopyo (2012-12-20 09:10:29+00:00)
Title: Track page view for quote creation

This is an experimental commit. The purpose is to setup google analytics goal(s) for some complete actions, such as "quote created", "vote created".

Since in rails normally we don't have a "complete" page, like "/posts/complete", it's a POST request normally point to a `create` action. So we have to tell google somehow that the action is completed.

I read [this article](http://vocino.com/tracking-goals-for-your-web-application-with-google-analytics/) seems like we can just use rails flash mechanism and send the pageview manually to google.