move code for ajax tracking on Google Analytics