wistia/wistia-labs — pull request #18 by jordanmunson (2014-12-03 23:16:16+00:00)
Title: Fix universal analytics check

We used to be checking for the existence of Universal Analytics with `window.ga` but really we should have been using a more durable option which is checking for it via Google Analytics object, which defends against both people renaming their stuff as well as rogue plugins defining window.ga in other ways. The new way is to check the existence of `window[window.GoogleAnalyticsObject]` and send via that instead.