added RUN_TYPE check to Google Analytics code