supporting Analytics.js

I like this solution but to make sure it's future proof I added support for Analytics.js, the latest reincarnation of Google Analytics. More info at the official docs: 
https://developers.google.com/analytics/devguides/collection/analyticsjs/

Cheers