Simply replaced _gaq.push with window._gaq.push in functions