class using api hook for old googleanalytics version update to new, sort save