I’ll use jQuery 1.x for this example since most sites use it but you can substitute a lightweight option such as min.js, Zepto.js, Minified.js or your own event handling functions. See if you are using Classic Analytics (ga.js) or Universal Analytics (analytics.js).