I have to implement something into an existing Ruby on Rails application.
Specifically I want to send events to Google Analytics whenever the user changes to specific routes, so I need to hook into the rails router and call a method whenever these routes are called.
How can I do that? I found that I should use a module with before_filter
but now idea how, as my rails experience is very low...
Thanks!