1

I want to implement realtime events (google analytics) on our filter engine.

This is my code:

%fieldset
  .checkbox
    %input{type: "checkbox", value: ".range-1", :onclick=>"_gaq.push(['_trackEvent', 'Price', 'Range 100-200', 'Yep']);" }

This is the html:

<div class='checkbox'>
 <input onclick="_gaq.push(['_trackEvent', 'Price', 'Range 100-200', 'Yep']);" type='checkbox' value='.range-1'>
 <label>€</label>

This code don't work. What a i doing wrong here ?

thanks..remco

Remco
  • 681
  • 1
  • 6
  • 20
  • This isn't a Ruby on Rails question, it's about JavaScript, please update your tags. Do you get any console output? – Tim Baas Oct 03 '14 at 10:12
  • Can you please verify that you are using classic GA? The onclick code seems to indicate that. – nyuen Oct 03 '14 at 21:26

0 Answers0