Update global.js

Added GA event tracking hook.  Line 284