fix analitics code