Applied @danshearmur's fix for Google Analytics