[Important bounce rate fix!] - Do you have a single page website?

Anyone know how to use this with the new Universal Analytics? I've used UA for a new site, as it's going to be mandatory soon, but every 10 seconds, in the browser console, I'm getting the error Uncaught ReferenceError: _gaq is not defined

Anyone know how to rewrite the function...? _gaq.push(['_trackEvent', 'Time', 'Log', tos]);

From https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs

New Format...
ga('send','event','category','action','opt_label', opt_value,{'nonInteraction':1});

Old Format...
gaq.push(['_trackEvent','category','action','opt_label', opt_value, opt_noninteraction]);

Would it just be..
ga(['send','event', 'Time', 'Log', tos]);
 
Last edited:
Same question, how do we implement the bounce fix with new analytics? thanks!
 
Back
Top