Moved Google Analytics and search code to separate file