adding window.analytics in a few places it was forgotten?

am i missing something or should all those references to analytics be window.analytics?