add analyitcs code