Conditionally load Google Analytics if online