updating analytics ref