I'm currently working on binding events for tracking with Google Analytics. When calling GA, we also have the option to send a value along with it.
My goal is to send a value using a DOM selector.
For example, when I use:
myValue=function(){return parseInt($('.checkout-order-totals .order-total td:last').text().replace('$','').replace(/,/g,'')).valueOf(); }
It works perfectly fine (the click event is shown in omnibug).
However, if I remove parseInt from the code above, i.e.,
myValue=function(){return $('.checkout-order-totals .order-total td:last').text().replace('$','').replace(/,/g,'').valueOf(); }
it fails to send a request to GA (the click event is not shown in omnibug).
What are some possible reasons for this issue?