updated script to Analytics.js

Updated analytics script to use the newer Analytics.js