update analystics code