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

On Wed, 2010-03-24 at 19:46 -0700, Nicholas W. wrote:

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 ?


yup - I had a thread on this topic earlier this month… My final
solution was posted on March 8th. There was some discussion and you may
or may not like my solution.

See topic titled “[Rails] Google Analytics and partials”

Craig


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs