Googla Analytics and RJS

Hi guys, I'm trying to make google Analytics track an action that updates the view via AJAX. What I did is:

page.call 'pageTracker._trackPageview', '/votes/create' if Rails.env == 'production'

but for some reason it doesn't actually work. Someone already solved the same problem ?

  ngw

Hi guys, I'm trying to make google Analytics track an action that updates the view via AJAX. What I did is:

page.call 'pageTracker._trackPageview', '/votes/create' if Rails.env == 'production'

but for some reason it doesn't actually work. Someone already solved the same problem ?