adding window.analytics in a few places it was forgotten?
Merge pull request #3 from segmentio/missingwindow

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