moved g-analytics code