Fix to git Google Analytics when view has been fully loaded