updated google analyits tracker to make dynamic, added proper initialization