Added support for analytics.js

Added detection for Analytics type (ga.js or analytics.js) and the
corresponding tracking syntax for the events depending on which
Analytics version is detected.