Support to new google analytics version and add pageName options

Support to new google analytics version and add pageName options that default value is window.location.pathname;