Made Google Analytics events work for ajax calls