fix analytics tracking