Refine analytics code by ga.js