added in a check to see if _gaq exists