If the opt_value
parameter isn't an integer (or undefined), the event won't be recorded.
Do you want this event to affect bounce rate calculations? If so, the opt_noninteraction
can be left off since the default value is false
:
_gaq.push(['_trackEvent', 'Product Page', 'Added To Basket', 'Bodysuit...']);
If you don't want the event to affect the bounce rate, use:
_gaq.push(['_trackEvent', 'Product Page', 'Added To Basket', 'Bodysuit...', undefined, true]);
I missed this in my first look at your code -- since _trackEvent
is before _setAccount
, the data it sends get's recorded to a default account (something like 'UA-XXXXX-X').
Move the _trackEvent
call anywhere after _setAccount
.
Also, since you've got both _trackEvent
and _trackPageview
in the same block of code, you'll want to be sure that the opt_noninteraction
parameter is true.