Make sure ga is defined before pushing analytics