moved global from analytics to navigator.analytics