update functions.js

Change Analytics code.